From 958e2f36bb3327ff9bbadfa3a41e289f1405ba84 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sat, 14 Aug 2021 16:44:09 +0300 Subject: ginput script --- src/control/Script.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/control/Script.cpp') diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 49a33600..a2dd8512 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -3092,7 +3092,13 @@ int8 CRunningScript::ProcessCommands200To299(int32 command) UpdateCompareFlag(pPed->OurPedCanSeeThisOne(CWorld::Players[ScriptParams[1]].m_pPed)); return 0; } +#ifdef SUPPORT_GINPUT_SCRIPT + case COMMAND_HAS_PAD_IN_HANDS: + UpdateCompareFlag(CPad::GetPad(0)->IsAffectedByController); + return 0; +#else //case COMMAND_ORDER_CHAR_TO_BACKDOOR: +#endif //case COMMAND_ADD_CHAR_TO_GANG: case COMMAND_IS_CHAR_OBJECTIVE_PASSED: { -- cgit v1.2.3