-
-
Couldn't load subscription status.
- Fork 496
Open
@lopezloo
#702
Description
Is your feature request related to a problem? Please describe.
engineSetSurfaceProperties function lack createobjects and createplants property.
Describe the solution you'd like
These properties were deliberately disabled because were producing crashes. Maybe it could be fixed.
Describe alternatives you've considered
No response
Additional context
mtasa-blue/Client/mods/deathmatch/logic/lua/CLuaFunctionParseHelpers.cpp
Lines 611 to 615 in cd1d208
// crash when enabling on surfaces without setting plants and trees
// table at offset 0xC38070 contain information about which are read from plants.dat
// i don't know did this will work on objects created by createObject function
// ADD_ENUM(SURFACE_PROPERTY_CREATEOBJECTS, "createobjects")
// ADD_ENUM(SURFACE_PROPERTY_CREATEPLANTS, "createplants")
mtasa-blue/Client/mods/deathmatch/logic/luadefs/CLuaEngineDefs.cpp
Lines 1271 to 1288 in ebf54d4
case SURFACE_PROPERTY_CREATEOBJECTS:
argStream.ReadBool(bEnabled);
if (!argStream.HasErrors())
{
pSurface->setFlagEnabled(1, 7, bEnabled);
lua_pushboolean(luaVM, true);
return 1;
}
break;
case SURFACE_PROPERTY_CREATEPLANTS:
argStream.ReadBool(bEnabled);
if (!argStream.HasErrors())
{
pSurface->setFlagEnabled(1, 8, bEnabled);
lua_pushboolean(luaVM, true);
return 1;
}
break;
Security Policy
- I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.