|
12 | 12 | #include "StdInc.h"
|
13 | 13 | #include "lua/CLuaFunctionParser.h"
|
14 | 14 |
|
15 |
| -#define MIN_CLIENT_REQ_GETVEHICLECOMPONENT_OOP "1.5.5-9.11710" |
16 |
| - |
17 | 15 | void CLuaVehicleDefs::LoadFunctions()
|
18 | 16 | {
|
19 | 17 | constexpr static const std::pair<const char*, lua_CFunction> functions[]{
|
@@ -3241,13 +3239,6 @@ int CLuaVehicleDefs::OOP_GetVehicleComponentPosition(lua_State* luaVM)
|
3241 | 3239 | CVector vecPosition;
|
3242 | 3240 | if (pVehicle->GetComponentPosition(strComponent, vecPosition, outputBase))
|
3243 | 3241 | {
|
3244 |
| - if (!MinClientReqCheck(argStream, MIN_CLIENT_REQ_GETVEHICLECOMPONENT_OOP)) |
3245 |
| - { |
3246 |
| - lua_pushnumber(luaVM, vecPosition.fX); |
3247 |
| - lua_pushnumber(luaVM, vecPosition.fY); |
3248 |
| - lua_pushnumber(luaVM, vecPosition.fZ); |
3249 |
| - return 3; |
3250 |
| - } |
3251 | 3242 | lua_pushvector(luaVM, vecPosition);
|
3252 | 3243 | return 1;
|
3253 | 3244 | }
|
@@ -3339,13 +3330,6 @@ int CLuaVehicleDefs::OOP_GetVehicleComponentRotation(lua_State* luaVM)
|
3339 | 3330 | {
|
3340 | 3331 | // Script uses degrees
|
3341 | 3332 | ConvertRadiansToDegrees(vecRotation);
|
3342 |
| - if (!MinClientReqCheck(argStream, MIN_CLIENT_REQ_GETVEHICLECOMPONENT_OOP)) |
3343 |
| - { |
3344 |
| - lua_pushnumber(luaVM, vecRotation.fX); |
3345 |
| - lua_pushnumber(luaVM, vecRotation.fY); |
3346 |
| - lua_pushnumber(luaVM, vecRotation.fZ); |
3347 |
| - return 3; |
3348 |
| - } |
3349 | 3333 | lua_pushvector(luaVM, vecRotation);
|
3350 | 3334 | return 1;
|
3351 | 3335 | }
|
|
0 commit comments