File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Client/mods/deathmatch/logic/luadefs Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1046,12 +1046,14 @@ int CLuaEngineDefs::EngineGetModelLODDistance(lua_State* luaVM)
1046
1046
1047
1047
int CLuaEngineDefs::EngineSetModelLODDistance (lua_State* luaVM)
1048
1048
{
1049
- // bool engineSetModelLODDistance ( int/string modelID, float distance )
1049
+ // bool engineSetModelLODDistance ( int/string modelID, float distance [, bool extendedLod = false ] )
1050
1050
SString strModelId;
1051
1051
float fDistance ;
1052
+ bool extendedLod;
1052
1053
CScriptArgReader argStream (luaVM);
1053
1054
argStream.ReadString (strModelId);
1054
1055
argStream.ReadNumber (fDistance );
1056
+ argStream.ReadBool (extendedLod, false );
1055
1057
1056
1058
if (!argStream.HasErrors ())
1057
1059
{
@@ -1062,7 +1064,7 @@ int CLuaEngineDefs::EngineSetModelLODDistance(lua_State* luaVM)
1062
1064
CModelInfo* pModelInfo = g_pGame->GetModelInfo (usModelID);
1063
1065
if (pModelInfo && fDistance > 0 .0f )
1064
1066
{
1065
- pModelInfo->SetLODDistance (fDistance );
1067
+ pModelInfo->SetLODDistance (fDistance , extendedLod );
1066
1068
lua_pushboolean (luaVM, true );
1067
1069
return 1 ;
1068
1070
}
You can’t perform that action at this time.
0 commit comments