Skip to content
Permalink
Browse files

Remove getPedTargetRange stub

Closes #1186
  • Loading branch information
qaisjp committed Dec 13, 2019
1 parent 49d1bc0 commit 18277d579221946600ed88dfd6896b78d79d7658
@@ -169,7 +169,6 @@ void CLuaManager::LoadCFunctions()
{"getPlayerTarget", CLuaPedDefs::GetPedTarget},
{"getPlayerTargetStart", CLuaPedDefs::GetPedTargetStart},
{"getPlayerTargetEnd", CLuaPedDefs::GetPedTargetEnd},
{"getPlayerTargetRange", CLuaPedDefs::GetPedTargetRange},
{"getPlayerTargetCollision", CLuaPedDefs::GetPedTargetCollision},
{"getPlayerWeaponSlot", CLuaPedDefs::GetPedWeaponSlot},
{"getPlayerWeapon", CLuaPedDefs::GetPedWeapon},
@@ -210,7 +209,7 @@ void CLuaManager::LoadCFunctions()
{"setControlState", CLuaPedDefs::SetPedControlState},
{"getControlState", CLuaPedDefs::GetPedControlState},
// ** END OF BACKWARDS COMPATIBILITY FUNCS. **

// Event funcs
{"addEvent", CLuaFunctionDefs::AddEvent},
{"addEventHandler", CLuaFunctionDefs::AddEventHandler},
@@ -392,7 +391,7 @@ void CLuaManager::LoadCFunctions()
{"getRemoteRequests", CLuaFunctionDefs::GetRemoteRequests},
{"getRemoteRequestInfo", CLuaFunctionDefs::GetRemoteRequestInfo},
{"abortRemoteRequest", CLuaFunctionDefs::AbortRemoteRequest},

// Version functions
{"getVersion", CLuaFunctionDefs::GetVersion},

@@ -35,7 +35,6 @@ void CLuaPedDefs::LoadFunctions()
{"getPedTarget", GetPedTarget},
{"getPedTargetStart", GetPedTargetStart},
{"getPedTargetEnd", GetPedTargetEnd},
{"getPedTargetRange", GetPedTargetRange},
{"getPedTargetCollision", GetPedTargetCollision},
{"getPedWeaponSlot", GetPedWeaponSlot},
{"getPedWeapon", GetPedWeapon},
@@ -664,25 +663,6 @@ int CLuaPedDefs::GetPedTargetEnd(lua_State* luaVM)
return 1;
}

int CLuaPedDefs::GetPedTargetRange(lua_State* luaVM)
{
// Verify the argument
CClientPed* pPed = NULL;
CScriptArgReader argStream(luaVM);
argStream.ReadUserData(pPed);

if (!argStream.HasErrors())
{
// TODO: getPedTargetRange
}
else
m_pScriptDebugging->LogCustom(luaVM, argStream.GetFullErrorMessage());

// Failed
lua_pushboolean(luaVM, false);
return 1;
}

int CLuaPedDefs::GetPedTargetCollision(lua_State* luaVM)
{
// Verify the argument
@@ -26,7 +26,6 @@ class CLuaPedDefs : public CLuaDefs
LUA_DECLARE(GetPedTarget);
LUA_DECLARE(GetPedTargetStart);
LUA_DECLARE(GetPedTargetEnd);
LUA_DECLARE(GetPedTargetRange);
LUA_DECLARE(GetPedTargetCollision);
LUA_DECLARE(GetPedWeaponSlot);
LUA_DECLARE(GetPedWeapon);
@@ -330,7 +330,6 @@ namespace
{false, "getPlayerTarget", "getPedTarget"},
{false, "getPlayerTargetStart", "getPedTargetStart"},
{false, "getPlayerTargetEnd", "getPedTargetEnd"},
{false, "getPlayerTargetRange", "getPedTargetRange"},
{false, "getPlayerTargetCollision", "getPedTargetCollision"},
{false, "getPlayerWeaponSlot", "getPedWeaponSlot"},
{false, "getPlayerWeapon", "getPedWeapon"},

0 comments on commit 18277d5

Please sign in to comment.
You can’t perform that action at this time.