Skip to content

Commit

Permalink
Add this func
Browse files Browse the repository at this point in the history
  • Loading branch information
ineed bots committed Sep 22, 2023
1 parent 7e87e04 commit 9b10a3e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/codsrc/clientscript/cscr_vm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5739,5 +5739,11 @@ namespace codsrc
{
game::Scr_NotifyNum_Internal(game::SCRIPTINSTANCE_SERVER, entnum, classnum, stringValue, paramcount);
}

// Restored
unsigned int Scr_GetNumParam(game::scriptInstance_t inst)
{
return game::gScrVmPub[inst].outparamcount;
}
}
#pragma warning(pop)
1 change: 1 addition & 0 deletions src/codsrc/clientscript/cscr_vm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,5 @@ namespace codsrc
unsigned int GetInternalVariableIndex(game::scriptInstance_t inst, unsigned int unsignedValue);
const char* Scr_ReadData(game::scriptInstance_t inst, const char** pos, unsigned int count);
void Scr_NotifyNum(int entnum, game::classNum_e classnum, unsigned int stringValue, unsigned int paramcount);
unsigned int Scr_GetNumParam(game::scriptInstance_t inst);
}
1 change: 1 addition & 0 deletions src/game/clientscript/cscr_vm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,5 @@ namespace game
void Scr_EvalBoolNot(scriptInstance_t inst, VariableValue* value);
unsigned int GetInternalVariableIndex(scriptInstance_t inst, unsigned int unsignedValue);
const char* Scr_ReadData(scriptInstance_t inst, const char** pos, unsigned int count);
unsigned int Scr_GetNumParam(game::scriptInstance_t inst);
}
5 changes: 5 additions & 0 deletions src/game/clientscript/cscr_vm_w.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -981,4 +981,9 @@ namespace game
{
return codsrc::Scr_ReadData(inst, pos, count);
}

unsigned int Scr_GetNumParam(game::scriptInstance_t inst)
{
return codsrc::Scr_GetNumParam(inst);
}
}

0 comments on commit 9b10a3e

Please sign in to comment.