2019-06-12 11:46:02 +00:00
# include "common.h"
2020-04-17 13:31:11 +00:00
2019-06-12 11:46:02 +00:00
# include "Script.h"
2019-07-07 21:32:54 +00:00
# include "ScriptCommands.h"
2019-06-12 11:46:02 +00:00
2020-04-19 16:34:08 +00:00
# include "AnimBlendAssociation.h"
2020-11-24 12:06:48 +00:00
# include "AudioManager.h"
2019-07-14 09:49:03 +00:00
# include "Boat.h"
2019-07-03 22:16:24 +00:00
# include "Camera.h"
# include "CarCtrl.h"
2019-07-14 09:49:03 +00:00
# include "CivilianPed.h"
2019-07-14 11:49:27 +00:00
# include "Clock.h"
2019-07-14 09:49:03 +00:00
# include "CopPed.h"
2020-06-21 10:46:23 +00:00
# include "Debug.h"
2019-07-03 22:16:24 +00:00
# include "DMAudio.h"
2019-07-14 09:49:03 +00:00
# include "EmergencyPed.h"
2019-07-07 16:00:02 +00:00
# include "FileMgr.h"
2020-02-15 11:53:42 +00:00
# include "Frontend.h"
2019-07-14 09:49:03 +00:00
# include "General.h"
2020-12-04 23:49:32 +00:00
# ifdef MISSION_REPLAY
# include "GenericGameStorage.h"
# endif
2019-07-14 11:49:27 +00:00
# include "HandlingMgr.h"
2019-10-21 21:39:59 +00:00
# include "Heli.h"
2019-07-03 22:16:24 +00:00
# include "Hud.h"
2020-02-24 18:17:15 +00:00
# include "Lines.h"
2019-07-07 21:05:24 +00:00
# include "Messages.h"
# include "Pad.h"
2019-07-25 20:34:29 +00:00
# include "Pickups.h"
2019-07-03 22:16:24 +00:00
# include "Pools.h"
# include "Population.h"
2019-07-25 20:34:29 +00:00
# include "Remote.h"
2019-07-07 17:57:00 +00:00
# include "Replay.h"
2019-12-31 23:35:54 +00:00
# include "Stats.h"
2019-07-03 22:16:24 +00:00
# include "Streaming.h"
# include "User.h"
2020-11-24 12:06:48 +00:00
# include "Wanted.h"
2019-07-03 22:16:24 +00:00
# include "Weather.h"
2019-07-14 09:49:03 +00:00
# include "Zones.h"
2020-04-19 16:34:08 +00:00
# include "main.h"
2020-07-30 12:11:06 +00:00
# include "Ropes.h"
2020-11-24 12:06:48 +00:00
# include "ColStore.h"
2020-08-19 18:11:19 +00:00
# include "Fluff.h"
2020-11-24 12:06:48 +00:00
# include "GameLogic.h"
# include "MBlur.h"
# include "PedRoutes.h"
# include "RoadBlocks.h"
2020-11-28 06:01:51 +00:00
# include "SpecialFX.h"
2020-11-24 12:06:48 +00:00
# include "Timecycle.h"
# include "TxdStore.h"
# include "Bike.h"
2020-06-21 10:46:23 +00:00
# ifdef USE_ADVANCED_SCRIPT_DEBUG_OUTPUT
# include <stdarg.h>
# endif
2019-06-20 00:31:03 +00:00
2020-11-01 15:21:05 +00:00
//--MIAMI: file done
2020-04-17 05:54:14 +00:00
uint8 CTheScripts : : ScriptSpace [ SIZE_SCRIPT_SPACE ] ;
CRunningScript CTheScripts : : ScriptsArray [ MAX_NUM_SCRIPTS ] ;
intro_text_line CTheScripts : : IntroTextLines [ MAX_NUM_INTRO_TEXT_LINES ] ;
intro_script_rectangle CTheScripts : : IntroRectangles [ MAX_NUM_INTRO_RECTANGLES ] ;
CSprite2d CTheScripts : : ScriptSprites [ MAX_NUM_SCRIPT_SRPITES ] ;
script_sphere_struct CTheScripts : : ScriptSphereArray [ MAX_NUM_SCRIPT_SPHERES ] ;
tUsedObject CTheScripts : : UsedObjectArray [ MAX_NUM_USED_OBJECTS ] ;
int32 CTheScripts : : MultiScriptArray [ MAX_NUM_MISSION_SCRIPTS ] ;
tBuildingSwap CTheScripts : : BuildingSwapArray [ MAX_NUM_BUILDING_SWAPS ] ;
CEntity * CTheScripts : : InvisibilitySettingArray [ MAX_NUM_INVISIBILITY_SETTINGS ] ;
CStoredLine CTheScripts : : aStoredLines [ MAX_NUM_STORED_LINES ] ;
bool CTheScripts : : DbgFlag ;
uint32 CTheScripts : : OnAMissionFlag ;
int32 CTheScripts : : StoreVehicleIndex ;
bool CTheScripts : : StoreVehicleWasRandom ;
CRunningScript * CTheScripts : : pIdleScripts ;
CRunningScript * CTheScripts : : pActiveScripts ;
uint32 CTheScripts : : NextFreeCollectiveIndex ;
int32 CTheScripts : : LastRandomPedId ;
uint16 CTheScripts : : NumberOfUsedObjects ;
bool CTheScripts : : bAlreadyRunningAMissionScript ;
bool CTheScripts : : bUsingAMultiScriptFile ;
uint16 CTheScripts : : NumberOfMissionScripts ;
uint32 CTheScripts : : LargestMissionScriptSize ;
uint32 CTheScripts : : MainScriptSize ;
uint8 CTheScripts : : FailCurrentMission ;
uint16 CTheScripts : : NumScriptDebugLines ;
uint16 CTheScripts : : NumberOfIntroRectanglesThisFrame ;
uint16 CTheScripts : : NumberOfIntroTextLinesThisFrame ;
uint8 CTheScripts : : UseTextCommands ;
CMissionCleanup CTheScripts : : MissionCleanup ;
CUpsideDownCarCheck CTheScripts : : UpsideDownCars ;
CStuckCarCheck CTheScripts : : StuckCars ;
uint16 CTheScripts : : CommandsExecuted ;
uint16 CTheScripts : : ScriptsUpdated ;
int32 ScriptParams [ 32 ] ;
2020-05-18 22:49:09 +00:00
uint8 CTheScripts : : RiotIntensity ;
uint32 CTheScripts : : LastMissionPassedTime ;
uint16 CTheScripts : : NumberOfExclusiveMissionScripts ;
bool CTheScripts : : bPlayerHasMetDebbieHarry ;
bool CTheScripts : : bPlayerIsInTheStatium ;
2020-12-04 23:49:32 +00:00
# if (defined GTA_PC && !defined GTAVC_JP_PATCH || defined GTA_XBOX || defined SUPPORT_XBOX_SCRIPT || defined GTA_MOBILE || defined SUPPORT_MOBILE_SCRIPT)
int16 CTheScripts : : CardStack [ CARDS_IN_DECK * MAX_DECKS ] ;
int16 CTheScripts : : CardStackPosition ;
# endif
2019-07-03 22:16:24 +00:00
2020-05-26 21:25:12 +00:00
# ifdef MISSION_REPLAY
static const char * nonMissionScripts [ ] = {
" copcar " ,
" ambulan " ,
" taxi " ,
" firetru " ,
" rampage " ,
" t4x4_1 " ,
" t4x4_2 " ,
" t4x4_3 " ,
" rc1 " ,
" rc2 " ,
" rc3 " ,
" rc4 " ,
" hj " ,
" usj " ,
" mayhem "
} ;
int AllowMissionReplay ;
uint32 NextMissionDelay ;
uint32 MissionStartTime ;
uint32 WaitForMissionActivate ;
uint32 WaitForSave ;
float oldTargetX ;
float oldTargetY ;
int missionRetryScriptIndex ;
bool doingMissionRetry ;
2020-12-04 23:49:32 +00:00
bool gbTryingPorn4Again ;
int IsInAmmunation ;
int MissionSkipLevel ;
2020-05-26 21:25:12 +00:00
# endif
2020-06-21 10:46:23 +00:00
# ifdef USE_ADVANCED_SCRIPT_DEBUG_OUTPUT
# define REGISTER_COMMAND(command, in, out, cond, ovrd, visual) { command, #command, in, out, cond, ovrd, visual }
# define INPUT_ARGUMENTS(...) { __VA_ARGS__ ARGTYPE_NONE }
# define OUTPUT_ARGUMENTS(...) { __VA_ARGS__ ARGTYPE_NONE }
const tScriptCommandData commands [ ] = {
REGISTER_COMMAND ( COMMAND_NOP , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_WAIT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GOTO , INPUT_ARGUMENTS ( ARGTYPE_LABEL , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SHAKE_CAM , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_VAR_INT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " = " ) ,
REGISTER_COMMAND ( COMMAND_SET_VAR_FLOAT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " = " ) ,
REGISTER_COMMAND ( COMMAND_SET_LVAR_INT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " = " ) ,
REGISTER_COMMAND ( COMMAND_SET_LVAR_FLOAT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " = " ) ,
REGISTER_COMMAND ( COMMAND_ADD_VAL_TO_INT_VAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " += " ) ,
REGISTER_COMMAND ( COMMAND_ADD_VAL_TO_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " += " ) ,
REGISTER_COMMAND ( COMMAND_ADD_VAL_TO_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " += " ) ,
REGISTER_COMMAND ( COMMAND_ADD_VAL_TO_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " += " ) ,
REGISTER_COMMAND ( COMMAND_SUB_VAL_FROM_INT_VAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " -= " ) ,
REGISTER_COMMAND ( COMMAND_SUB_VAL_FROM_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " -= " ) ,
REGISTER_COMMAND ( COMMAND_SUB_VAL_FROM_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " -= " ) ,
REGISTER_COMMAND ( COMMAND_SUB_VAL_FROM_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " -= " ) ,
REGISTER_COMMAND ( COMMAND_MULT_INT_VAR_BY_VAL , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " *= " ) ,
REGISTER_COMMAND ( COMMAND_MULT_FLOAT_VAR_BY_VAL , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " *= " ) ,
REGISTER_COMMAND ( COMMAND_MULT_INT_LVAR_BY_VAL , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " *= " ) ,
REGISTER_COMMAND ( COMMAND_MULT_FLOAT_LVAR_BY_VAL , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " *= " ) ,
REGISTER_COMMAND ( COMMAND_DIV_INT_VAR_BY_VAL , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " /= " ) ,
REGISTER_COMMAND ( COMMAND_DIV_FLOAT_VAR_BY_VAL , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " /= " ) ,
REGISTER_COMMAND ( COMMAND_DIV_INT_LVAR_BY_VAL , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " /= " ) ,
REGISTER_COMMAND ( COMMAND_DIV_FLOAT_LVAR_BY_VAL , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " /= " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_VAR_GREATER_THAN_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " > " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_LVAR_GREATER_THAN_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " > " ) ,
REGISTER_COMMAND ( COMMAND_IS_NUMBER_GREATER_THAN_INT_VAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " > " ) ,
REGISTER_COMMAND ( COMMAND_IS_NUMBER_GREATER_THAN_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " > " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_VAR_GREATER_THAN_INT_VAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " > " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_LVAR_GREATER_THAN_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " > " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_VAR_GREATER_THAN_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " > " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_LVAR_GREATER_THAN_INT_VAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " > " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_VAR_GREATER_THAN_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " > " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_LVAR_GREATER_THAN_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " > " ) ,
REGISTER_COMMAND ( COMMAND_IS_NUMBER_GREATER_THAN_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " > " ) ,
REGISTER_COMMAND ( COMMAND_IS_NUMBER_GREATER_THAN_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " > " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_VAR_GREATER_THAN_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " > " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_LVAR_GREATER_THAN_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " > " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_VAR_GREATER_THAN_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " > " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_LVAR_GREATER_THAN_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " > " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_VAR_GREATER_OR_EQUAL_TO_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " >= " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_LVAR_GREATER_OR_EQUAL_TO_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " >= " ) ,
REGISTER_COMMAND ( COMMAND_IS_NUMBER_GREATER_OR_EQUAL_TO_INT_VAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " >= " ) ,
REGISTER_COMMAND ( COMMAND_IS_NUMBER_GREATER_OR_EQUAL_TO_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " >= " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_VAR_GREATER_OR_EQUAL_TO_INT_VAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " >= " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_LVAR_GREATER_OR_EQUAL_TO_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " >= " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_VAR_GREATER_OR_EQUAL_TO_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " >= " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_LVAR_GREATER_OR_EQUAL_TO_INT_VAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " >= " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_VAR_GREATER_OR_EQUAL_TO_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " >= " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_LVAR_GREATER_OR_EQUAL_TO_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " >= " ) ,
REGISTER_COMMAND ( COMMAND_IS_NUMBER_GREATER_OR_EQUAL_TO_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " >= " ) ,
REGISTER_COMMAND ( COMMAND_IS_NUMBER_GREATER_OR_EQUAL_TO_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " >= " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_VAR_GREATER_OR_EQUAL_TO_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " >= " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_LVAR_GREATER_OR_EQUAL_TO_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " >= " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_VAR_GREATER_OR_EQUAL_TO_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " >= " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_LVAR_GREATER_OR_EQUAL_TO_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " >= " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_VAR_EQUAL_TO_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " == " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_LVAR_EQUAL_TO_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " == " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_VAR_EQUAL_TO_INT_VAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " == " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_LVAR_EQUAL_TO_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " == " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_VAR_EQUAL_TO_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " == " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_VAR_NOT_EQUAL_TO_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " != " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_LVAR_NOT_EQUAL_TO_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " != " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_VAR_NOT_EQUAL_TO_INT_VAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " != " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_LVAR_NOT_EQUAL_TO_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " != " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_VAR_NOT_EQUAL_TO_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " != " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_VAR_EQUAL_TO_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " == " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_LVAR_EQUAL_TO_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " == " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_VAR_EQUAL_TO_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " == " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_LVAR_EQUAL_TO_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " == " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_VAR_EQUAL_TO_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " == " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_VAR_NOT_EQUAL_TO_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " != " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_LVAR_NOT_EQUAL_TO_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " != " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_VAR_NOT_EQUAL_TO_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " != " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_LVAR_NOT_EQUAL_TO_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " != " ) ,
REGISTER_COMMAND ( COMMAND_IS_FLOAT_VAR_NOT_EQUAL_TO_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " != " ) ,
REGISTER_COMMAND ( COMMAND_GOTO_IF_TRUE , INPUT_ARGUMENTS ( ARGTYPE_LABEL , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GOTO_IF_FALSE , INPUT_ARGUMENTS ( ARGTYPE_LABEL , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_TERMINATE_THIS_SCRIPT , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_START_NEW_SCRIPT , INPUT_ARGUMENTS ( ARGTYPE_LABEL , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GOSUB , INPUT_ARGUMENTS ( ARGTYPE_LABEL , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_RETURN , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LINE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_PLAYER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_PLAYER_COORDINATES , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PLAYER_COORDINATES , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_AREA_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_BOOL , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_AREA_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_BOOL , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_INT_VAR_TO_INT_VAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " += " ) ,
REGISTER_COMMAND ( COMMAND_ADD_FLOAT_VAR_TO_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " += " ) ,
REGISTER_COMMAND ( COMMAND_ADD_INT_LVAR_TO_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " += " ) ,
REGISTER_COMMAND ( COMMAND_ADD_FLOAT_LVAR_TO_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " += " ) ,
REGISTER_COMMAND ( COMMAND_ADD_INT_VAR_TO_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " += " ) ,
REGISTER_COMMAND ( COMMAND_ADD_FLOAT_VAR_TO_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " += " ) ,
REGISTER_COMMAND ( COMMAND_ADD_INT_LVAR_TO_INT_VAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " += " ) ,
REGISTER_COMMAND ( COMMAND_ADD_FLOAT_LVAR_TO_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " += " ) ,
REGISTER_COMMAND ( COMMAND_SUB_INT_VAR_FROM_INT_VAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " -= " ) ,
REGISTER_COMMAND ( COMMAND_SUB_FLOAT_VAR_FROM_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " -= " ) ,
REGISTER_COMMAND ( COMMAND_SUB_INT_LVAR_FROM_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " -= " ) ,
REGISTER_COMMAND ( COMMAND_SUB_FLOAT_LVAR_FROM_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " -= " ) ,
REGISTER_COMMAND ( COMMAND_SUB_INT_VAR_FROM_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " -= " ) ,
REGISTER_COMMAND ( COMMAND_SUB_FLOAT_VAR_FROM_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " -= " ) ,
REGISTER_COMMAND ( COMMAND_SUB_INT_LVAR_FROM_INT_VAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " -= " ) ,
REGISTER_COMMAND ( COMMAND_SUB_FLOAT_LVAR_FROM_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " -= " ) ,
REGISTER_COMMAND ( COMMAND_MULT_INT_VAR_BY_INT_VAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " *= " ) ,
REGISTER_COMMAND ( COMMAND_MULT_FLOAT_VAR_BY_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " *= " ) ,
REGISTER_COMMAND ( COMMAND_MULT_INT_LVAR_BY_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " *= " ) ,
REGISTER_COMMAND ( COMMAND_MULT_FLOAT_LVAR_BY_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " *= " ) ,
REGISTER_COMMAND ( COMMAND_MULT_INT_VAR_BY_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " *= " ) ,
REGISTER_COMMAND ( COMMAND_MULT_FLOAT_VAR_BY_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " *= " ) ,
REGISTER_COMMAND ( COMMAND_MULT_INT_LVAR_BY_INT_VAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " *= " ) ,
REGISTER_COMMAND ( COMMAND_MULT_FLOAT_LVAR_BY_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " *= " ) ,
REGISTER_COMMAND ( COMMAND_DIV_INT_VAR_BY_INT_VAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " /= " ) ,
REGISTER_COMMAND ( COMMAND_DIV_FLOAT_VAR_BY_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " /= " ) ,
REGISTER_COMMAND ( COMMAND_DIV_INT_LVAR_BY_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " /= " ) ,
REGISTER_COMMAND ( COMMAND_DIV_FLOAT_LVAR_BY_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " /= " ) ,
REGISTER_COMMAND ( COMMAND_DIV_INT_VAR_BY_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " /= " ) ,
REGISTER_COMMAND ( COMMAND_DIV_FLOAT_VAR_BY_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " /= " ) ,
REGISTER_COMMAND ( COMMAND_DIV_INT_LVAR_BY_INT_VAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " /= " ) ,
REGISTER_COMMAND ( COMMAND_DIV_FLOAT_LVAR_BY_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " /= " ) ,
2020-12-14 06:52:49 +00:00
REGISTER_COMMAND ( COMMAND_ADD_TIMED_VAL_TO_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " +=@ " ) ,
REGISTER_COMMAND ( COMMAND_ADD_TIMED_VAL_TO_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " +=@ " ) ,
REGISTER_COMMAND ( COMMAND_ADD_TIMED_FLOAT_VAR_TO_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " +=@ " ) ,
REGISTER_COMMAND ( COMMAND_ADD_TIMED_FLOAT_LVAR_TO_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " +=@ " ) ,
REGISTER_COMMAND ( COMMAND_ADD_TIMED_FLOAT_LVAR_TO_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " +=@ " ) ,
REGISTER_COMMAND ( COMMAND_ADD_TIMED_FLOAT_VAR_TO_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " +=@ " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_SUB_TIMED_VAL_FROM_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " -=@ " ) ,
REGISTER_COMMAND ( COMMAND_SUB_TIMED_VAL_FROM_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " -=@ " ) ,
REGISTER_COMMAND ( COMMAND_SUB_TIMED_FLOAT_VAR_FROM_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " -=@ " ) ,
REGISTER_COMMAND ( COMMAND_SUB_TIMED_FLOAT_LVAR_FROM_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " -=@ " ) ,
REGISTER_COMMAND ( COMMAND_SUB_TIMED_FLOAT_LVAR_FROM_FLOAT_VAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " -=@ " ) ,
REGISTER_COMMAND ( COMMAND_SUB_TIMED_FLOAT_VAR_FROM_FLOAT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " -=@ " ) ,
REGISTER_COMMAND ( COMMAND_SET_VAR_INT_TO_VAR_INT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " = " ) ,
REGISTER_COMMAND ( COMMAND_SET_LVAR_INT_TO_LVAR_INT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " = " ) ,
REGISTER_COMMAND ( COMMAND_SET_VAR_FLOAT_TO_VAR_FLOAT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " = " ) ,
REGISTER_COMMAND ( COMMAND_SET_LVAR_FLOAT_TO_LVAR_FLOAT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " = " ) ,
REGISTER_COMMAND ( COMMAND_SET_VAR_FLOAT_TO_LVAR_FLOAT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " = " ) ,
REGISTER_COMMAND ( COMMAND_SET_LVAR_FLOAT_TO_VAR_FLOAT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " = " ) ,
REGISTER_COMMAND ( COMMAND_SET_VAR_INT_TO_LVAR_INT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " = " ) ,
REGISTER_COMMAND ( COMMAND_SET_LVAR_INT_TO_VAR_INT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " = " ) ,
REGISTER_COMMAND ( COMMAND_CSET_VAR_INT_TO_VAR_FLOAT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " =# " ) ,
REGISTER_COMMAND ( COMMAND_CSET_VAR_FLOAT_TO_VAR_INT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " =# " ) ,
REGISTER_COMMAND ( COMMAND_CSET_LVAR_INT_TO_LVAR_FLOAT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " =# " ) ,
REGISTER_COMMAND ( COMMAND_CSET_LVAR_FLOAT_TO_LVAR_INT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " =# " ) ,
REGISTER_COMMAND ( COMMAND_CSET_VAR_INT_TO_LVAR_FLOAT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " =# " ) ,
REGISTER_COMMAND ( COMMAND_CSET_VAR_FLOAT_TO_LVAR_INT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " =# " ) ,
REGISTER_COMMAND ( COMMAND_CSET_LVAR_INT_TO_VAR_FLOAT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " =# " ) ,
REGISTER_COMMAND ( COMMAND_CSET_LVAR_FLOAT_TO_VAR_INT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " =# " ) ,
REGISTER_COMMAND ( COMMAND_ABS_VAR_INT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " ABS " ) ,
REGISTER_COMMAND ( COMMAND_ABS_LVAR_INT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " ABS " ) ,
REGISTER_COMMAND ( COMMAND_ABS_VAR_FLOAT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " ABS " ) ,
REGISTER_COMMAND ( COMMAND_ABS_VAR_FLOAT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " ABS " ) ,
REGISTER_COMMAND ( COMMAND_GENERATE_RANDOM_FLOAT , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GENERATE_RANDOM_INT , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_PED_HANDLE , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DELETE_CHAR , INPUT_ARGUMENTS ( ARGTYPE_PED_HANDLE , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CHAR_WANDER_DIR , INPUT_ARGUMENTS ( ARGTYPE_PED_HANDLE , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CHAR_WANDER_RANGE , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CHAR_FOLLOW_PATH , INPUT_ARGUMENTS ( ARGTYPE_PED_HANDLE , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CHAR_SET_IDLE , INPUT_ARGUMENTS ( ARGTYPE_PED_HANDLE , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_CHAR_COORDINATES , INPUT_ARGUMENTS ( ARGTYPE_PED_HANDLE , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_COORDINATES , INPUT_ARGUMENTS ( ARGTYPE_PED_HANDLE , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_STILL_ALIVE , INPUT_ARGUMENTS ( ARGTYPE_PED_HANDLE , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_IN_AREA_2D , INPUT_ARGUMENTS ( ARGTYPE_PED_HANDLE , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_BOOL , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_IN_AREA_3D , INPUT_ARGUMENTS ( ARGTYPE_PED_HANDLE , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_BOOL , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_VEHICLE_HANDLE , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DELETE_CAR , INPUT_ARGUMENTS ( ARGTYPE_VEHICLE_HANDLE , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CAR_GOTO_COORDINATES , INPUT_ARGUMENTS ( ARGTYPE_VEHICLE_HANDLE , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CAR_WANDER_RANDOMLY , INPUT_ARGUMENTS ( ARGTYPE_VEHICLE_HANDLE , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CAR_SET_IDLE , INPUT_ARGUMENTS ( ARGTYPE_VEHICLE_HANDLE , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_CAR_COORDINATES , INPUT_ARGUMENTS ( ARGTYPE_VEHICLE_HANDLE , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_COORDINATES , INPUT_ARGUMENTS ( ARGTYPE_VEHICLE_HANDLE , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CAR_STILL_ALIVE , INPUT_ARGUMENTS ( ARGTYPE_VEHICLE_HANDLE , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_CRUISE_SPEED , INPUT_ARGUMENTS ( ARGTYPE_VEHICLE_HANDLE , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_DRIVING_STYLE , INPUT_ARGUMENTS ( ARGTYPE_VEHICLE_HANDLE , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_MISSION , INPUT_ARGUMENTS ( ARGTYPE_VEHICLE_HANDLE , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-03 12:17:02 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_IN_AREA_2D , INPUT_ARGUMENTS ( ARGTYPE_VEHICLE_HANDLE , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_BOOL , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CAR_IN_AREA_3D , INPUT_ARGUMENTS ( ARGTYPE_VEHICLE_HANDLE , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_BOOL , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_SPECIAL_0 , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SPECIAL_1 , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SPECIAL_2 , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SPECIAL_3 , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SPECIAL_4 , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SPECIAL_5 , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SPECIAL_6 , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SPECIAL_7 , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_BIG , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_NOW , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_SOON , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLEAR_PRINTS , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_TIME_OF_DAY , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TIME_OF_DAY , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_MINUTES_TO_TIME_OF_DAY , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_POINT_ON_SCREEN , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DEBUG_ON , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DEBUG_OFF , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_RETURN_TRUE , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_RETURN_FALSE , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_VAR_INT , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_VAR_FLOAT , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LVAR_INT , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LVAR_FLOAT , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LBRACKET , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_RBRACKET , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REPEAT , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ENDREPEAT , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IF , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IFNOT , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ELSE , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ENDIF , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_WHILE , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_WHILENOT , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ENDWHILE , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ANDOR , INPUT_ARGUMENTS ( ARGTYPE_ANDOR , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-28 08:59:20 +00:00
REGISTER_COMMAND ( COMMAND_LAUNCH_MISSION , INPUT_ARGUMENTS ( ARGTYPE_LABEL , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_MISSION_HAS_FINISHED , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_STORE_CAR_CHAR_IS_IN , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_STORE_CAR_PLAYER_IS_IN , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CHAR_IN_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_IN_MODEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_MODEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_IN_ANY_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_ANY_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_BUTTON_PRESSED , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GET_PAD_STATE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_LOCATE_PLAYER_ANY_MEANS_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_PLAYER_ON_FOOT_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_PLAYER_IN_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_STOPPED_PLAYER_ANY_MEANS_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_STOPPED_PLAYER_ON_FOOT_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_STOPPED_PLAYER_IN_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_PLAYER_ANY_MEANS_CHAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_PLAYER_ON_FOOT_CHAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_PLAYER_IN_CAR_CHAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_ANY_MEANS_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_ON_FOOT_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_IN_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_STOPPED_CHAR_ANY_MEANS_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_STOPPED_CHAR_ON_FOOT_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_STOPPED_CHAR_IN_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_ANY_MEANS_CHAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_ON_FOOT_CHAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_IN_CAR_CHAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_PLAYER_ANY_MEANS_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_PLAYER_ON_FOOT_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_PLAYER_IN_CAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_STOPPED_PLAYER_ANY_MEANS_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_STOPPED_PLAYER_ON_FOOT_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_STOPPED_PLAYER_IN_CAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_PLAYER_ANY_MEANS_CHAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_PLAYER_ON_FOOT_CHAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_PLAYER_IN_CAR_CHAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_ANY_MEANS_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_ON_FOOT_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_IN_CAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_STOPPED_CHAR_ANY_MEANS_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_STOPPED_CHAR_ON_FOOT_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_STOPPED_CHAR_IN_CAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_ANY_MEANS_CHAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_ON_FOOT_CHAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_IN_CAR_CHAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_CREATE_OBJECT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DELETE_OBJECT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_SCORE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_SCORE_GREATER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_STORE_SCORE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GIVE_REMOTE_CONTROLLED_CAR_TO_PLAYER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ALTER_WANTED_LEVEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ALTER_WANTED_LEVEL_NO_DROP , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_WANTED_LEVEL_GREATER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_CLEAR_WANTED_LEVEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_DEATHARREST_STATE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_DEATHARREST_BEEN_EXECUTED , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_ADD_AMMO_TO_PLAYER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_AMMO_TO_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_AMMO_TO_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PLAYER_STILL_ALIVE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_DEAD , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_DEAD , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CAR_DEAD , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_CHAR_THREAT_SEARCH , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_THREAT_REACTION , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_NO_OBJ , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ORDER_DRIVER_OUT_OF_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ORDER_CHAR_TO_DRIVE_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_PATROL_POINT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_GANGZONE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_ZONE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_PRESSING_HORN , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_HAS_CHAR_SPOTTED_PLAYER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_ORDER_CHAR_TO_BACKDOOR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_CHAR_TO_GANG , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CHAR_OBJECTIVE_PASSED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_CHAR_DRIVE_AGGRESSION , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_MAX_DRIVESPEED , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_CHAR_INSIDE_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_WARP_PLAYER_FROM_CAR_TO_COORD , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_MAKE_CHAR_DO_NOTHING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_INVINCIBLE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PLAYER_INVINCIBLE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_GRAPHIC_TYPE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PLAYER_GRAPHIC_TYPE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_PLAYER_BEEN_ARRESTED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_STOP_CHAR_DRIVING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_KILL_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_FAVOURITE_CAR_MODEL_FOR_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OCCUPATION , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CHANGE_CAR_LOCK , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SHAKE_CAM_WITH_POINT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_MODEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CAR_REMAP , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_HAS_CAR_JUST_SUNK , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_CAR_NO_COLLIDE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_DEAD_IN_AREA_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CAR_DEAD_IN_AREA_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_TRAILER_ATTACHED , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CAR_ON_TRAILER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_HAS_CAR_GOT_WEAPON , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_PARK , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_PARK_FINISHED , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_KILL_ALL_PASSENGERS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_BULLETPROOF , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_FLAMEPROOF , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_ROCKETPROOF , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CARBOMB_ACTIVE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GIVE_CAR_ALARM , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PUT_CAR_ON_TRAILER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_CRUSHED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_CREATE_GANG_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_CAR_GENERATOR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SWITCH_CAR_GENERATOR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_PAGER_MESSAGE , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DISPLAY_ONSCREEN_TIMER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLEAR_ONSCREEN_TIMER , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DISPLAY_ONSCREEN_COUNTER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLEAR_ONSCREEN_COUNTER , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_ZONE_CAR_INFO , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CHAR_IN_GANG_ZONE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_IN_ZONE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_CAR_DENSITY , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PED_DENSITY , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_POINT_CAMERA_AT_PLAYER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_POINT_CAMERA_AT_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_POINT_CAMERA_AT_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_RESTORE_CAMERA , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SHAKE_PAD , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_ZONE_PED_INFO , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TIME_SCALE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_IN_AIR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_FIXED_CAMERA_POSITION , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_POINT_CAMERA_AT_POINT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_BLIP_FOR_CAR_OLD , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_BLIP_FOR_CHAR_OLD , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_BLIP_FOR_OBJECT_OLD , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REMOVE_BLIP , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CHANGE_BLIP_COLOUR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DIM_BLIP , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_BLIP_FOR_COORD_OLD , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CHANGE_BLIP_SCALE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_FADING_COLOUR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DO_FADE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_GET_FADING_STATUS , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_ADD_HOSPITAL_RESTART , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_POLICE_RESTART , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_OVERRIDE_NEXT_RESTART , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DRAW_SHADOW , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_PLAYER_HEADING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PLAYER_HEADING , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_CHAR_HEADING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_HEADING , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_CAR_HEADING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_HEADING , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_OBJECT_HEADING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_OBJECT_HEADING , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PLAYER_TOUCHING_OBJECT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_TOUCHING_OBJECT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_PLAYER_AMMO , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_AMMO , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_AMMO , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOAD_CAMERA_SPLINE , INPUT_ARGUMENTS ( ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_MOVE_CAMERA_ALONG_SPLINE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_CAMERA_POSITION_ALONG_SPLINE , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DECLARE_MISSION_FLAG , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DECLARE_MISSION_FLAG_FOR_CONTACT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DECLARE_BASE_BRIEF_ID_FOR_CONTACT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PLAYER_HEALTH_GREATER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_HEALTH_GREATER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CAR_HEALTH_GREATER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_ADD_BLIP_FOR_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_BLIP_FOR_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_BLIP_FOR_OBJECT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_BLIP_FOR_CONTACT_POINT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_BLIP_FOR_COORD , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CHANGE_BLIP_DISPLAY , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_ONE_OFF_SOUND , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_CONTINUOUS_SOUND , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REMOVE_SOUND , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_STUCK_ON_ROOF , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_ADD_UPSIDEDOWN_CAR_CHECK , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REMOVE_UPSIDEDOWN_CAR_CHECK , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_WAIT_ON_FOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_FLEE_ON_FOOT_TILL_SAFE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_GUARD_SPOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_GUARD_AREA , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_WAIT_IN_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_AREA_ON_FOOT_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_AREA_IN_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_STOPPED_IN_AREA_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_STOPPED_IN_AREA_ON_FOOT_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_STOPPED_IN_AREA_IN_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_AREA_ON_FOOT_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_AREA_IN_CAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_STOPPED_IN_AREA_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_STOPPED_IN_AREA_ON_FOOT_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_STOPPED_IN_AREA_IN_CAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_IN_AREA_ON_FOOT_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_IN_AREA_IN_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_STOPPED_IN_AREA_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_STOPPED_IN_AREA_ON_FOOT_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_STOPPED_IN_AREA_IN_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_IN_AREA_ON_FOOT_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_IN_AREA_IN_CAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_STOPPED_IN_AREA_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_STOPPED_IN_AREA_ON_FOOT_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_STOPPED_IN_AREA_IN_CAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CAR_STOPPED_IN_AREA_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CAR_STOPPED_IN_AREA_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_STOPPED_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_STOPPED_CAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GIVE_WEAPON_TO_PLAYER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GIVE_WEAPON_TO_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GIVE_WEAPON_TO_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PLAYER_CONTROL , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_FORCE_WEATHER , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_FORCE_WEATHER_NOW , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_RELEASE_WEATHER , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_CURRENT_PLAYER_WEAPON , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CURRENT_CHAR_WEAPON , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CURRENT_CAR_WEAPON , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_OBJECT_COORDINATES , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_OBJECT_COORDINATES , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_GAME_TIMER , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_TURN_CHAR_TO_FACE_COORD , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_TURN_PLAYER_TO_FACE_COORD , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_STORE_WANTED_LEVEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_STOPPED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_MARK_CHAR_AS_NO_LONGER_NEEDED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_MARK_CAR_AS_NO_LONGER_NEEDED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_MARK_OBJECT_AS_NO_LONGER_NEEDED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DONT_REMOVE_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DONT_REMOVE_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DONT_REMOVE_OBJECT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_CHAR_AS_PASSENGER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_KILL_CHAR_ON_FOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_KILL_PLAYER_ON_FOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_KILL_CHAR_ANY_MEANS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_KILL_PLAYER_ANY_MEANS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_FLEE_CHAR_ON_FOOT_TILL_SAFE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_FLEE_PLAYER_ON_FOOT_TILL_SAFE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_FLEE_CHAR_ON_FOOT_ALWAYS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_FLEE_PLAYER_ON_FOOT_ALWAYS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_GOTO_CHAR_ON_FOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_GOTO_PLAYER_ON_FOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_LEAVE_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_ENTER_CAR_AS_PASSENGER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_ENTER_CAR_AS_DRIVER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_FOLLOW_CAR_IN_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_FIRE_AT_OBJECT_FROM_VEHICLE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_DESTROY_OBJECT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_DESTROY_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_GOTO_AREA_ON_FOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_GOTO_AREA_IN_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_FOLLOW_CAR_ON_FOOT_WITH_OFFSET , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_GUARD_ATTACK , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_AS_LEADER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PLAYER_AS_LEADER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LEAVE_GROUP , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_FOLLOW_ROUTE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_ROUTE_POINT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_NUMBER_BIG , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_NUMBER_NOW , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_NUMBER_SOON , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SWITCH_ROADS_ON , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SWITCH_ROADS_OFF , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_NUMBER_OF_PASSENGERS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_MAXIMUM_NUMBER_OF_PASSENGERS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_DENSITY_MULTIPLIER , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_HEAVY , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLEAR_CHAR_THREAT_SEARCH , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ACTIVATE_CRANE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DEACTIVATE_CRANE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_MAX_WANTED_LEVEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_SAVE_VAR_INT , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SAVE_VAR_FLOAT , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_IN_AIR_PROPER , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CAR_UPSIDEDOWN , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GET_PLAYER_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_CANCEL_OVERRIDE_RESTART , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_POLICE_IGNORE_PLAYER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_PAGER_MESSAGE_WITH_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_START_KILL_FRENZY , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_READ_KILL_FRENZY_STATUS , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SQRT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_LOCATE_PLAYER_ANY_MEANS_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_PLAYER_ON_FOOT_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_PLAYER_IN_CAR_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_PLAYER_ANY_MEANS_CAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_PLAYER_ON_FOOT_CAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_PLAYER_IN_CAR_CAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_ANY_MEANS_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_ON_FOOT_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_IN_CAR_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_ANY_MEANS_CAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_ON_FOOT_CAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_IN_CAR_CAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GENERATE_RANDOM_FLOAT_IN_RANGE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GENERATE_RANDOM_INT_IN_RANGE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCK_CAR_DOORS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_EXPLODE_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_EXPLOSION , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_UPRIGHT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_TURN_CHAR_TO_FACE_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_TURN_CHAR_TO_FACE_PLAYER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_TURN_PLAYER_TO_FACE_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_GOTO_COORD_ON_FOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_GOTO_COORD_IN_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_PICKUP , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_PICKUP_BEEN_COLLECTED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_REMOVE_PICKUP , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TAXI_LIGHTS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_BIG_Q , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_NUMBER_BIG_Q , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_GARAGE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_GARAGE_WITH_CAR_MODEL , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TARGET_CAR_FOR_MISSION_GARAGE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_IN_MISSION_GARAGE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_FREE_BOMBS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_POWERPOINT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_ALL_TAXI_LIGHTS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_ARMED_WITH_ANY_BOMB , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_APPLY_BRAKES_TO_PLAYERS_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PLAYER_HEALTH , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_HEALTH , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_HEALTH , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_PLAYER_HEALTH , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_CHAR_HEALTH , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_CAR_HEALTH , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_ARMED_WITH_BOMB , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_CHANGE_CAR_COLOUR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SWITCH_PED_ROADS_ON , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SWITCH_PED_ROADS_OFF , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CHAR_LOOK_AT_CHAR_ALWAYS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CHAR_LOOK_AT_PLAYER_ALWAYS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PLAYER_LOOK_AT_CHAR_ALWAYS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_STOP_CHAR_LOOKING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_STOP_PLAYER_LOOKING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SWITCH_HELICOPTER , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_GANG_ATTITUDE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_GANG_GANG_ATTITUDE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_GANG_PLAYER_ATTITUDE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_GANG_PED_MODELS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_GANG_CAR_MODEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_GANG_WEAPONS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_RUN_TO_AREA , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_RUN_TO_COORD , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PLAYER_TOUCHING_OBJECT_ON_FOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_TOUCHING_OBJECT_ON_FOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_LOAD_SPECIAL_CHARACTER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_SPECIAL_CHARACTER_LOADED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_FLASH_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_FLASH_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_FLASH_OBJECT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_REMOTE_MODE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_ARM_CAR_WITH_BOMB , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_PERSONALITY , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CUTSCENE_OFFSET , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_ANIM_GROUP_FOR_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_ANIM_GROUP_FOR_PLAYER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REQUEST_MODEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_MODEL_LOADED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_MARK_MODEL_AS_NO_LONGER_NEEDED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GRAB_PHONE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_REPEATED_PHONE_MESSAGE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PHONE_MESSAGE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_PHONE_DISPLAYED_MESSAGE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_TURN_PHONE_OFF , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DRAW_CORONA , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DRAW_LIGHT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_STORE_WEATHER , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_RESTORE_WEATHER , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_STORE_CLOCK , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_RESTORE_CLOCK , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_RESTART_CRITICAL_MISSION , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PLAYER_PLAYING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_NO_OBJ , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_WAIT_ON_FOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_FLEE_ON_FOOT_TILL_SAFE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_GUARD_SPOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_GUARD_AREA , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_WAIT_IN_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_KILL_CHAR_ON_FOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_KILL_PLAYER_ON_FOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_KILL_CHAR_ANY_MEANS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_KILL_PLAYER_ANY_MEANS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_FLEE_CHAR_ON_FOOT_TILL_SAFE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_FLEE_PLAYER_ON_FOOT_TILL_SAFE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_FLEE_CHAR_ON_FOOT_ALWAYS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_FLEE_PLAYER_ON_FOOT_ALWAYS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_GOTO_CHAR_ON_FOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_GOTO_PLAYER_ON_FOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_LEAVE_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_ENTER_CAR_AS_PASSENGER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_ENTER_CAR_AS_DRIVER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_FOLLOW_CAR_IN_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_FIRE_AT_OBJECT_FROM_VEHICLE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_DESTROY_OBJECT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_DESTROY_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_GOTO_AREA_ON_FOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_GOTO_AREA_IN_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_FOLLOW_CAR_ON_FOOT_WITH_OFFSET , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_GUARD_ATTACK , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_FOLLOW_ROUTE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_GOTO_COORD_ON_FOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_GOTO_COORD_IN_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_RUN_TO_AREA , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_RUN_TO_COORD , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_PEDS_IN_AREA_TO_COLL , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_PEDS_IN_VEHICLE_TO_COLL , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLEAR_COLL , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_COLL_IN_CARS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_COLL_ANY_MEANS_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_COLL_ON_FOOT_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_COLL_IN_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_STOPPED_COLL_ANY_MEANS_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_STOPPED_COLL_ON_FOOT_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_STOPPED_COLL_IN_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_COLL_ANY_MEANS_CHAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_COLL_ON_FOOT_CHAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_COLL_IN_CAR_CHAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_COLL_ANY_MEANS_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_COLL_ON_FOOT_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_COLL_IN_CAR_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_COLL_ANY_MEANS_PLAYER_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_COLL_ON_FOOT_PLAYER_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_COLL_IN_CAR_PLAYER_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_COLL_IN_AREA_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_COLL_IN_AREA_ON_FOOT_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_COLL_IN_AREA_IN_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_COLL_STOPPED_IN_AREA_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_COLL_STOPPED_IN_AREA_ON_FOOT_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_COLL_STOPPED_IN_AREA_IN_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GET_NUMBER_OF_PEDS_IN_COLL , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_HEED_THREATS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PLAYER_HEED_THREATS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_CONTROLLER_MODE , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAN_RESPRAY_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_TAXI , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_UNLOAD_SPECIAL_CHARACTER , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_RESET_NUM_OF_MODELS_KILLED_BY_PLAYER , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GET_NUM_OF_MODELS_KILLED_BY_PLAYER , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ACTIVATE_GARAGE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SWITCH_TAXI_TIMER , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_OBJECT_NO_OFFSET , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_BOAT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_GOTO_AREA_ANY_MEANS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_GOTO_AREA_ANY_MEANS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PLAYER_STOPPED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_STOPPED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_MESSAGE_WAIT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_PARTICLE_EFFECT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SWITCH_WIDESCREEN , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_SPRITE_BLIP_FOR_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_SPRITE_BLIP_FOR_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_SPRITE_BLIP_FOR_OBJECT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_SPRITE_BLIP_FOR_CONTACT_POINT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_SPRITE_BLIP_FOR_COORD , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_ONLY_DAMAGED_BY_PLAYER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_ONLY_DAMAGED_BY_PLAYER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_PROOFS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_PROOFS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_ANGLED_AREA_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_ANGLED_AREA_ON_FOOT_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_ANGLED_AREA_IN_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_STOPPED_IN_ANGLED_AREA_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_STOPPED_IN_ANGLED_AREA_ON_FOOT_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_STOPPED_IN_ANGLED_AREA_IN_CAR_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_ANGLED_AREA_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_ANGLED_AREA_ON_FOOT_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_ANGLED_AREA_IN_CAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_STOPPED_IN_ANGLED_AREA_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_STOPPED_IN_ANGLED_AREA_ON_FOOT_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_STOPPED_IN_ANGLED_AREA_IN_CAR_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_DEACTIVATE_GARAGE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_NUMBER_OF_CARS_COLLECTED_BY_GARAGE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_CAR_BEEN_TAKEN_TO_GARAGE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_SWAT_REQUIRED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_FBI_REQUIRED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_ARMY_REQUIRED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_IN_WATER , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GET_CLOSEST_CHAR_NODE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_CLOSEST_CAR_NODE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CAR_GOTO_COORDINATES_ACCURATE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_START_PACMAN_RACE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_START_PACMAN_RECORD , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GET_NUMBER_OF_POWER_PILLS_EATEN , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_CLEAR_PACMAN , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_START_PACMAN_SCRAMBLE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_NUMBER_OF_POWER_PILLS_CARRIED , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_CLEAR_NUMBER_OF_POWER_PILLS_CARRIED , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_ON_SCREEN , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_ON_SCREEN , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_OBJECT_ON_SCREEN , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GOSUB_FILE , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_GROUND_Z_FOR_3D_COORD , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_START_SCRIPT_FIRE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_SCRIPT_FIRE_EXTINGUISHED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_REMOVE_SCRIPT_FIRE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COMEDY_CONTROLS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_BOAT_GOTO_COORDS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_BOAT_STOP , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PLAYER_SHOOTING_IN_AREA , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_SHOOTING_IN_AREA , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CURRENT_PLAYER_WEAPON , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CURRENT_CHAR_WEAPON , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_CLEAR_NUMBER_OF_POWER_PILLS_EATEN , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_ADD_POWER_PILL , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_BOAT_CRUISE_SPEED , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_RANDOM_CHAR_IN_AREA , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_RANDOM_CHAR_IN_ZONE , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_TAXI , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_SHOOTING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_SHOOTING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_CREATE_MONEY_PICKUP , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_ACCURACY , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_CAR_SPEED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOAD_CUTSCENE , INPUT_ARGUMENTS ( ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_CUTSCENE_OBJECT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CUTSCENE_ANIM , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_START_CUTSCENE , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GET_CUTSCENE_TIME , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_HAS_CUTSCENE_FINISHED , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_CLEAR_CUTSCENE , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_RESTORE_CAMERA_JUMPCUT , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_CREATE_COLLECTABLE1 , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLLECTABLE1_TOTAL , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PROJECTILE_IN_AREA , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_DESTROY_PROJECTILES_IN_AREA , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DROP_MINE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DROP_NAUTICAL_MINE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CHAR_MODEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_LOAD_SPECIAL_MODEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_CUTSCENE_HEAD , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CUTSCENE_HEAD_ANIM , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SIN , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_COS , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_CAR_FORWARD_X , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_CAR_FORWARD_Y , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CHANGE_GARAGE_TYPE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ACTIVATE_CRUSHER_CRANE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_2_NUMBERS , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_2_NUMBERS_NOW , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_2_NUMBERS_SOON , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_3_NUMBERS , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_3_NUMBERS_NOW , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_3_NUMBERS_SOON , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_4_NUMBERS , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_4_NUMBERS_NOW , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_4_NUMBERS_SOON , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_5_NUMBERS , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_5_NUMBERS_NOW , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_5_NUMBERS_SOON , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_6_NUMBERS , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_6_NUMBERS_NOW , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_6_NUMBERS_SOON , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_FOLLOW_CHAR_IN_FORMATION , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PLAYER_MADE_PROGRESS , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PROGRESS_TOTAL , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REGISTER_JUMP_DISTANCE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REGISTER_JUMP_HEIGHT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REGISTER_JUMP_FLIPS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REGISTER_JUMP_SPINS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REGISTER_JUMP_STUNT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_REGISTER_UNIQUE_JUMP_FOUND , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_UNIQUE_JUMPS_TOTAL , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_REGISTER_PASSENGER_DROPPED_OFF_TAXI , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_REGISTER_MONEY_MADE_TAXI , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_REGISTER_MISSION_GIVEN , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_REGISTER_MISSION_PASSED , INPUT_ARGUMENTS ( ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_RUNNING , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_REMOVE_ALL_SCRIPT_FIRES , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_FIRST_CAR_COLOUR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_SECOND_CAR_COLOUR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_HAS_CHAR_BEEN_DAMAGED_BY_WEAPON , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_HAS_CAR_BEEN_DAMAGED_BY_WEAPON , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_IN_CHARS_GROUP , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_IN_PLAYERS_GROUP , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_EXPLODE_CHAR_HEAD , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_EXPLODE_PLAYER_HEAD , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ANCHOR_BOAT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_ZONE_GROUP , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_START_CAR_FIRE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_START_CHAR_FIRE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_RANDOM_CAR_OF_TYPE_IN_AREA , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_RANDOM_CAR_OF_TYPE_IN_ZONE , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_HAS_RESPRAY_HAPPENED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAMERA_ZOOM , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_PICKUP_WITH_AMMO , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_RAM_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_BLOCK_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_CATCH_TRAIN , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_CATCH_TRAIN , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PLAYER_NEVER_GETS_TIRED , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PLAYER_FAST_RELOAD , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_BLEEDING , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_FUNNY_SUSPENSION , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_BIG_WHEELS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_FREE_RESPRAYS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PLAYER_VISIBLE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_VISIBLE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_VISIBLE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_AREA_OCCUPIED , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_START_DRUG_RUN , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_DRUG_RUN_BEEN_COMPLETED , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_HAS_DRUG_PLANE_BEEN_SHOT_DOWN , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SAVE_PLAYER_FROM_FIRES , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DISPLAY_TEXT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TEXT_SCALE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TEXT_COLOUR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TEXT_JUSTIFY , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TEXT_CENTRE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TEXT_WRAPX , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TEXT_CENTRE_SIZE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TEXT_BACKGROUND , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TEXT_BACKGROUND_COLOUR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TEXT_BACKGROUND_ONLY_TEXT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TEXT_PROPORTIONAL , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TEXT_FONT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_INDUSTRIAL_PASSED , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_COMMERCIAL_PASSED , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SUBURBAN_PASSED , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_ROTATE_OBJECT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SLIDE_OBJECT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_REMOVE_CHAR_ELEGANTLY , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_STAY_IN_SAME_PLACE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_NASTY_GAME , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_UNDRESS_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DRESS_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_START_CHASE_SCENE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_STOP_CHASE_SCENE , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_EXPLOSION_IN_AREA , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_EXPLOSION_IN_ZONE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_START_DRUG_DROP_OFF , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_DROP_OFF_PLANE_BEEN_SHOT_DOWN , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_FIND_DROP_OFF_PLANE_COORDINATES , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_FLOATING_PACKAGE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PLACE_OBJECT_RELATIVE_TO_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_MAKE_OBJECT_TARGETTABLE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_ARMOUR_TO_PLAYER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_ARMOUR_TO_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_OPEN_GARAGE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLOSE_GARAGE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_WARP_CHAR_FROM_CAR_TO_COORD , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_VISIBILITY_OF_CLOSEST_OBJECT_OF_TYPE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_CHAR_SPOTTED_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_HAIL_TAXI , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_OBJECT_BEEN_DAMAGED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_START_KILL_FRENZY_HEADSHOT , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ACTIVATE_MILITARY_CRANE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_WARP_PLAYER_INTO_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_WARP_CHAR_INTO_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SWITCH_CAR_RADIO , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_AUDIO_STREAM , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_2_NUMBERS_BIG , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_3_NUMBERS_BIG , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_4_NUMBERS_BIG , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_5_NUMBERS_BIG , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_WITH_6_NUMBERS_BIG , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_WAIT_STATE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_SET_CAMERA_BEHIND_PLAYER , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_MOTION_BLUR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_STRING_IN_STRING , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_RANDOM_CHAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_STEAL_ANY_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_2_REPEATED_PHONE_MESSAGES , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_2_PHONE_MESSAGES , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_3_REPEATED_PHONE_MESSAGES , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_3_PHONE_MESSAGES , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_4_REPEATED_PHONE_MESSAGES , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_4_PHONE_MESSAGES , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_SNIPER_BULLET_IN_AREA , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_GIVE_PLAYER_DETONATOR , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_COLL_OBJ_STEAL_ANY_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_OBJECT_VELOCITY , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_OBJECT_COLLISION , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_ICECREAM_JINGLE_ON , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_PRINT_STRING_IN_STRING_NOW , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_STRING_IN_STRING_SOON , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_5_REPEATED_PHONE_MESSAGES , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_5_PHONE_MESSAGES , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_6_REPEATED_PHONE_MESSAGES , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_6_PHONE_MESSAGES , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_STRING , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_POINT_OBSCURED_BY_A_MISSION_ENTITY , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_LOAD_ALL_MODELS_NOW , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_ADD_TO_OBJECT_VELOCITY , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DRAW_SPRITE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DRAW_RECT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOAD_SPRITE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOAD_TEXTURE_DICTIONARY , INPUT_ARGUMENTS ( ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_REMOVE_TEXTURE_DICTIONARY , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_OBJECT_DYNAMIC , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_ANIM_SPEED , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PLAY_MISSION_PASSED_TUNE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLEAR_AREA , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_FREEZE_ONSCREEN_TIMER , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SWITCH_CAR_SIREN , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SWITCH_PED_ROADS_ON_ANGLED , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SWITCH_PED_ROADS_OFF_ANGLED , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SWITCH_ROADS_ON_ANGLED , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SWITCH_ROADS_OFF_ANGLED , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_WATERTIGHT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_MOVING_PARTICLE_EFFECT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_CANT_BE_DRAGGED_OUT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_TURN_CAR_TO_FACE_COORD , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CRANE_LIFTING_CAR , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_DRAW_SPHERE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_STATUS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CHAR_MALE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SCRIPT_NAME , INPUT_ARGUMENTS ( ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CHANGE_GARAGE_TYPE_WITH_CAR_MODEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_FIND_DRUG_PLANE_COORDINATES , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SAVE_INT_TO_DEBUG_FILE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SAVE_FLOAT_TO_DEBUG_FILE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_SAVE_NEWLINE_TO_DEBUG_FILE , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_POLICE_RADIO_MESSAGE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_STRONG , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REMOVE_ROUTE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SWITCH_RUBBISH , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REMOVE_PARTICLE_EFFECTS_IN_AREA , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SWITCH_STREAMING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_GARAGE_OPEN , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_GARAGE_CLOSED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_START_CATALINA_HELI , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CATALINA_HELI_TAKE_OFF , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REMOVE_CATALINA_HELI , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_CATALINA_HELI_BEEN_SHOT_DOWN , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SWAP_NEAREST_BUILDING_MODEL , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SWITCH_WORLD_PROCESSING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REMOVE_ALL_PLAYER_WEAPONS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GRAB_CATALINA_HELI , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLEAR_AREA_OF_CARS , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_ROTATING_GARAGE_DOOR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_SPHERE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REMOVE_SPHERE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_CATALINA_HELI_FLY_AWAY , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_EVERYONE_IGNORE_PLAYER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_STORE_CAR_CHAR_IS_IN_NO_SAVE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_STORE_CAR_PLAYER_IS_IN_NO_SAVE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PHONE_DISPLAYING_MESSAGE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_DISPLAY_ONSCREEN_TIMER_WITH_STRING , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DISPLAY_ONSCREEN_COUNTER_WITH_STRING , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_RANDOM_CAR_FOR_CAR_PARK , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_COLLISION_IN_MEMORY , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_WANTED_MULTIPLIER , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_SET_CAMERA_IN_FRONT_OF_PLAYER , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_VISIBLY_DAMAGED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DOES_OBJECT_EXIST , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_LOAD_SCENE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_STUCK_CAR_CHECK , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REMOVE_STUCK_CAR_CHECK , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_STUCK , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_LOAD_MISSION_AUDIO , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_MISSION_AUDIO_LOADED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_PLAY_MISSION_AUDIO , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_MISSION_AUDIO_FINISHED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GET_CLOSEST_CAR_NODE_WITH_HEADING , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_IMPORT_GARAGE_SLOT_BEEN_FILLED , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_CLEAR_THIS_PRINT , INPUT_ARGUMENTS ( ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLEAR_THIS_BIG_PRINT , INPUT_ARGUMENTS ( ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_MISSION_AUDIO_POSITION , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_ACTIVATE_SAVE_MENU , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_SAVE_GAME_FINISHED , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_NO_SPECIAL_CAMERA_FOR_THIS_GARAGE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_BLIP_FOR_PICKUP_OLD , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_BLIP_FOR_PICKUP , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_SPRITE_BLIP_FOR_PICKUP , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PED_DENSITY_MULTIPLIER , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_FORCE_RANDOM_PED_TYPE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TEXT_DRAW_BEFORE_FADE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_COLLECTABLE1S_COLLECTED , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_LEAVE_ANY_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_SPRITES_DRAW_BEFORE_FADE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TEXT_RIGHT_JUSTIFY , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_HELP , INPUT_ARGUMENTS ( ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_CLEAR_HELP , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_FLASH_HUD_OBJECT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_FLASH_RADAR_BLIP , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CHAR_IN_CONTROL , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_GENERATE_CARS_AROUND_CAMERA , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_CLEAR_SMALL_PRINTS , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_MILITARY_CRANE_COLLECTED_ALL_CARS , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_UPSIDEDOWN_CAR_NOT_DAMAGED , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_CAN_PLAYER_START_MISSION , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_MAKE_PLAYER_SAFE_FOR_CUTSCENE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_USE_TEXT_COMMANDS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_THREAT_FOR_PED_TYPE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLEAR_THREAT_FOR_PED_TYPE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_GET_CAR_COLOURS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_ALL_CARS_CAN_BE_DAMAGED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_CAN_BE_DAMAGED , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_MAKE_PLAYER_UNSAFE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOAD_COLLISION , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_BODY_CAST_HEALTH , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHARS_CHATTING , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_MAKE_PLAYER_SAFE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_STAYS_IN_CURRENT_LEVEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_STAYS_IN_CURRENT_LEVEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_DRUNK_INPUT_DELAY , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_MONEY , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_INCREASE_CHAR_MONEY , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_OFFSET_FROM_OBJECT_IN_WORLD_COORDS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_REGISTER_LIFE_SAVED , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REGISTER_CRIMINAL_CAUGHT , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_REGISTER_AMBULANCE_LEVEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_REGISTER_FIRE_EXTINGUISHED , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_TURN_PHONE_ON , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REGISTER_LONGEST_DODO_FLIGHT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_OFFSET_FROM_CAR_IN_WORLD_COORDS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TOTAL_NUMBER_OF_KILL_FRENZIES , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_BLOW_UP_RC_BUGGY , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_REMOVE_CAR_FROM_CHASE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_FRENCH_GAME , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_GERMAN_GAME , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_CLEAR_MISSION_AUDIO , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_FADE_IN_AFTER_NEXT_ARREST , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_FADE_IN_AFTER_NEXT_DEATH , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_GANG_PED_MODEL_PREFERENCE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_USE_PEDNODE_SEEK , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SWITCH_VEHICLE_WEAPONS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_GET_OUT_OF_JAIL_FREE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_FREE_HEALTH_CARE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_DOOR_CLOSED , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_LOAD_AND_LAUNCH_MISSION , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_LOAD_AND_LAUNCH_MISSION_INTERNAL , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_OBJECT_DRAW_LAST , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_AMMO_IN_PLAYER_WEAPON , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_AMMO_IN_CHAR_WEAPON , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_REGISTER_KILL_FRENZY_PASSED , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_CHAR_SAY , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_NEAR_CLIP , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_RADIO_CHANNEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_OVERRIDE_HOSPITAL_LEVEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_OVERRIDE_POLICE_STATION_LEVEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_FORCE_RAIN , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_DOES_GARAGE_CONTAIN_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_CAR_TRACTION , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_ARE_MEASUREMENTS_IN_METRES , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_CONVERT_METRES_TO_FEET , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_MARK_ROADS_BETWEEN_LEVELS , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_MARK_PED_ROADS_BETWEEN_LEVELS , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_AVOID_LEVEL_TRANSITIONS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_AVOID_LEVEL_TRANSITIONS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_THREAT_FOR_PED_TYPE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_CLEAR_AREA_OF_CHARS , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TOTAL_NUMBER_OF_MISSIONS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CONVERT_METRES_TO_FEET_INT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REGISTER_FASTEST_TIME , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REGISTER_HIGHEST_SCORE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_WARP_CHAR_INTO_CAR_AS_PASSENGER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_PASSENGER_SEAT_FREE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GET_CHAR_IN_CAR_PASSENGER_SEAT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_IS_CHRIS_CRIMINAL , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_START_CREDITS , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_STOP_CREDITS , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_ARE_CREDITS_FINISHED , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_CREATE_SINGLE_PARTICLE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_IGNORE_LEVEL_TRANSITIONS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_CHASE_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_START_BOAT_FOAM_ANIMATION , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_UPDATE_BOAT_FOAM_ANIMATION , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_MUSIC_DOES_FADE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_INTRO_IS_PLAYING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PLAYER_HOOKER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_PLAY_END_OF_GAME_TUNE , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_STOP_END_OF_GAME_TUNE , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GET_CAR_MODEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PLAYER_SITTING_IN_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_SITTING_IN_ANY_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_SCRIPT_FIRE_AUDIO , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_ARE_ANY_CAR_CHEATS_ACTIVATED , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_CHAR_SUFFERS_CRITICAL_HITS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PLAYER_LIFTING_A_PHONE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_SITTING_IN_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_SITTING_IN_ANY_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_ON_FOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_ON_FOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_LOAD_COLLISION_WITH_SCREEN , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOAD_SPLASH_SCREEN , INPUT_ARGUMENTS ( ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_IGNORE_LEVEL_TRANSITIONS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_MAKE_CRAIGS_CAR_A_BIT_STRONGER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_JAMES_CAR_ON_PATH_TO_PLAYER , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_LOAD_END_OF_GAME_TUNE , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ENABLE_PLAYER_CONTROL_CAMERA , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_OBJECT_ROTATION , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_DEBUG_CAMERA_COORDINATES , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_DEBUG_CAMERA_FRONT_VECTOR , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PLAYER_TARGETTING_ANY_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_TARGETTING_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_TARGETTING_OBJECT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME , INPUT_ARGUMENTS ( ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DISPLAY_TEXT_WITH_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_STRING , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DISPLAY_TEXT_WITH_2_NUMBERS , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-06-21 10:46:23 +00:00
REGISTER_COMMAND ( COMMAND_FAIL_CURRENT_MISSION , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GET_CLOSEST_OBJECT_OF_TYPE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PLACE_OBJECT_RELATIVE_TO_OBJECT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_ALL_OCCUPANTS_OF_CAR_LEAVE_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_INTERPOLATION_PARAMETERS , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_CLOSEST_CAR_NODE_WITH_HEADING_TOWARDS_POINT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_CLOSEST_CAR_NODE_WITH_HEADING_AWAY_POINT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_DEBUG_CAMERA_POINT_AT , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ATTACH_CHAR_TO_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DETACH_CHAR_FROM_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_CHANGE_LANE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLEAR_CHAR_LAST_WEAPON_DAMAGE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLEAR_CAR_LAST_WEAPON_DAMAGE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_RANDOM_COP_IN_AREA , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_RANDOM_COP_IN_ZONE , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_FLEE_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_DRIVER_OF_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_NUMBER_OF_FOLLOWERS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GIVE_REMOTE_CONTROLLED_MODEL_TO_PLAYER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_CURRENT_PLAYER_WEAPON , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_CURRENT_CHAR_WEAPON , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_ANY_MEANS_OBJECT_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_ON_FOOT_OBJECT_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_IN_CAR_OBJECT_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_ANY_MEANS_OBJECT_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_ON_FOOT_OBJECT_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_CHAR_IN_CAR_OBJECT_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_CAR_TEMP_ACTION , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_HANDBRAKE_TURN_RIGHT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_HANDBRAKE_STOP , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CHAR_ON_ANY_BIKE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_SNIPER_BULLET_2D , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_SNIPER_BULLET_3D , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GET_NUMBER_OF_SEATS_IN_MODEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PLAYER_ON_ANY_BIKE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_LYING_DOWN , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CAN_CHAR_SEE_DEAD_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_ENTER_CAR_RANGE_MULTIPLIER , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_THREAT_REACTION_RANGE_MULTIPLIER , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_CEASE_ATTACK_TIMER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_REMOTE_CONTROLLED_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PC_VERSION , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_REPLAY , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_REPLAY_PLAYING , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_MODEL_AVAILABLE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SHUT_CHAR_UP , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_ENABLE_RC_DETONATE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_RANDOM_ROUTE_SEED , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_ANY_PICKUP_AT_COORDS , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GET_FIRST_PICKUP_COORDS , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_NEXT_PICKUP_COORDS , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REMOVE_ALL_CHAR_WEAPONS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_PLAYER_GOT_WEAPON , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_HAS_CHAR_GOT_WEAPON , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_FACING_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_TANK_DETONATE_CARS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_POSITION_OF_ANALOGUE_STICKS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_ON_FIRE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CAR_TYRE_BURST , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_CAR_DRIVE_STRAIGHT_AHEAD , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_WAIT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PLAYER_STANDING_ON_A_VEHICLE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_FOOT_DOWN , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_FOOT_DOWN , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_INITIALISE_OBJECT_PATH , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_START_OBJECT_ON_PATH , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_OBJECT_PATH_SPEED , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_OBJECT_PATH_POSITION , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_OBJECT_DISTANCE_ALONG_PATH , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLEAR_OBJECT_PATH , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_HELI_GOTO_COORDS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_INT_VAR_EQUAL_TO_CONSTANT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_LVAR_EQUAL_TO_CONSTANT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GET_DEAD_CHAR_PICKUP_COORDS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_PROTECTION_PICKUP , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CHAR_IN_ANY_BOAT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_ANY_BOAT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_IN_ANY_HELI , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_ANY_HELI , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_IN_ANY_PLANE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_ANY_PLANE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_IN_WATER , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_VAR_INT_TO_CONSTANT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " = " ) ,
REGISTER_COMMAND ( COMMAND_SET_LVAR_INT_TO_CONSTANT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , 0 , " = " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_VAR_GREATER_THAN_CONSTANT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " > " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_LVAR_GREATER_THAN_CONSTANT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " > " ) ,
REGISTER_COMMAND ( COMMAND_IS_CONSTANT_GREATER_THAN_INT_VAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " > " ) ,
REGISTER_COMMAND ( COMMAND_IS_CONSTANT_GREATER_THAN_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " > " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_VAR_GREATER_OR_EQUAL_TO_CONSTANT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " >= " ) ,
REGISTER_COMMAND ( COMMAND_IS_INT_LVAR_GREATER_OR_EQUAL_TO_CONSTANT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " >= " ) ,
REGISTER_COMMAND ( COMMAND_IS_CONSTANT_GREATER_OR_EQUAL_TO_INT_VAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " >= " ) ,
REGISTER_COMMAND ( COMMAND_IS_CONSTANT_GREATER_OR_EQUAL_TO_INT_LVAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , 0 , " >= " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GET_CHAR_WEAPON_IN_SLOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_CLOSEST_STRAIGHT_ROAD , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_FORWARD_SPEED , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_AREA_VISIBLE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CUTSCENE_ANIM_TO_LOOP , INPUT_ARGUMENTS ( ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_MARK_CAR_AS_CONVOY_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_RESET_HAVOC_CAUSED_BY_PLAYER , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_HAVOC_CAUSED_BY_PLAYER , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_SCRIPT_ROADBLOCK , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLEAR_ALL_SCRIPT_ROADBLOCKS , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_WALK_TO_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PICKUP_IN_ZONE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GET_OFFSET_FROM_CHAR_IN_WORLD_COORDS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_CHAR_BEEN_PHOTOGRAPHED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_AIM_GUN_AT_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SWITCH_SECURITY_CAMERA , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CHAR_IN_FLYING_VEHICLE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_FLYING_VEHICLE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_HAS_SONY_CD_BEEN_READ , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GET_NUMBER_OF_SONY_CDS_READ , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_SHORT_RANGE_BLIP_FOR_COORD_OLD , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_SHORT_RANGE_BLIP_FOR_COORD , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_SHORT_RANGE_SPRITE_BLIP_FOR_COORD , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_MONEY_SPENT_ON_CLOTHES , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_HELI_ORIENTATION , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLEAR_HELI_ORIENTATION , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PLANE_GOTO_COORDS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_NTH_CLOSEST_CAR_NODE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_NTH_CLOSEST_CHAR_NODE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DRAW_WEAPONSHOP_CORONA , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_SET_ENABLE_RC_DETONATE_ON_CONTACT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_FREEZE_CHAR_POSITION , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_DROWNS_IN_WATER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_OBJECT_RECORDS_COLLISIONS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_OBJECT_COLLIDED_WITH_ANYTHING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_REMOVE_RC_BUGGY , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_PHOTOGRAPH_BEEN_TAKEN , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GET_CHAR_ARMOUR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_ARMOUR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_HELI_STABILISER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_STRAIGHT_LINE_DISTANCE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_POP_CAR_BOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SHUT_PLAYER_UP , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PLAYER_MOOD , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REQUEST_COLLISION , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_LOCATE_OBJECT_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOCATE_OBJECT_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_OBJECT_IN_WATER , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_STEAL_ANY_CAR_EVEN_MISSION_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_OBJECT_IN_AREA_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_OBJECT_IN_AREA_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_CHAR_CROUCH , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_ZONE_CIVILIAN_CAR_INFO , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REQUEST_ANIMATION , INPUT_ARGUMENTS ( ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_ANIMATION_LOADED , INPUT_ARGUMENTS ( ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_REMOVE_ANIMATION , INPUT_ARGUMENTS ( ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CHAR_WAITING_FOR_WORLD_COLLISION , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CAR_WAITING_FOR_WORLD_COLLISION , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_OBJECT_WAITING_FOR_WORLD_COLLISION , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_CHAR_SHUFFLE_INTO_DRIVERS_SEAT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ATTACH_CHAR_TO_OBJECT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_AS_PLAYER_FRIEND , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DISPLAY_NTH_ONSCREEN_COUNTER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DISPLAY_NTH_ONSCREEN_COUNTER_WITH_STRING , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_SET_PIECE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_EXTRA_COLOURS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLEAR_EXTRA_COLOURS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLOSE_CAR_BOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_WHEELIE_STATS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DISARM_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_BURST_CAR_TYRE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CHAR_OBJ_NO_OBJ , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_PLAYER_WEARING , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_PLAYER_CAN_DO_DRIVE_BY , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_SPRINT_TO_COORD , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_SWAT_ROPE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_FIRST_PERSON_CONTROL_CAMERA , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_NEAREST_TYRE_TO_POINT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAR_MODEL_COMPONENTS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SWITCH_LIFT_CAMERA , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLOSE_ALL_CAR_DOORS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_DISTANCE_BETWEEN_COORDS_2D , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_DISTANCE_BETWEEN_COORDS_3D , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_POP_CAR_BOOT_USING_PHYSICS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_FIRST_PERSON_WEAPON_CAMERA , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CHAR_LEAVING_VEHICLE_TO_DIE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SORT_OUT_OBJECT_COLLISION_WITH_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_MAX_WANTED_LEVEL , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CHAR_WANDER_PATH_CLEAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_PRINT_HELP_WITH_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_HELP_FOREVER , INPUT_ARGUMENTS ( ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PRINT_HELP_FOREVER_WITH_NUMBER , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_CAN_BE_DAMAGED_BY_MEMBERS_OF_GANG , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOAD_AND_LAUNCH_MISSION_EXCLUSIVE , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_MISSION_AUDIO_PLAYING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_CREATE_LOCKED_PROPERTY_PICKUP , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_FORSALE_PROPERTY_PICKUP , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_FREEZE_CAR_POSITION , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_CHAR_BEEN_DAMAGED_BY_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_HAS_CHAR_BEEN_DAMAGED_BY_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_HAS_CAR_BEEN_DAMAGED_BY_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_HAS_CAR_BEEN_DAMAGED_BY_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GET_RADIO_CHANNEL , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DISPLAY_TEXT_WITH_3_NUMBERS , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_DROWNING_IN_WATER , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_DROWNING_IN_WATER , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_DISABLE_CUTSCENE_SHADOWS , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_GLASS_BEEN_SHATTERED_NEARBY , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_ATTACH_CUTSCENE_OBJECT_TO_BONE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ATTACH_CUTSCENE_OBJECT_TO_COMPONENT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_STAY_IN_CAR_WHEN_JACKED , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_MISSION_AUDIO_LOADING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_ADD_MONEY_SPENT_ON_WEAPONS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_MONEY_SPENT_ON_PROPERTY , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_MONEY_SPENT_ON_AUTO_PAINTING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_ANSWERING_MOBILE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PLAYER_DRUNKENNESS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_PLAYER_DRUNKENNESS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PLAYER_DRUG_LEVEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_PLAYER_DRUG_LEVEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_LOAN_SHARK_VISITS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_STORES_KNOCKED_OFF , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_MOVIE_STUNTS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_NUMBER_OF_ASSASSINATIONS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_PIZZAS_DELIVERED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_GARBAGE_PICKUPS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_ICE_CREAMS_SOLD , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TOP_SHOOTING_RANGE_SCORE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_SHOOTING_RANGE_RANK , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_MONEY_SPENT_ON_GAMBLING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_MONEY_WON_ON_GAMBLING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_LARGEST_GAMBLING_WIN , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_IN_PLAYERS_GROUP_CAN_FIGHT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLEAR_CHAR_WAIT_STATE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_RANDOM_CAR_OF_TYPE_IN_AREA_NO_SAVE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CAN_BURST_CAR_TYRES , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PLAYER_AUTO_AIM , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_FIRE_HUNTER_GUN , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PROPERTY_AS_OWNED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_BLOOD_RING_KILLS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_LONGEST_TIME_IN_BLOOD_RING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REMOVE_EVERYTHING_FOR_HUGE_CUTSCENE , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PLAYER_TOUCHING_VEHICLE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_TOUCHING_VEHICLE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CHECK_FOR_PED_MODEL_AROUND_PLAYER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_CLEAR_CHAR_FOLLOW_PATH , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_CAN_BE_SHOT_IN_VEHICLE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ATTACH_CUTSCENE_OBJECT_TO_VEHICLE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOAD_MISSION_TEXT , INPUT_ARGUMENTS ( ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_TONIGHTS_EVENT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLEAR_CHAR_LAST_DAMAGE_ENTITY , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLEAR_CAR_LAST_DAMAGE_ENTITY , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_FREEZE_OBJECT_POSITION , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PLAYER_HAS_MET_DEBBIE_HARRY , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_RIOT_INTENSITY , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CAR_IN_ANGLED_AREA_2D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CAR_IN_ANGLED_AREA_3D , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_REMOVE_WEAPON_FROM_CHAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_UP_TAXI_SHORTCUT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLEAR_TAXI_SHORTCUT , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_GOTO_CAR_ON_FOOT , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_CLOSEST_WATER_NODE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_PORN_LEAFLET_TO_RUBBISH , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_CLOTHES_PICKUP , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CHANGE_BLIP_THRESHOLD , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_MAKE_PLAYER_FIRE_PROOF , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_INCREASE_PLAYER_MAX_HEALTH , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_INCREASE_PLAYER_MAX_ARMOUR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_RANDOM_CHAR_AS_DRIVER , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CREATE_RANDOM_CHAR_AS_PASSENGER , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_IGNORE_THREATS_BEHIND_OBJECTS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ENSURE_PLAYER_HAS_DRIVE_BY_WEAPON , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_MAKE_HELI_COME_CRASHING_DOWN , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_EXPLOSION_NO_SOUND , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_OBJECT_AREA_VISIBLE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_WAS_VEHICLE_EVER_POLICE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_CHAR_NEVER_TARGETTED , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_LOAD_UNCOMPRESSED_ANIM , INPUT_ARGUMENTS ( ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_WAS_CUTSCENE_SKIPPED , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_CHAR_CROUCH_WHEN_THREATENED , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CHAR_IN_ANY_POLICE_VEHICLE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DOES_CHAR_EXIST , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DOES_VEHICLE_EXIST , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_ADD_SHORT_RANGE_BLIP_FOR_CONTACT_POINT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_SHORT_RANGE_SPRITE_BLIP_FOR_CONTACT_POINT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_CHAR_STUCK , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_ALL_TAXIS_HAVE_NITRO , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_STOP_SHOOT_DONT_SEEK_ENTITY , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_FREEZE_CAR_POSITION_AND_DONT_LOAD_COLLISION , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_FREEZE_CHAR_POSITION_AND_DONT_LOAD_COLLISION , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_FREEZE_OBJECT_POSITION_AND_DONT_LOAD_COLLISION , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_FADE_AND_JUMPCUT_AFTER_RC_EXPLOSION , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REGISTER_VIGILANTE_LEVEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CLEAR_ALL_CHAR_ANIMS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_MAXIMUM_NUMBER_OF_CARS_IN_GARAGE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_WANTED_STARS_ARE_FLASHING , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_ALLOW_HURRICANES , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_PLAY_ANNOUNCEMENT , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_PLAYER_IS_IN_STADIUM , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_BUS_FARES_COLLECTED_BY_PLAYER , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_OBJ_BUY_ICE_CREAM , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DISPLAY_RADAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REGISTER_BEST_POSITION , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_INFO_ZONE , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_STRING , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_CLEAR_CHAR_ICE_CREAM_PURCHASE , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_IN_CAR_FIRE_BUTTON_PRESSED , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_HAS_CHAR_ATTEMPTED_ATTRACTOR , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_SET_LOAD_COLLISION_FOR_CAR_FLAG , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_LOAD_COLLISION_FOR_CHAR_FLAG , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_LOAD_COLLISION_FOR_OBJECT_FLAG , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_BIG_GUN_FLASH , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_HAS_CHAR_BOUGHT_ICE_CREAM , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_GET_PROGRESS_PERCENTAGE , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_SHORTCUT_PICKUP_POINT , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_SHORTCUT_DROPOFF_POINT_FOR_MISSION , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_RANDOM_ICE_CREAM_CUSTOMER_IN_AREA , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_RANDOM_ICE_CREAM_CUSTOMER_IN_ZONE , INPUT_ARGUMENTS ( ARGTYPE_STRING , ARGTYPE_INT , ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_UNLOCK_ALL_CAR_DOORS_IN_AREA , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_GANG_ATTACK_PLAYER_WITH_COPS , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_CHAR_FRIGHTENED_IN_JACKED_CAR , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_VEHICLE_TO_FADE_IN , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REGISTER_ODDJOB_MISSION_PASSED , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_PLAYER_IN_SHORTCUT_TAXI , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_CHAR_DUCKING , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_CREATE_DUST_EFFECT_FOR_CUTSCENE_HELI , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_REGISTER_FIRE_LEVEL , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-07-01 13:06:16 +00:00
REGISTER_COMMAND ( COMMAND_IS_AUSTRALIAN_GAME , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
2020-07-01 12:43:19 +00:00
REGISTER_COMMAND ( COMMAND_DISARM_CAR_BOMB , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
2020-12-04 23:49:32 +00:00
# if (defined GTAVC_JP_PATCH || defined SUPPORT_JAPANESE_SCRIPT)
REGISTER_COMMAND ( COMMAND_IS_JAPANESE_GAME , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
# elif (!defined GTA_PS2)
REGISTER_COMMAND ( COMMAND_SET_ONSCREEN_COUNTER_FLASH_WHEN_FIRST_DISPLAYED , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
# endif
# if (defined GTA_PC && !defined GTAVC_JP_PATCH || defined GTA_XBOX || defined SUPPORT_XBOX_SCRIPT || defined GTA_MOBILE || defined SUPPORT_MOBILE_SCRIPT)
REGISTER_COMMAND ( COMMAND_SHUFFLE_CARD_DECKS , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_FETCH_NEXT_CARD , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_OBJECT_VELOCITY , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_DEBUG_CAMERA_ON , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_TO_OBJECT_ROTATION_VELOCITY , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_OBJECT_ROTATION_VELOCITY , INPUT_ARGUMENTS ( ARGTYPE_INT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_OBJECT_STATIC , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_ANGLE_BETWEEN_2D_VECTORS , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DO_2D_RECTANGLES_COLLIDE , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , true , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_OBJECT_ROTATION_VELOCITY , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_ADD_VELOCITY_RELATIVE_TO_OBJECT_VELOCITY , INPUT_ARGUMENTS ( ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ARGTYPE_FLOAT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_GET_OBJECT_SPEED , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ARGTYPE_FLOAT , ) , false , - 1 , " " ) ,
# endif
# if (defined GTA_XBOX || defined SUPPORT_XBOX_SCRIPT)
REGISTER_COMMAND ( COMMAND_MARK_CUTSCENE_START , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_MARK_CUTSCENE_END , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CUTSCENE_SCROLL , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
# elif (defined GTA_MOBILE || defined SUPPORT_MOBILE_SCRIPT)
REGISTER_COMMAND ( COMMAND_IS_MISSION_SKIP , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_SET_IN_AMMUNATION , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DO_SAVE_GAME , INPUT_ARGUMENTS ( ARGTYPE_INT , ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_IS_RETRY , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ARGTYPE_INT , ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_DUMMY , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_MARK_CUTSCENE_START , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_MARK_CUTSCENE_END , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
REGISTER_COMMAND ( COMMAND_CUTSCENE_SCROLL , INPUT_ARGUMENTS ( ) , OUTPUT_ARGUMENTS ( ) , false , - 1 , " " ) ,
# endif
2020-06-21 10:46:23 +00:00
} ;
# undef REGISTER_COMMAND
# undef INPUT_ARGUMENTS
# undef OUTPUT_ARGUMENTS
static_assert ( ARRAY_SIZE ( commands ) = = LAST_SCRIPT_COMMAND , " commands array not filled " ) ;
# if SCRIPT_LOG_FILE_LEVEL == 1 || SCRIPT_LOG_FILE_LEVEL == 2
2020-06-28 08:59:20 +00:00
static FILE * dbg_log ;
2020-06-21 10:46:23 +00:00
# endif
static void PrintToLog ( const char * format , . . . )
{
va_list va ;
va_start ( va , format ) ;
char tmp [ 1024 ] ;
# ifdef _WIN32
vsprintf_s ( tmp , 1024 , format , va ) ;
# else
2020-06-21 10:51:20 +00:00
vsprintf ( tmp , format , va ) ;
2020-06-21 10:46:23 +00:00
# endif
va_end ( va ) ;
# if SCRIPT_LOG_FILE_LEVEL == 1 || SCRIPT_LOG_FILE_LEVEL == 2
2020-07-03 08:08:19 +00:00
if ( dbg_log )
fwrite ( tmp , 1 , strlen ( tmp ) , dbg_log ) ;
2020-06-21 10:46:23 +00:00
# endif
}
2020-06-28 08:59:20 +00:00
2020-06-21 10:46:23 +00:00
# endif
2020-11-24 12:06:48 +00:00
void FlushLog ( )
2020-06-28 08:59:20 +00:00
{
# ifdef USE_ADVANCED_SCRIPT_DEBUG_OUTPUT
# if SCRIPT_LOG_FILE_LEVEL == 1 || SCRIPT_LOG_FILE_LEVEL == 2
if ( dbg_log )
fflush ( dbg_log ) ;
# endif
# endif
}
2020-05-02 22:42:46 +00:00
const uint32 CRunningScript : : nSaveStructSize =
# ifdef COMPATIBLE_SAVES
2020-05-11 02:55:57 +00:00
136 ;
2020-05-02 22:42:46 +00:00
# else
sizeof ( CRunningScript ) ;
# endif
2019-07-03 22:16:24 +00:00
CMissionCleanup : : CMissionCleanup ( )
{
Init ( ) ;
}
void CMissionCleanup : : Init ( )
{
2019-07-20 13:30:11 +00:00
m_nCount = 0 ;
2019-07-03 22:16:24 +00:00
for ( int i = 0 ; i < MAX_CLEANUP ; i + + ) {
m_sEntities [ i ] . type = CLEANUP_UNUSED ;
m_sEntities [ i ] . id = 0 ;
}
}
CMissionCleanupEntity * CMissionCleanup : : FindFree ( )
{
for ( int i = 0 ; i < MAX_CLEANUP ; i + + ) {
if ( m_sEntities [ i ] . type = = CLEANUP_UNUSED )
return & m_sEntities [ i ] ;
}
2020-06-28 08:59:20 +00:00
script_assert ( 0 ) ;
2019-07-03 22:16:24 +00:00
return nil ;
}
void CMissionCleanup : : AddEntityToList ( int32 id , uint8 type )
{
CMissionCleanupEntity * pNew = FindFree ( ) ;
if ( ! pNew )
return ;
pNew - > id = id ;
pNew - > type = type ;
2019-07-20 13:30:11 +00:00
m_nCount + + ;
2019-07-03 22:16:24 +00:00
}
2020-08-29 16:22:25 +00:00
static void PossiblyWakeThisEntity ( CPhysical * pEntity , bool ifColLoaded = false )
2020-05-05 21:21:26 +00:00
{
if ( ! pEntity - > bIsStaticWaitingForCollision )
return ;
2020-08-29 16:22:25 +00:00
if ( ! ifColLoaded | | CColStore : : HasCollisionLoaded ( pEntity - > GetPosition ( ) ) ) {
2020-05-05 21:21:26 +00:00
pEntity - > bIsStaticWaitingForCollision = false ;
2020-10-18 14:15:49 +00:00
if ( ! pEntity - > GetIsStatic ( ) )
2020-05-05 21:21:26 +00:00
pEntity - > AddToMovingList ( ) ;
}
}
2019-07-03 22:16:24 +00:00
void CMissionCleanup : : RemoveEntityFromList ( int32 id , uint8 type )
{
for ( int i = 0 ; i < MAX_CLEANUP ; i + + ) {
2019-07-09 20:38:05 +00:00
if ( m_sEntities [ i ] . type = = type & & m_sEntities [ i ] . id = = id ) {
2020-05-05 18:45:43 +00:00
switch ( m_sEntities [ i ] . type ) {
case CLEANUP_CAR :
{
CVehicle * v = CPools : : GetVehiclePool ( ) - > GetAt ( m_sEntities [ i ] . id ) ;
if ( v )
PossiblyWakeThisEntity ( v ) ;
break ;
}
case CLEANUP_CHAR :
{
CPed * p = CPools : : GetPedPool ( ) - > GetAt ( m_sEntities [ i ] . id ) ;
if ( p )
PossiblyWakeThisEntity ( p ) ;
break ;
}
case CLEANUP_OBJECT :
{
CObject * o = CPools : : GetObjectPool ( ) - > GetAt ( m_sEntities [ i ] . id ) ;
if ( o )
PossiblyWakeThisEntity ( o ) ;
break ;
}
default :
break ;
}
2019-07-03 22:16:24 +00:00
m_sEntities [ i ] . id = 0 ;
m_sEntities [ i ] . type = CLEANUP_UNUSED ;
2019-07-20 13:30:11 +00:00
m_nCount - - ;
2019-07-03 22:16:24 +00:00
}
}
}
2020-08-29 16:22:25 +00:00
void CMissionCleanup : : CheckIfCollisionHasLoadedForMissionObjects ( )
2020-05-05 18:45:43 +00:00
{
for ( int i = 0 ; i < MAX_CLEANUP ; i + + ) {
switch ( m_sEntities [ i ] . type ) {
case CLEANUP_CAR :
{
CVehicle * v = CPools : : GetVehiclePool ( ) - > GetAt ( m_sEntities [ i ] . id ) ;
if ( v )
2020-08-29 16:22:25 +00:00
PossiblyWakeThisEntity ( v , true ) ;
2020-05-05 18:45:43 +00:00
break ;
}
case CLEANUP_CHAR :
{
CPed * p = CPools : : GetPedPool ( ) - > GetAt ( m_sEntities [ i ] . id ) ;
if ( p )
2020-08-29 16:22:25 +00:00
PossiblyWakeThisEntity ( p , true ) ;
2020-05-05 18:45:43 +00:00
break ;
}
case CLEANUP_OBJECT :
{
CObject * o = CPools : : GetObjectPool ( ) - > GetAt ( m_sEntities [ i ] . id ) ;
if ( o )
2020-08-29 16:22:25 +00:00
PossiblyWakeThisEntity ( o , true ) ;
2020-05-05 18:45:43 +00:00
break ;
}
default :
break ;
}
}
}
2020-05-05 22:11:06 +00:00
CPhysical * CMissionCleanup : : DoesThisEntityWaitForCollision ( int i )
{
if ( m_sEntities [ i ] . type = = CLEANUP_CAR ) {
CVehicle * pVehicle = CPools : : GetVehiclePool ( ) - > GetAt ( m_sEntities [ i ] . id ) ;
if ( pVehicle & & pVehicle - > GetStatus ( ) ! = STATUS_WRECKED )
return pVehicle ;
}
else if ( m_sEntities [ i ] . type = = CLEANUP_CHAR ) {
CPed * pPed = CPools : : GetPedPool ( ) - > GetAt ( m_sEntities [ i ] . id ) ;
if ( pPed & & ! pPed - > DyingOrDead ( ) )
return pPed ;
}
return nil ;
}
2019-07-03 22:16:24 +00:00
void CMissionCleanup : : Process ( )
{
CPopulation : : m_AllRandomPedsThisType = - 1 ;
CPopulation : : PedDensityMultiplier = 1.0f ;
2020-02-25 19:01:56 +00:00
CCarCtrl : : CarDensityMultiplier = 1.0f ;
2020-05-18 22:49:09 +00:00
CPed : : nThreatReactionRangeMultiplier = 1 ;
CPed : : nEnterCarRangeMultiplier = 1 ;
2019-07-03 22:16:24 +00:00
FindPlayerPed ( ) - > m_pWanted - > m_fCrimeSensitivity = 1.0f ;
2020-05-30 17:08:31 +00:00
CRoadBlocks : : ClearScriptRoadBlocks ( ) ;
2020-05-18 22:49:09 +00:00
CRouteNode : : Initialise ( ) ;
if ( ! CWorld : : Players [ CWorld : : PlayerInFocus ] . m_pRemoteVehicle )
TheCamera . Restore ( ) ;
2019-10-05 23:41:35 +00:00
TheCamera . SetWideScreenOff ( ) ;
2020-10-09 17:29:38 +00:00
CSpecialFX : : bLiftCam = false ;
CSpecialFX : : bVideoCam = false ;
2020-08-13 20:39:55 +00:00
CTimeCycle : : StopExtraColour ( 0 ) ;
2020-06-08 07:34:31 +00:00
for ( int i = 0 ; i < MISSION_AUDIO_SLOTS ; i + + )
DMAudio . ClearMissionAudio ( i ) ;
2019-07-03 22:16:24 +00:00
CWeather : : ReleaseWeather ( ) ;
for ( int i = 0 ; i < NUM_OF_SPECIAL_CHARS ; i + + )
CStreaming : : SetMissionDoesntRequireSpecialChar ( i ) ;
for ( int i = 0 ; i < NUM_OF_CUTSCENE_OBJECTS ; i + + )
CStreaming : : SetMissionDoesntRequireModel ( MI_CUTOBJ01 + i ) ;
CStreaming : : ms_disableStreaming = false ;
CHud : : m_ItemToFlash = - 1 ;
2020-10-23 13:56:34 +00:00
CHud : : SetHelpMessage ( nil , false ) ;
2019-07-03 22:16:24 +00:00
CUserDisplay : : OnscnTimer . m_bDisabled = false ;
2020-05-18 22:49:09 +00:00
CTheScripts : : RemoveScriptTextureDictionary ( ) ;
2019-07-12 16:01:22 +00:00
CWorld : : Players [ 0 ] . m_pPed - > m_pWanted - > m_bIgnoredByCops = false ;
CWorld : : Players [ 0 ] . m_pPed - > m_pWanted - > m_bIgnoredByEveryone = false ;
2019-07-03 22:16:24 +00:00
CWorld : : Players [ 0 ] . MakePlayerSafe ( false ) ;
2020-08-13 20:39:55 +00:00
CWorld : : Players [ 0 ] . m_pPed - > m_nFadeDrunkenness = 1 ;
CWorld : : Players [ 0 ] . m_pPed - > m_nDrunkCountdown = 0 ;
2020-08-16 14:10:59 +00:00
CPad : : GetPad ( 0 ) - > SetDrunkInputDelay ( 0 ) ;
2020-08-13 20:39:55 +00:00
CWorld : : Players [ 0 ] . m_bDriveByAllowed = true ;
2020-10-11 09:56:33 +00:00
DMAudio . ShutUpPlayerTalking ( 0 ) ;
2020-05-17 18:43:11 +00:00
CVehicle : : bDisableRemoteDetonation = false ;
2020-05-21 23:42:04 +00:00
CVehicle : : bDisableRemoteDetonationOnContact = false ;
2020-05-31 17:59:01 +00:00
CGameLogic : : ClearShortCut ( ) ;
2020-05-18 22:49:09 +00:00
CTheScripts : : RiotIntensity = 0 ;
2019-07-03 22:16:24 +00:00
CTheScripts : : StoreVehicleIndex = - 1 ;
CTheScripts : : StoreVehicleWasRandom = true ;
CTheScripts : : UpsideDownCars . Init ( ) ;
CTheScripts : : StuckCars . Init ( ) ;
for ( int i = 0 ; i < MAX_CLEANUP ; i + + ) {
if ( m_sEntities [ i ] . type = = CLEANUP_UNUSED )
continue ;
switch ( m_sEntities [ i ] . type ) {
case CLEANUP_CAR :
{
CVehicle * v = CPools : : GetVehiclePool ( ) - > GetAt ( m_sEntities [ i ] . id ) ;
if ( v )
CTheScripts : : CleanUpThisVehicle ( v ) ;
break ;
}
case CLEANUP_CHAR :
{
CPed * p = CPools : : GetPedPool ( ) - > GetAt ( m_sEntities [ i ] . id ) ;
if ( p )
CTheScripts : : CleanUpThisPed ( p ) ;
break ;
}
case CLEANUP_OBJECT :
{
CObject * o = CPools : : GetObjectPool ( ) - > GetAt ( m_sEntities [ i ] . id ) ;
if ( o )
CTheScripts : : CleanUpThisObject ( o ) ;
break ;
}
default :
break ;
}
2019-07-25 20:34:29 +00:00
m_sEntities [ i ] . id = 0 ;
m_sEntities [ i ] . type = CLEANUP_UNUSED ;
m_nCount - - ;
2019-07-03 22:16:24 +00:00
}
}
2019-07-06 15:06:08 +00:00
/* NB: CUpsideDownCarCheck is not used by actual script at all
* It has a weird usage : AreAnyCarsUpsideDown would fail any mission
* just like death or arrest . */
2019-07-03 22:16:24 +00:00
void CUpsideDownCarCheck : : Init ( )
{
for ( int i = 0 ; i < MAX_UPSIDEDOWN_CAR_CHECKS ; i + + ) {
m_sCars [ i ] . m_nVehicleIndex = - 1 ;
2019-11-09 15:17:54 +00:00
m_sCars [ i ] . m_nUpsideDownTimer = 0 ;
2019-07-03 22:16:24 +00:00
}
}
2019-07-06 15:06:08 +00:00
bool CUpsideDownCarCheck : : IsCarUpsideDown ( int32 id )
{
CVehicle * v = CPools : : GetVehiclePool ( ) - > GetAt ( id ) ;
2019-07-07 09:13:12 +00:00
return v - > GetUp ( ) . z < = - 0.97f & &
2019-07-06 15:06:08 +00:00
v - > GetMoveSpeed ( ) . Magnitude ( ) < 0.01f & &
v - > GetTurnSpeed ( ) . Magnitude ( ) < 0.02f ;
}
void CUpsideDownCarCheck : : UpdateTimers ( )
{
2019-07-07 08:16:16 +00:00
uint32 timeStep = CTimer : : GetTimeStepInMilliseconds ( ) ;
2019-07-06 15:06:08 +00:00
for ( int i = 0 ; i < MAX_UPSIDEDOWN_CAR_CHECKS ; i + + ) {
CVehicle * v = CPools : : GetVehiclePool ( ) - > GetAt ( m_sCars [ i ] . m_nVehicleIndex ) ;
if ( v ) {
if ( IsCarUpsideDown ( m_sCars [ i ] . m_nVehicleIndex ) )
m_sCars [ i ] . m_nUpsideDownTimer + = timeStep ;
else
m_sCars [ i ] . m_nUpsideDownTimer = 0 ;
} else {
m_sCars [ i ] . m_nVehicleIndex = - 1 ;
m_sCars [ i ] . m_nUpsideDownTimer = 0 ;
}
}
}
bool CUpsideDownCarCheck : : AreAnyCarsUpsideDown ( )
{
for ( int i = 0 ; i < MAX_UPSIDEDOWN_CAR_CHECKS ; i + + ) {
if ( m_sCars [ i ] . m_nVehicleIndex > = 0 & & m_sCars [ i ] . m_nUpsideDownTimer > 1000 )
return true ;
}
return false ;
}
void CUpsideDownCarCheck : : AddCarToCheck ( int32 id )
{
uint16 index = 0 ;
while ( index < MAX_UPSIDEDOWN_CAR_CHECKS & & m_sCars [ index ] . m_nVehicleIndex > = 0 )
index + + ;
if ( index > = MAX_UPSIDEDOWN_CAR_CHECKS )
return ;
m_sCars [ index ] . m_nVehicleIndex = id ;
m_sCars [ index ] . m_nUpsideDownTimer = 0 ;
}
void CUpsideDownCarCheck : : RemoveCarFromCheck ( int32 id )
{
for ( int i = 0 ; i < MAX_UPSIDEDOWN_CAR_CHECKS ; i + + ) {
if ( m_sCars [ i ] . m_nVehicleIndex = = id ) {
m_sCars [ i ] . m_nVehicleIndex = - 1 ;
m_sCars [ i ] . m_nUpsideDownTimer = 0 ;
}
}
}
bool CUpsideDownCarCheck : : HasCarBeenUpsideDownForAWhile ( int32 id )
{
for ( int i = 0 ; i < MAX_UPSIDEDOWN_CAR_CHECKS ; i + + ) {
if ( m_sCars [ i ] . m_nVehicleIndex = = id )
return m_sCars [ i ] . m_nUpsideDownTimer > 1000 ;
}
return false ;
}
2020-04-09 03:20:44 +00:00
void stuck_car_data : : Reset ( )
2019-07-06 15:06:08 +00:00
{
m_nVehicleIndex = - 1 ;
m_vecPos = CVector ( - 5000.0f , - 5000.0f , - 5000.0f ) ;
m_nLastCheck = - 1 ;
m_fRadius = 0.0f ;
m_nStuckTime = 0 ;
m_bStuck = false ;
}
2019-07-03 22:16:24 +00:00
void CStuckCarCheck : : Init ( )
{
for ( int i = 0 ; i < MAX_STUCK_CAR_CHECKS ; i + + ) {
2019-07-06 15:06:08 +00:00
m_sCars [ i ] . Reset ( ) ;
}
}
void CStuckCarCheck : : Process ( )
{
uint32 timer = CTimer : : GetTimeInMilliseconds ( ) ;
for ( int i = 0 ; i < MAX_STUCK_CAR_CHECKS ; i + + ) {
if ( m_sCars [ i ] . m_nVehicleIndex < 0 )
continue ;
if ( timer < = m_sCars [ i ] . m_nStuckTime + m_sCars [ i ] . m_nLastCheck )
continue ;
CVehicle * pv = CPools : : GetVehiclePool ( ) - > GetAt ( m_sCars [ i ] . m_nVehicleIndex ) ;
if ( ! pv ) {
m_sCars [ i ] . Reset ( ) ;
continue ;
}
float distance = ( pv - > GetPosition ( ) - m_sCars [ i ] . m_vecPos ) . Magnitude ( ) ;
m_sCars [ i ] . m_bStuck = distance < m_sCars [ i ] . m_fRadius ;
m_sCars [ i ] . m_vecPos = pv - > GetPosition ( ) ;
m_sCars [ i ] . m_nLastCheck = timer ;
}
}
void CStuckCarCheck : : AddCarToCheck ( int32 id , float radius , uint32 time )
{
CVehicle * pv = CPools : : GetVehiclePool ( ) - > GetAt ( id ) ;
if ( ! pv )
return ;
int index = 0 ;
while ( index < MAX_STUCK_CAR_CHECKS & & m_sCars [ index ] . m_nVehicleIndex > = 0 )
index + + ;
/* Would be nice to return if index >= MAX_STUCK_CAR_CHECKS... */
m_sCars [ index ] . m_nVehicleIndex = id ;
m_sCars [ index ] . m_vecPos = pv - > GetPosition ( ) ;
m_sCars [ index ] . m_nLastCheck = CTimer : : GetTimeInMilliseconds ( ) ;
m_sCars [ index ] . m_fRadius = radius ;
m_sCars [ index ] . m_nStuckTime = time ;
m_sCars [ index ] . m_bStuck = false ;
}
void CStuckCarCheck : : RemoveCarFromCheck ( int32 id )
{
for ( int i = 0 ; i < MAX_STUCK_CAR_CHECKS ; i + + ) {
if ( m_sCars [ i ] . m_nVehicleIndex = = id ) {
m_sCars [ i ] . Reset ( ) ;
}
}
}
bool CStuckCarCheck : : HasCarBeenStuckForAWhile ( int32 id )
{
for ( int i = 0 ; i < MAX_STUCK_CAR_CHECKS ; i + + ) {
if ( m_sCars [ i ] . m_nVehicleIndex = = id )
return m_sCars [ i ] . m_bStuck ;
2019-07-03 22:16:24 +00:00
}
2019-07-06 15:06:08 +00:00
return false ;
2019-07-03 22:16:24 +00:00
}
2019-07-07 16:00:02 +00:00
void CRunningScript : : CollectParameters ( uint32 * pIp , int16 total )
{
for ( int16 i = 0 ; i < total ; i + + ) {
2020-03-01 14:42:47 +00:00
uint16 varIndex ;
switch ( CTheScripts : : Read1ByteFromScript ( pIp ) )
2019-07-07 16:00:02 +00:00
{
case ARGUMENT_INT32 :
2020-05-10 12:23:56 +00:00
case ARGUMENT_FLOAT :
2020-03-01 14:42:47 +00:00
ScriptParams [ i ] = CTheScripts : : Read4BytesFromScript ( pIp ) ;
2019-07-07 16:00:02 +00:00
break ;
case ARGUMENT_GLOBALVAR :
2020-03-01 14:42:47 +00:00
varIndex = CTheScripts : : Read2BytesFromScript ( pIp ) ;
2020-06-28 08:59:20 +00:00
script_assert ( varIndex > = 8 & & varIndex < CTheScripts : : GetSizeOfVariableSpace ( ) ) ;
2020-03-01 14:42:47 +00:00
ScriptParams [ i ] = * ( ( int32 * ) & CTheScripts : : ScriptSpace [ varIndex ] ) ;
2019-07-07 16:00:02 +00:00
break ;
case ARGUMENT_LOCALVAR :
2020-03-01 14:42:47 +00:00
varIndex = CTheScripts : : Read2BytesFromScript ( pIp ) ;
2020-06-28 08:59:20 +00:00
script_assert ( varIndex > = 0 & & varIndex < ARRAY_SIZE ( m_anLocalVariables ) ) ;
2020-03-01 14:42:47 +00:00
ScriptParams [ i ] = m_anLocalVariables [ varIndex ] ;
2019-07-07 16:00:02 +00:00
break ;
case ARGUMENT_INT8 :
2020-03-01 14:42:47 +00:00
ScriptParams [ i ] = CTheScripts : : Read1ByteFromScript ( pIp ) ;
2019-07-07 16:00:02 +00:00
break ;
case ARGUMENT_INT16 :
2020-03-01 14:42:47 +00:00
ScriptParams [ i ] = CTheScripts : : Read2BytesFromScript ( pIp ) ;
2019-07-07 16:00:02 +00:00
break ;
default :
2020-06-28 08:59:20 +00:00
script_assert ( 0 ) ;
2019-07-07 16:00:02 +00:00
break ;
}
}
}
2020-06-21 10:46:23 +00:00
# ifdef USE_ADVANCED_SCRIPT_DEBUG_OUTPUT
int CRunningScript : : CollectParameterForDebug ( char * buf , bool & var )
{
uint16 varIndex ;
char tmpstr [ 24 ] ;
var = false ;
switch ( CTheScripts : : Read1ByteFromScript ( & m_nIp ) )
{
case ARGUMENT_INT32 :
2020-07-01 12:43:19 +00:00
case ARGUMENT_FLOAT :
2020-06-21 10:46:23 +00:00
return CTheScripts : : Read4BytesFromScript ( & m_nIp ) ;
case ARGUMENT_GLOBALVAR :
varIndex = CTheScripts : : Read2BytesFromScript ( & m_nIp ) ;
2020-06-28 08:59:20 +00:00
script_assert ( varIndex > = 8 & & varIndex < CTheScripts : : GetSizeOfVariableSpace ( ) ) ;
2020-06-21 10:46:23 +00:00
var = true ;
sprintf ( tmpstr , " $%d " , varIndex / 4 ) ;
strcat ( buf , tmpstr ) ;
return * ( ( int32 * ) & CTheScripts : : ScriptSpace [ varIndex ] ) ;
case ARGUMENT_LOCALVAR :
varIndex = CTheScripts : : Read2BytesFromScript ( & m_nIp ) ;
2020-06-28 08:59:20 +00:00
script_assert ( varIndex > = 0 & & varIndex < ARRAY_SIZE ( m_anLocalVariables ) ) ;
2020-06-21 10:46:23 +00:00
var = true ;
sprintf ( tmpstr , " %d@ " , varIndex ) ;
strcat ( buf , tmpstr ) ;
return m_anLocalVariables [ varIndex ] ;
case ARGUMENT_INT8 :
return CTheScripts : : Read1ByteFromScript ( & m_nIp ) ;
case ARGUMENT_INT16 :
return CTheScripts : : Read2BytesFromScript ( & m_nIp ) ;
default :
2020-06-28 08:59:20 +00:00
PrintToLog ( " %s - script assertion failed in CollectParameterForDebug " , buf ) ;
script_assert ( 0 ) ;
2020-06-21 10:46:23 +00:00
break ;
}
return 0 ;
}
void CRunningScript : : GetStoredParameterForDebug ( char * buf )
{
uint16 varIndex ;
char tmpstr [ 24 ] ;
switch ( CTheScripts : : Read1ByteFromScript ( & m_nIp ) ) {
case ARGUMENT_GLOBALVAR :
varIndex = CTheScripts : : Read2BytesFromScript ( & m_nIp ) ;
sprintf ( tmpstr , " $%d " , varIndex / 4 ) ;
strcat ( buf , tmpstr ) ;
break ;
case ARGUMENT_LOCALVAR :
varIndex = CTheScripts : : Read2BytesFromScript ( & m_nIp ) ;
sprintf ( tmpstr , " %d@ " , varIndex ) ;
strcat ( buf , tmpstr ) ;
break ;
default :
2020-06-28 08:59:20 +00:00
PrintToLog ( " %s - script_assertion failed in GetStoredParameterForDebug " , buf ) ;
script_assert ( 0 ) ;
2020-06-21 10:46:23 +00:00
}
}
# endif
2019-07-07 16:00:02 +00:00
int32 CRunningScript : : CollectNextParameterWithoutIncreasingPC ( uint32 ip )
{
uint32 * pIp = & ip ;
2020-03-01 14:42:47 +00:00
switch ( CTheScripts : : Read1ByteFromScript ( pIp ) )
2019-07-07 16:00:02 +00:00
{
case ARGUMENT_INT32 :
2020-03-01 14:42:47 +00:00
return CTheScripts : : Read4BytesFromScript ( pIp ) ;
2019-07-07 16:00:02 +00:00
case ARGUMENT_GLOBALVAR :
2020-09-30 13:25:21 +00:00
return * ( ( int32 * ) & CTheScripts : : ScriptSpace [ ( uint16 ) CTheScripts : : Read2BytesFromScript ( pIp ) ] ) ;
2019-07-07 16:00:02 +00:00
case ARGUMENT_LOCALVAR :
2020-03-01 14:42:47 +00:00
return m_anLocalVariables [ CTheScripts : : Read2BytesFromScript ( pIp ) ] ;
2019-07-07 16:00:02 +00:00
case ARGUMENT_INT8 :
2020-03-01 14:42:47 +00:00
return CTheScripts : : Read1ByteFromScript ( pIp ) ;
2019-07-07 16:00:02 +00:00
case ARGUMENT_INT16 :
2020-03-01 14:42:47 +00:00
return CTheScripts : : Read2BytesFromScript ( pIp ) ;
2019-07-07 16:00:02 +00:00
case ARGUMENT_FLOAT :
2020-05-18 22:49:09 +00:00
return CTheScripts : : Read4BytesFromScript ( pIp ) ;
2019-07-07 16:00:02 +00:00
default :
2020-06-28 08:59:20 +00:00
script_assert ( 0 ) ;
2019-07-07 16:00:02 +00:00
}
return - 1 ;
}
void CRunningScript : : StoreParameters ( uint32 * pIp , int16 number )
{
for ( int16 i = 0 ; i < number ; i + + ) {
2020-03-01 14:42:47 +00:00
switch ( CTheScripts : : Read1ByteFromScript ( pIp ) ) {
2019-07-07 16:00:02 +00:00
case ARGUMENT_GLOBALVAR :
2020-09-30 13:25:21 +00:00
* ( int32 * ) & CTheScripts : : ScriptSpace [ ( uint16 ) CTheScripts : : Read2BytesFromScript ( pIp ) ] = ScriptParams [ i ] ;
2019-07-07 16:00:02 +00:00
break ;
case ARGUMENT_LOCALVAR :
2020-03-01 14:42:47 +00:00
m_anLocalVariables [ CTheScripts : : Read2BytesFromScript ( pIp ) ] = ScriptParams [ i ] ;
2019-07-07 16:00:02 +00:00
break ;
default :
2020-06-28 08:59:20 +00:00
script_assert ( 0 ) ;
2019-07-07 16:00:02 +00:00
}
}
}
int32 * CRunningScript : : GetPointerToScriptVariable ( uint32 * pIp , int16 type )
{
2020-03-01 14:42:47 +00:00
switch ( CTheScripts : : Read1ByteFromScript ( pIp ) )
2019-07-07 16:00:02 +00:00
{
case ARGUMENT_GLOBALVAR :
2020-06-28 08:59:20 +00:00
script_assert ( type = = VAR_GLOBAL ) ;
2020-09-30 13:25:21 +00:00
return ( int32 * ) & CTheScripts : : ScriptSpace [ ( uint16 ) CTheScripts : : Read2BytesFromScript ( pIp ) ] ;
2019-07-07 16:00:02 +00:00
case ARGUMENT_LOCALVAR :
2020-06-28 08:59:20 +00:00
script_assert ( type = = VAR_LOCAL ) ;
2020-03-01 14:42:47 +00:00
return & m_anLocalVariables [ CTheScripts : : Read2BytesFromScript ( pIp ) ] ;
2019-07-07 16:00:02 +00:00
default :
2020-06-28 08:59:20 +00:00
script_assert ( 0 ) ;
2019-07-07 16:00:02 +00:00
}
return nil ;
}
void CRunningScript : : Init ( )
{
strcpy ( m_abScriptName , " noname " ) ;
next = prev = nil ;
2020-02-23 10:12:44 +00:00
SetIP ( 0 ) ;
2019-07-07 16:00:02 +00:00
for ( int i = 0 ; i < MAX_STACK_DEPTH ; i + + )
m_anStack [ i ] = 0 ;
m_nStackPointer = 0 ;
m_nWakeTime = 0 ;
2020-08-30 21:07:29 +00:00
m_bIsActive = false ;
2019-07-07 16:00:02 +00:00
m_bCondResult = false ;
2019-07-07 21:05:24 +00:00
m_bIsMissionScript = false ;
2019-07-07 16:00:02 +00:00
m_bSkipWakeTime = false ;
for ( int i = 0 ; i < NUM_LOCAL_VARS + NUM_TIMERS ; i + + )
m_anLocalVariables [ i ] = 0 ;
m_nAndOrState = 0 ;
m_bNotFlag = false ;
2019-07-25 20:34:29 +00:00
m_bDeatharrestEnabled = true ;
m_bDeatharrestExecuted = false ;
2019-07-07 16:00:02 +00:00
m_bMissionFlag = false ;
}
# ifdef USE_DEBUG_SCRIPT_LOADER
2020-05-29 19:05:33 +00:00
int scriptToLoad = 0 ;
const char * scriptfile = " main.scm " ;
2020-05-10 12:23:56 +00:00
2020-05-29 19:05:33 +00:00
# ifdef _WIN32
# include <Windows.h>
# endif
2019-07-07 16:00:02 +00:00
int open_script ( )
{
2020-05-29 19:05:33 +00:00
// glfwGetKey doesn't work because of CGame::Initialise is blocking
2020-05-11 02:55:57 +00:00
# ifdef _WIN32
2019-07-07 16:00:02 +00:00
if ( GetAsyncKeyState ( ' G ' ) & 0x8000 )
scriptToLoad = 0 ;
if ( GetAsyncKeyState ( ' R ' ) & 0x8000 )
scriptToLoad = 1 ;
if ( GetAsyncKeyState ( ' D ' ) & 0x8000 )
scriptToLoad = 2 ;
2020-05-11 02:55:57 +00:00
# endif
2019-07-07 16:00:02 +00:00
switch ( scriptToLoad ) {
2020-05-10 12:23:56 +00:00
case 0 : scriptfile = " main.scm " ; break ;
case 1 : scriptfile = " freeroam_miami.scm " ; break ;
case 2 : scriptfile = " main_d.scm " ; break ;
2019-07-07 16:00:02 +00:00
}
2020-05-10 12:23:56 +00:00
return CFileMgr : : OpenFile ( scriptfile , " rb " ) ;
2019-07-07 16:00:02 +00:00
}
# endif
void CTheScripts : : Init ( )
{
for ( int i = 0 ; i < SIZE_SCRIPT_SPACE ; i + + )
ScriptSpace [ i ] = 0 ;
pActiveScripts = pIdleScripts = nil ;
for ( int i = 0 ; i < MAX_NUM_SCRIPTS ; i + + ) {
ScriptsArray [ i ] . Init ( ) ;
ScriptsArray [ i ] . AddScriptToList ( & pIdleScripts ) ;
}
MissionCleanup . Init ( ) ;
UpsideDownCars . Init ( ) ;
StuckCars . Init ( ) ;
CFileMgr : : SetDir ( " data " ) ;
# ifdef USE_DEBUG_SCRIPT_LOADER
int mainf = open_script ( ) ;
# else
int mainf = CFileMgr : : OpenFile ( " main.scm " , " rb " ) ;
# endif
CFileMgr : : Read ( mainf , ( char * ) ScriptSpace , SIZE_MAIN_SCRIPT ) ;
CFileMgr : : CloseFile ( mainf ) ;
CFileMgr : : SetDir ( " " ) ;
StoreVehicleIndex = - 1 ;
StoreVehicleWasRandom = true ;
OnAMissionFlag = 0 ;
2020-05-18 22:49:09 +00:00
LastMissionPassedTime = ( uint32 ) - 1 ;
2019-07-07 16:00:02 +00:00
LastRandomPedId = - 1 ;
for ( int i = 0 ; i < MAX_NUM_USED_OBJECTS ; i + + ) {
memset ( & UsedObjectArray [ i ] . name , 0 , sizeof ( UsedObjectArray [ i ] . name ) ) ;
UsedObjectArray [ i ] . index = 0 ;
}
NumberOfUsedObjects = 0 ;
ReadObjectNamesFromScript ( ) ;
UpdateObjectIndices ( ) ;
bAlreadyRunningAMissionScript = false ;
bUsingAMultiScriptFile = true ;
for ( int i = 0 ; i < MAX_NUM_MISSION_SCRIPTS ; i + + )
MultiScriptArray [ i ] = 0 ;
2020-05-18 22:49:09 +00:00
NumberOfExclusiveMissionScripts = 0 ;
2019-07-07 16:00:02 +00:00
NumberOfMissionScripts = 0 ;
LargestMissionScriptSize = 0 ;
MainScriptSize = 0 ;
ReadMultiScriptFileOffsetsFromScript ( ) ;
FailCurrentMission = 0 ;
2020-02-24 18:17:15 +00:00
DbgFlag = false ;
2019-07-07 16:00:02 +00:00
NumScriptDebugLines = 0 ;
2020-05-18 22:49:09 +00:00
RiotIntensity = 0 ;
bPlayerHasMetDebbieHarry = false ;
bPlayerIsInTheStatium = false ;
2019-07-07 16:00:02 +00:00
for ( int i = 0 ; i < MAX_NUM_SCRIPT_SPHERES ; i + + ) {
ScriptSphereArray [ i ] . m_bInUse = false ;
ScriptSphereArray [ i ] . m_Index = 1 ;
ScriptSphereArray [ i ] . m_Id = 0 ;
ScriptSphereArray [ i ] . m_vecCenter = CVector ( 0.0f , 0.0f , 0.0f ) ;
ScriptSphereArray [ i ] . m_fRadius = 0.0f ;
}
for ( int i = 0 ; i < MAX_NUM_INTRO_TEXT_LINES ; i + + ) {
2019-07-07 17:57:00 +00:00
IntroTextLines [ i ] . Reset ( ) ;
2019-07-07 16:00:02 +00:00
}
NumberOfIntroTextLinesThisFrame = 0 ;
2020-02-24 18:17:15 +00:00
UseTextCommands = 0 ;
2019-07-07 16:00:02 +00:00
for ( int i = 0 ; i < MAX_NUM_INTRO_RECTANGLES ; i + + ) {
2019-07-07 21:05:24 +00:00
IntroRectangles [ i ] . m_bIsUsed = false ;
2019-07-07 17:57:00 +00:00
IntroRectangles [ i ] . m_bBeforeFade = false ;
2019-07-07 16:00:02 +00:00
IntroRectangles [ i ] . m_nTextureId = - 1 ;
IntroRectangles [ i ] . m_sRect = CRect ( 0.0f , 0.0f , 0.0f , 0.0f ) ;
IntroRectangles [ i ] . m_sColor = CRGBA ( 255 , 255 , 255 , 255 ) ;
}
NumberOfIntroRectanglesThisFrame = 0 ;
2020-05-18 22:49:09 +00:00
RemoveScriptTextureDictionary ( ) ;
2019-07-07 16:00:02 +00:00
for ( int i = 0 ; i < MAX_NUM_BUILDING_SWAPS ; i + + ) {
BuildingSwapArray [ i ] . m_pBuilding = nil ;
BuildingSwapArray [ i ] . m_nNewModel = - 1 ;
BuildingSwapArray [ i ] . m_nOldModel = - 1 ;
}
for ( int i = 0 ; i < MAX_NUM_INVISIBILITY_SETTINGS ; i + + )
InvisibilitySettingArray [ i ] = nil ;
2020-06-21 10:46:23 +00:00
# if defined USE_ADVANCED_SCRIPT_DEBUG_OUTPUT && SCRIPT_LOG_FILE_LEVEL == 2
CFileMgr : : SetDirMyDocuments ( ) ;
2020-06-28 08:59:20 +00:00
if ( dbg_log )
fclose ( dbg_log ) ;
dbg_log = fopen ( " SCRDBG.LOG " , " w " ) ;
2020-06-21 10:46:23 +00:00
static const char * init_msg = " Starting debug script log \n \n " ;
PrintToLog ( init_msg ) ;
2020-07-18 10:09:37 +00:00
CFileMgr : : SetDir ( " " ) ;
2020-06-21 10:46:23 +00:00
# endif
2019-07-07 16:00:02 +00:00
}
2020-05-18 22:49:09 +00:00
void CTheScripts : : RemoveScriptTextureDictionary ( )
{
for ( int i = 0 ; i < ARRAY_SIZE ( CTheScripts : : ScriptSprites ) ; i + + )
CTheScripts : : ScriptSprites [ i ] . Delete ( ) ;
int slot = CTxdStore : : FindTxdSlot ( " script " ) ;
if ( slot ! = - 1 )
CTxdStore : : RemoveTxd ( slot ) ;
}
2019-07-07 16:00:02 +00:00
void CRunningScript : : RemoveScriptFromList ( CRunningScript * * ppScript )
{
if ( prev )
prev - > next = next ;
else
* ppScript = next ;
if ( next )
next - > prev = prev ;
}
void CRunningScript : : AddScriptToList ( CRunningScript * * ppScript )
{
next = * ppScript ;
prev = nil ;
if ( * ppScript )
( * ppScript ) - > prev = this ;
* ppScript = this ;
}
2019-07-07 17:57:00 +00:00
CRunningScript * CTheScripts : : StartNewScript ( uint32 ip )
{
CRunningScript * pNew = pIdleScripts ;
2020-06-28 08:59:20 +00:00
script_assert ( pNew ) ;
2019-07-07 17:57:00 +00:00
pNew - > RemoveScriptFromList ( & pIdleScripts ) ;
pNew - > Init ( ) ;
pNew - > SetIP ( ip ) ;
pNew - > AddScriptToList ( & pActiveScripts ) ;
2020-12-12 09:24:55 +00:00
pNew - > m_bIsActive = true ;
2019-07-07 17:57:00 +00:00
return pNew ;
}
void CTheScripts : : Process ( )
{
if ( CReplay : : IsPlayingBack ( ) )
return ;
CommandsExecuted = 0 ;
ScriptsUpdated = 0 ;
float timeStep = CTimer : : GetTimeStepInMilliseconds ( ) ;
UpsideDownCars . UpdateTimers ( ) ;
StuckCars . Process ( ) ;
2020-08-29 16:22:25 +00:00
MissionCleanup . CheckIfCollisionHasLoadedForMissionObjects ( ) ;
2019-07-07 17:57:00 +00:00
DrawScriptSpheres ( ) ;
if ( FailCurrentMission )
- - FailCurrentMission ;
if ( UseTextCommands ) {
for ( int i = 0 ; i < MAX_NUM_INTRO_TEXT_LINES ; i + + )
IntroTextLines [ i ] . Reset ( ) ;
2019-07-20 13:30:11 +00:00
NumberOfIntroTextLinesThisFrame = 0 ;
2019-07-07 17:57:00 +00:00
for ( int i = 0 ; i < MAX_NUM_INTRO_RECTANGLES ; i + + ) {
2019-07-07 21:05:24 +00:00
IntroRectangles [ i ] . m_bIsUsed = false ;
2019-07-07 17:57:00 +00:00
IntroRectangles [ i ] . m_bBeforeFade = false ;
}
NumberOfIntroRectanglesThisFrame = 0 ;
if ( UseTextCommands = = 1 )
UseTextCommands = 0 ;
}
2020-05-26 21:25:12 +00:00
# ifdef MISSION_REPLAY
static uint32 TimeToWaitTill ;
switch ( AllowMissionReplay ) {
case 2 :
AllowMissionReplay = 3 ;
TimeToWaitTill = CTimer : : GetTimeInMilliseconds ( ) + ( AddExtraDeathDelay ( ) > 1000 ? 4000 : 2500 ) ;
break ;
case 3 :
if ( TimeToWaitTill < CTimer : : GetTimeInMilliseconds ( ) )
AllowMissionReplay = 4 ;
break ;
case 4 :
AllowMissionReplay = 5 ;
RetryMission ( 0 , 0 ) ;
2020-10-17 22:54:27 +00:00
break ;
2020-05-26 21:25:12 +00:00
case 6 :
AllowMissionReplay = 7 ;
TimeToWaitTill = CTimer : : GetTimeInMilliseconds ( ) + 500 ;
2020-10-17 22:54:27 +00:00
break ;
2020-05-26 21:25:12 +00:00
case 7 :
if ( TimeToWaitTill < CTimer : : GetTimeInMilliseconds ( ) ) {
AllowMissionReplay = 0 ;
return ;
}
break ;
}
if ( WaitForMissionActivate ) {
if ( WaitForMissionActivate > CTimer : : GetTimeInMilliseconds ( ) )
return ;
WaitForMissionActivate = 0 ;
WaitForSave = CTimer : : GetTimeInMilliseconds ( ) + 3000 ;
}
if ( WaitForSave & & WaitForSave > CTimer : : GetTimeInMilliseconds ( ) )
WaitForSave = 0 ;
# endif
2020-06-22 11:07:19 +00:00
# ifdef USE_ADVANCED_SCRIPT_DEBUG_OUTPUT
# if SCRIPT_LOG_FILE_LEVEL == 1
CFileMgr : : SetDirMyDocuments ( ) ;
2020-06-28 08:59:20 +00:00
dbg_log = fopen ( " SCRDBG.LOG " , " w " ) ;
2020-06-22 11:07:19 +00:00
static const char * init_msg = " Starting debug script log \n \n " ;
PrintToLog ( init_msg ) ;
2020-07-18 10:09:37 +00:00
CFileMgr : : SetDir ( " " ) ;
2020-06-22 11:07:19 +00:00
# endif
PrintToLog ( " ------------------------ \n " ) ;
PrintToLog ( " CTheScripts::Process started, CTimer::GetTimeInMilliseconds == %u \n " , CTimer : : GetTimeInMilliseconds ( ) ) ;
# endif
2019-07-07 17:57:00 +00:00
CRunningScript * script = pActiveScripts ;
while ( script ! = nil ) {
CRunningScript * next = script - > GetNext ( ) ;
+ + ScriptsUpdated ;
script - > UpdateTimers ( timeStep ) ;
script - > Process ( ) ;
script = next ;
2020-12-12 09:24:55 +00:00
if ( script & & ! script - > m_bIsActive )
script = nil ;
2019-07-07 17:57:00 +00:00
}
DbgFlag = false ;
2020-06-21 10:46:23 +00:00
# ifdef USE_ADVANCED_SCRIPT_DEBUG_OUTPUT
PrintToLog ( " Script processing done, ScriptsUpdated: %d, CommandsExecuted: %d \n " , ScriptsUpdated , CommandsExecuted ) ;
# if SCRIPT_LOG_FILE_LEVEL == 1
2020-06-28 08:59:20 +00:00
fclose ( dbg_log ) ;
dbg_log = nil ;
2020-06-21 10:46:23 +00:00
# endif
# endif
2019-07-07 17:57:00 +00:00
}
CRunningScript * CTheScripts : : StartTestScript ( )
{
return StartNewScript ( 0 ) ;
}
bool CTheScripts : : IsPlayerOnAMission ( )
{
return OnAMissionFlag & & * ( int32 * ) & ScriptSpace [ OnAMissionFlag ] = = 1 ;
}
2019-07-07 21:05:24 +00:00
void CRunningScript : : Process ( )
{
2020-06-21 10:46:23 +00:00
# ifdef USE_ADVANCED_SCRIPT_DEBUG_OUTPUT
PrintToLog ( " \n \n Processing script %s (id %d) \n \n " , m_abScriptName , this - CTheScripts : : ScriptsArray ) ;
# endif
2019-07-07 21:05:24 +00:00
if ( m_bIsMissionScript )
DoDeatharrestCheck ( ) ;
if ( m_bMissionFlag & & CTheScripts : : FailCurrentMission = = 1 & & m_nStackPointer = = 1 )
2020-02-23 10:12:44 +00:00
SetIP ( m_anStack [ - - m_nStackPointer ] ) ;
2019-07-07 21:05:24 +00:00
if ( CTimer : : GetTimeInMilliseconds ( ) > = m_nWakeTime ) {
while ( ! ProcessOneCommand ( ) )
;
return ;
}
if ( ! m_bSkipWakeTime )
return ;
if ( ! CPad : : GetPad ( 0 ) - > GetCrossJustDown ( ) )
return ;
m_nWakeTime = 0 ;
2019-10-20 22:08:26 +00:00
for ( int i = 0 ; i < NUMBIGMESSAGES ; i + + ) {
if ( CMessages : : BIGMessages [ i ] . m_Stack [ 0 ] . m_pText ! = nil )
CMessages : : BIGMessages [ i ] . m_Stack [ 0 ] . m_nStartTime = 0 ;
2019-07-07 21:05:24 +00:00
}
2019-10-20 22:08:26 +00:00
if ( CMessages : : BriefMessages [ 0 ] . m_pText ! = nil )
CMessages : : BriefMessages [ 0 ] . m_nStartTime = 0 ;
2019-07-07 21:05:24 +00:00
}
int8 CRunningScript : : ProcessOneCommand ( )
{
2020-06-21 10:46:23 +00:00
int8 retval = - 1 ;
2020-06-14 21:26:19 +00:00
+ + CTheScripts : : CommandsExecuted ;
2020-09-30 13:25:21 +00:00
int32 command = ( uint16 ) CTheScripts : : Read2BytesFromScript ( & m_nIp ) ;
2020-06-14 21:26:19 +00:00
m_bNotFlag = ( command & 0x8000 ) ;
command & = 0x7FFF ;
2020-06-21 10:46:23 +00:00
# ifdef USE_ADVANCED_SCRIPT_DEBUG_OUTPUT
2020-06-28 13:24:09 +00:00
char commandInfo [ 1024 ] ;
2020-06-21 10:46:23 +00:00
uint32 ip = m_nIp ;
if ( command < ARRAY_SIZE ( commands ) ) {
2020-06-28 08:59:20 +00:00
script_assert ( commands [ command ] . id = = command ) ;
2020-06-21 10:46:23 +00:00
sprintf ( commandInfo , m_nIp > = SIZE_MAIN_SCRIPT ? " M<%5d> " : " <%6d> " , m_nIp > = SIZE_MAIN_SCRIPT ? m_nIp - SIZE_MAIN_SCRIPT : m_nIp ) ;
if ( m_bNotFlag )
strcat ( commandInfo , " NOT " ) ;
if ( commands [ command ] . position = = - 1 )
strcat ( commandInfo , commands [ command ] . name + sizeof ( " COMMAND_ " ) - 1 ) ;
for ( int i = 0 ; commands [ command ] . input [ i ] ! = ARGTYPE_NONE ; i + + ) {
2020-11-01 10:55:29 +00:00
char tmp [ 32 ] ;
2020-06-21 10:46:23 +00:00
bool var = false ;
int value ;
switch ( commands [ command ] . input [ i ] ) {
case ARGTYPE_INT :
case ARGTYPE_PED_HANDLE :
case ARGTYPE_VEHICLE_HANDLE :
case ARGTYPE_OBJECT_HANDLE : value = CollectParameterForDebug ( commandInfo , var ) ; sprintf ( tmp , var ? " (%d) " : " %d " , value ) ; break ;
case ARGTYPE_FLOAT : value = CollectParameterForDebug ( commandInfo , var ) ; sprintf ( tmp , var ? " (%.3f) " : " %.3f " , * ( float * ) & value ) ; break ;
case ARGTYPE_STRING : sprintf ( tmp , " '%s' " , ( const char * ) & CTheScripts : : ScriptSpace [ m_nIp ] ) ; m_nIp + = KEY_LENGTH_IN_SCRIPT ; break ;
case ARGTYPE_LABEL : value = CollectParameterForDebug ( commandInfo , var ) ; sprintf ( tmp , var ? " (%s(%d)) " : " %s(%d) " , value > = 0 ? " G " : " L " , abs ( value ) ) ; break ;
case ARGTYPE_BOOL : value = CollectParameterForDebug ( commandInfo , var ) ; sprintf ( tmp , var ? " (%s) " : " %s " , value ? " TRUE " : " FALSE " ) ; break ;
case ARGTYPE_ANDOR : value = CollectParameterForDebug ( commandInfo , var ) ; sprintf ( tmp , " %d %ss " , ( value + 1 ) % 10 , value / 10 = = 0 ? " AND " : " OR " ) ; break ;
2020-06-28 08:59:20 +00:00
default : script_assert ( 0 ) ;
2020-06-21 10:46:23 +00:00
}
strcat ( commandInfo , tmp ) ;
if ( commands [ command ] . position = = i )
strcat ( commandInfo , commands [ command ] . name_override ) ;
}
uint32 t = m_nIp ;
m_nIp = ip ;
ip = t ;
}
# endif
2019-07-07 21:05:24 +00:00
if ( command < 100 )
2020-06-21 10:46:23 +00:00
retval = ProcessCommands0To99 ( command ) ;
else if ( command < 200 )
retval = ProcessCommands100To199 ( command ) ;
else if ( command < 300 )
retval = ProcessCommands200To299 ( command ) ;
else if ( command < 400 )
retval = ProcessCommands300To399 ( command ) ;
else if ( command < 500 )
retval = ProcessCommands400To499 ( command ) ;
else if ( command < 600 )
retval = ProcessCommands500To599 ( command ) ;
else if ( command < 700 )
retval = ProcessCommands600To699 ( command ) ;
else if ( command < 800 )
retval = ProcessCommands700To799 ( command ) ;
else if ( command < 900 )
retval = ProcessCommands800To899 ( command ) ;
else if ( command < 1000 )
retval = ProcessCommands900To999 ( command ) ;
else if ( command < 1100 )
retval = ProcessCommands1000To1099 ( command ) ;
else if ( command < 1200 )
retval = ProcessCommands1100To1199 ( command ) ;
2020-06-29 09:56:50 +00:00
else if ( command < 1300 )
retval = ProcessCommands1200To1299 ( command ) ;
else if ( command < 1400 )
retval = ProcessCommands1300To1399 ( command ) ;
else if ( command < 1500 )
retval = ProcessCommands1400To1499 ( command ) ;
2020-06-21 10:46:23 +00:00
# ifdef USE_ADVANCED_SCRIPT_DEBUG_OUTPUT
if ( command < ARRAY_SIZE ( commands ) ) {
if ( commands [ command ] . cond | | commands [ command ] . output [ 0 ] ! = ARGTYPE_NONE ) {
strcat ( commandInfo , " -> " ) ;
if ( commands [ command ] . cond )
strcat ( commandInfo , m_bCondResult ? " TRUE " : " FALSE " ) ;
uint32 t = m_nIp ;
m_nIp = ip ;
ip = t ;
for ( int i = 0 ; commands [ command ] . output [ i ] ! = ARGTYPE_NONE ; i + + ) {
2020-11-01 10:55:29 +00:00
char tmp [ 32 ] ;
2020-06-21 10:46:23 +00:00
switch ( commands [ command ] . output [ i ] ) {
case ARGTYPE_INT :
case ARGTYPE_PED_HANDLE :
case ARGTYPE_VEHICLE_HANDLE :
case ARGTYPE_OBJECT_HANDLE : GetStoredParameterForDebug ( commandInfo ) ; sprintf ( tmp , " (%d) " , ScriptParams [ i ] ) ; strcat ( commandInfo , tmp ) ; break ;
case ARGTYPE_FLOAT : GetStoredParameterForDebug ( commandInfo ) ; sprintf ( tmp , " (%8.3f) " , * ( float * ) & ScriptParams [ i ] ) ; strcat ( commandInfo , tmp ) ; break ;
2020-06-28 08:59:20 +00:00
default : script_assert ( 0 & & " Script only returns INTs and FLOATs " ) ;
2020-06-21 10:46:23 +00:00
}
}
m_nIp = ip ;
}
PrintToLog ( " %s \n " , commandInfo ) ;
if ( m_bMissionFlag ) {
for ( int i = 0 ; commandInfo [ i ] ; i + + ) {
if ( commandInfo [ i ] = = ' _ ' )
commandInfo [ i ] = ' ' ;
}
CDebug : : DebugAddText ( commandInfo ) ;
}
}
2020-06-28 08:59:20 +00:00
# elif defined USE_BASIC_SCRIPT_DEBUG_OUTPUT
2020-06-21 10:46:23 +00:00
if ( m_bMissionFlag ) {
char tmp [ 128 ] ;
sprintf ( tmp , " Comm %d Cmp %d " , command , m_bCondResult ) ;
CDebug : : DebugAddText ( tmp ) ;
}
# endif
return retval ;
2019-07-07 21:05:24 +00:00
}
2020-01-31 17:16:13 +00:00
int8 CRunningScript : : ProcessCommands0To99 ( int32 command )
2019-07-09 20:38:05 +00:00
{
2020-05-11 02:55:57 +00:00
float * fScriptVar1 ;
int * nScriptVar1 ;
2019-07-09 20:38:05 +00:00
switch ( command ) {
case COMMAND_NOP :
return 0 ;
case COMMAND_WAIT :
CollectParameters ( & m_nIp , 1 ) ;
m_nWakeTime = CTimer : : GetTimeInMilliseconds ( ) + ScriptParams [ 0 ] ;
2020-05-18 22:49:09 +00:00
m_bSkipWakeTime = false ;
2019-07-09 20:38:05 +00:00
return 1 ;
case COMMAND_GOTO :
CollectParameters ( & m_nIp , 1 ) ;
SetIP ( ScriptParams [ 0 ] > = 0 ? ScriptParams [ 0 ] : SIZE_MAIN_SCRIPT - ScriptParams [ 0 ] ) ;
/* Known issue: GOTO to 0. It might have been "better" to use > instead of >= */
/* simply because it never makes sense to jump to start of the script */
/* but jumping to start of a custom mission is an issue for simple mission-like scripts */
/* However, it's not an issue for actual mission scripts, because they follow a structure */
/* and never start with a loop. */
return 0 ;
case COMMAND_SHAKE_CAM :
CollectParameters ( & m_nIp , 1 ) ;
2019-07-17 10:24:04 +00:00
CamShakeNoPos ( & TheCamera , ScriptParams [ 0 ] / 1000.0f ) ;
2019-07-09 20:38:05 +00:00
return 0 ;
case COMMAND_SET_VAR_INT :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ptr = ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_SET_VAR_FLOAT :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ( float * ) ptr = * ( float * ) & ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_SET_LVAR_INT :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ptr = ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_SET_LVAR_FLOAT :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ( float * ) ptr = * ( float * ) & ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_ADD_VAL_TO_INT_VAR :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ptr + = ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_ADD_VAL_TO_FLOAT_VAR :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ( float * ) ptr + = * ( float * ) & ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_ADD_VAL_TO_INT_LVAR :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ptr + = ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_ADD_VAL_TO_FLOAT_LVAR :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ( float * ) ptr + = * ( float * ) & ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_SUB_VAL_FROM_INT_VAR :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ptr - = ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_SUB_VAL_FROM_FLOAT_VAR :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ( float * ) ptr - = * ( float * ) & ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_SUB_VAL_FROM_INT_LVAR :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ptr - = ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_SUB_VAL_FROM_FLOAT_LVAR :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ( float * ) ptr - = * ( float * ) & ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_MULT_INT_VAR_BY_VAL :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ptr * = ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_MULT_FLOAT_VAR_BY_VAL :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ( float * ) ptr * = * ( float * ) & ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_MULT_INT_LVAR_BY_VAL :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ptr * = ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_MULT_FLOAT_LVAR_BY_VAL :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ( float * ) ptr * = * ( float * ) & ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_DIV_INT_VAR_BY_VAL :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ptr / = ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_DIV_FLOAT_VAR_BY_VAL :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ( float * ) ptr / = * ( float * ) & ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_DIV_INT_LVAR_BY_VAL :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ptr / = ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_DIV_FLOAT_LVAR_BY_VAL :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ( float * ) ptr / = * ( float * ) & ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_IS_INT_VAR_GREATER_THAN_NUMBER :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
UpdateCompareFlag ( * ptr > ScriptParams [ 0 ] ) ;
return 0 ;
}
case COMMAND_IS_INT_LVAR_GREATER_THAN_NUMBER :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
UpdateCompareFlag ( * ptr > ScriptParams [ 0 ] ) ;
return 0 ;
}
case COMMAND_IS_NUMBER_GREATER_THAN_INT_VAR :
{
CollectParameters ( & m_nIp , 1 ) ;
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
UpdateCompareFlag ( ScriptParams [ 0 ] > * ptr ) ;
return 0 ;
}
case COMMAND_IS_NUMBER_GREATER_THAN_INT_LVAR :
{
CollectParameters ( & m_nIp , 1 ) ;
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
UpdateCompareFlag ( ScriptParams [ 0 ] > * ptr ) ;
return 0 ;
}
case COMMAND_IS_INT_VAR_GREATER_THAN_INT_VAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
UpdateCompareFlag ( * ptr1 > * ptr2 ) ;
return 0 ;
}
case COMMAND_IS_INT_LVAR_GREATER_THAN_INT_VAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
UpdateCompareFlag ( * ptr1 > * ptr2 ) ;
return 0 ;
}
case COMMAND_IS_INT_VAR_GREATER_THAN_INT_LVAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
UpdateCompareFlag ( * ptr1 > * ptr2 ) ;
return 0 ;
}
case COMMAND_IS_INT_LVAR_GREATER_THAN_INT_LVAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
UpdateCompareFlag ( * ptr1 > * ptr2 ) ;
return 0 ;
}
case COMMAND_IS_FLOAT_VAR_GREATER_THAN_NUMBER :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
UpdateCompareFlag ( * ( float * ) ptr > * ( float * ) & ScriptParams [ 0 ] ) ;
return 0 ;
}
case COMMAND_IS_FLOAT_LVAR_GREATER_THAN_NUMBER :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
UpdateCompareFlag ( * ( float * ) ptr > * ( float * ) & ScriptParams [ 0 ] ) ;
return 0 ;
}
case COMMAND_IS_NUMBER_GREATER_THAN_FLOAT_VAR :
{
CollectParameters ( & m_nIp , 1 ) ;
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
UpdateCompareFlag ( * ( float * ) & ScriptParams [ 0 ] > * ( float * ) ptr ) ;
return 0 ;
}
case COMMAND_IS_NUMBER_GREATER_THAN_FLOAT_LVAR :
{
CollectParameters ( & m_nIp , 1 ) ;
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
UpdateCompareFlag ( * ( float * ) & ScriptParams [ 0 ] > * ( float * ) ptr ) ;
return 0 ;
}
case COMMAND_IS_FLOAT_VAR_GREATER_THAN_FLOAT_VAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
UpdateCompareFlag ( * ( float * ) ptr1 > * ( float * ) ptr2 ) ;
return 0 ;
}
case COMMAND_IS_FLOAT_LVAR_GREATER_THAN_FLOAT_VAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
UpdateCompareFlag ( * ( float * ) ptr1 > * ( float * ) ptr2 ) ;
return 0 ;
}
case COMMAND_IS_FLOAT_VAR_GREATER_THAN_FLOAT_LVAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
UpdateCompareFlag ( * ( float * ) ptr1 > * ( float * ) ptr2 ) ;
return 0 ;
}
case COMMAND_IS_FLOAT_LVAR_GREATER_THAN_FLOAT_LVAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
UpdateCompareFlag ( * ( float * ) ptr1 > * ( float * ) ptr2 ) ;
return 0 ;
}
case COMMAND_IS_INT_VAR_GREATER_OR_EQUAL_TO_NUMBER :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
UpdateCompareFlag ( * ptr > = ScriptParams [ 0 ] ) ;
return 0 ;
}
case COMMAND_IS_INT_LVAR_GREATER_OR_EQUAL_TO_NUMBER :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
UpdateCompareFlag ( * ptr > = ScriptParams [ 0 ] ) ;
return 0 ;
}
case COMMAND_IS_NUMBER_GREATER_OR_EQUAL_TO_INT_VAR :
{
CollectParameters ( & m_nIp , 1 ) ;
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
UpdateCompareFlag ( ScriptParams [ 0 ] > = * ptr ) ;
return 0 ;
}
case COMMAND_IS_NUMBER_GREATER_OR_EQUAL_TO_INT_LVAR :
{
CollectParameters ( & m_nIp , 1 ) ;
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
UpdateCompareFlag ( ScriptParams [ 0 ] > = * ptr ) ;
return 0 ;
}
case COMMAND_IS_INT_VAR_GREATER_OR_EQUAL_TO_INT_VAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
UpdateCompareFlag ( * ptr1 > = * ptr2 ) ;
return 0 ;
}
case COMMAND_IS_INT_LVAR_GREATER_OR_EQUAL_TO_INT_VAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
UpdateCompareFlag ( * ptr1 > = * ptr2 ) ;
return 0 ;
}
case COMMAND_IS_INT_VAR_GREATER_OR_EQUAL_TO_INT_LVAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
UpdateCompareFlag ( * ptr1 > = * ptr2 ) ;
return 0 ;
}
case COMMAND_IS_INT_LVAR_GREATER_OR_EQUAL_TO_INT_LVAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
UpdateCompareFlag ( * ptr1 > = * ptr2 ) ;
return 0 ;
}
case COMMAND_IS_FLOAT_VAR_GREATER_OR_EQUAL_TO_NUMBER :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
UpdateCompareFlag ( * ( float * ) ptr > = * ( float * ) & ScriptParams [ 0 ] ) ;
return 0 ;
}
case COMMAND_IS_FLOAT_LVAR_GREATER_OR_EQUAL_TO_NUMBER :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
UpdateCompareFlag ( * ( float * ) ptr > = * ( float * ) & ScriptParams [ 0 ] ) ;
return 0 ;
}
case COMMAND_IS_NUMBER_GREATER_OR_EQUAL_TO_FLOAT_VAR :
{
CollectParameters ( & m_nIp , 1 ) ;
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
UpdateCompareFlag ( * ( float * ) & ScriptParams [ 0 ] > = * ( float * ) ptr ) ;
return 0 ;
}
case COMMAND_IS_NUMBER_GREATER_OR_EQUAL_TO_FLOAT_LVAR :
{
CollectParameters ( & m_nIp , 1 ) ;
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
UpdateCompareFlag ( * ( float * ) & ScriptParams [ 0 ] > = * ( float * ) ptr ) ;
return 0 ;
}
case COMMAND_IS_FLOAT_VAR_GREATER_OR_EQUAL_TO_FLOAT_VAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
UpdateCompareFlag ( * ( float * ) ptr1 > = * ( float * ) ptr2 ) ;
return 0 ;
}
case COMMAND_IS_FLOAT_LVAR_GREATER_OR_EQUAL_TO_FLOAT_VAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
UpdateCompareFlag ( * ( float * ) ptr1 > = * ( float * ) ptr2 ) ;
return 0 ;
}
case COMMAND_IS_FLOAT_VAR_GREATER_OR_EQUAL_TO_FLOAT_LVAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
UpdateCompareFlag ( * ( float * ) ptr1 > = * ( float * ) ptr2 ) ;
return 0 ;
}
case COMMAND_IS_FLOAT_LVAR_GREATER_OR_EQUAL_TO_FLOAT_LVAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
UpdateCompareFlag ( * ( float * ) ptr1 > = * ( float * ) ptr2 ) ;
return 0 ;
}
case COMMAND_IS_INT_VAR_EQUAL_TO_NUMBER :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
UpdateCompareFlag ( * ptr = = ScriptParams [ 0 ] ) ;
return 0 ;
}
case COMMAND_IS_INT_LVAR_EQUAL_TO_NUMBER :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
UpdateCompareFlag ( * ptr = = ScriptParams [ 0 ] ) ;
return 0 ;
}
case COMMAND_IS_INT_VAR_EQUAL_TO_INT_VAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
UpdateCompareFlag ( * ptr1 = = * ptr2 ) ;
return 0 ;
}
case COMMAND_IS_INT_VAR_EQUAL_TO_INT_LVAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
UpdateCompareFlag ( * ptr1 = = * ptr2 ) ;
return 0 ;
}
case COMMAND_IS_INT_LVAR_EQUAL_TO_INT_LVAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
UpdateCompareFlag ( * ptr1 = = * ptr2 ) ;
return 0 ;
}
2020-05-18 22:49:09 +00:00
//case COMMAND_IS_INT_VAR_NOT_EQUAL_TO_NUMBER:
//case COMMAND_IS_INT_LVAR_NOT_EQUAL_TO_NUMBER:
//case COMMAND_IS_INT_VAR_NOT_EQUAL_TO_INT_VAR:
//case COMMAND_IS_INT_LVAR_NOT_EQUAL_TO_INT_LVAR:
//case COMMAND_IS_INT_VAR_NOT_EQUAL_TO_INT_LVAR:
2019-07-09 20:38:05 +00:00
case COMMAND_IS_FLOAT_VAR_EQUAL_TO_NUMBER :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
UpdateCompareFlag ( * ( float * ) ptr = = * ( float * ) & ScriptParams [ 0 ] ) ;
return 0 ;
}
case COMMAND_IS_FLOAT_LVAR_EQUAL_TO_NUMBER :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
UpdateCompareFlag ( * ( float * ) ptr = = * ( float * ) & ScriptParams [ 0 ] ) ;
return 0 ;
}
case COMMAND_IS_FLOAT_VAR_EQUAL_TO_FLOAT_VAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
UpdateCompareFlag ( * ( float * ) ptr1 = = * ( float * ) ptr2 ) ;
return 0 ;
}
case COMMAND_IS_FLOAT_VAR_EQUAL_TO_FLOAT_LVAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
UpdateCompareFlag ( * ( float * ) ptr1 = = * ( float * ) ptr2 ) ;
return 0 ;
}
case COMMAND_IS_FLOAT_LVAR_EQUAL_TO_FLOAT_LVAR :
{
int32 * ptr1 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
int32 * ptr2 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
UpdateCompareFlag ( * ( float * ) ptr1 = = * ( float * ) ptr2 ) ;
return 0 ;
}
2020-05-18 22:49:09 +00:00
//case COMMAND_IS_FLOAT_VAR_NOT_EQUAL_TO_NUMBER:
//case COMMAND_IS_FLOAT_LVAR_NOT_EQUAL_TO_NUMBER:
//case COMMAND_IS_FLOAT_VAR_NOT_EQUAL_TO_FLOAT_VAR:
//case COMMAND_IS_FLOAT_LVAR_NOT_EQUAL_TO_FLOAT_LVAR:
//case COMMAND_IS_FLOAT_VAR_NOT_EQUAL_TO_FLOAT_LVAR:
/*
2019-07-09 20:38:05 +00:00
case COMMAND_GOTO_IF_TRUE :
CollectParameters ( & m_nIp , 1 ) ;
if ( m_bCondResult )
SetIP ( ScriptParams [ 0 ] > = 0 ? ScriptParams [ 0 ] : SIZE_MAIN_SCRIPT - ScriptParams [ 0 ] ) ;
return 0 ;
2020-05-18 22:49:09 +00:00
*/
2019-07-09 20:38:05 +00:00
case COMMAND_GOTO_IF_FALSE :
CollectParameters ( & m_nIp , 1 ) ;
if ( ! m_bCondResult )
SetIP ( ScriptParams [ 0 ] > = 0 ? ScriptParams [ 0 ] : SIZE_MAIN_SCRIPT - ScriptParams [ 0 ] ) ;
/* Check COMMAND_GOTO note. */
return 0 ;
case COMMAND_TERMINATE_THIS_SCRIPT :
if ( m_bMissionFlag )
CTheScripts : : bAlreadyRunningAMissionScript = false ;
RemoveScriptFromList ( & CTheScripts : : pActiveScripts ) ;
AddScriptToList ( & CTheScripts : : pIdleScripts ) ;
2020-05-18 22:49:09 +00:00
m_bIsActive = false ;
2020-05-26 21:25:12 +00:00
# ifdef MISSION_REPLAY
if ( m_bMissionFlag ) {
CPlayerInfo * pPlayerInfo = & CWorld : : Players [ CWorld : : PlayerInFocus ] ;
2020-11-01 09:33:16 +00:00
#if 0 // makeing autosave is pointless and is a bit buggy
2020-05-26 21:25:12 +00:00
if ( pPlayerInfo - > m_pPed - > GetPedState ( ) ! = PED_DEAD & & pPlayerInfo - > m_WBState = = WBSTATE_PLAYING & & ! m_bDeatharrestExecuted )
SaveGameForPause ( 1 ) ;
2020-11-01 09:33:16 +00:00
# endif
2020-05-26 21:25:12 +00:00
oldTargetX = oldTargetY = 0.0f ;
if ( AllowMissionReplay = = 1 )
AllowMissionReplay = 2 ;
// I am fairly sure they forgot to set return value here
}
# endif
2019-07-09 20:38:05 +00:00
return 1 ;
case COMMAND_START_NEW_SCRIPT :
{
CollectParameters ( & m_nIp , 1 ) ;
2020-06-28 08:59:20 +00:00
script_assert ( ScriptParams [ 0 ] > = 0 ) ;
2019-07-09 20:38:05 +00:00
CRunningScript * pNew = CTheScripts : : StartNewScript ( ScriptParams [ 0 ] ) ;
2020-05-18 22:49:09 +00:00
m_bIsActive = true ;
2020-03-01 14:42:47 +00:00
int8 type = CTheScripts : : Read1ByteFromScript ( & m_nIp ) ;
2019-07-09 20:38:05 +00:00
float tmp ;
2020-03-01 14:42:47 +00:00
for ( int i = 0 ; type ! = ARGUMENT_END ; type = CTheScripts : : Read1ByteFromScript ( & m_nIp ) , i + + ) {
2019-07-09 20:38:05 +00:00
switch ( type ) {
case ARGUMENT_INT32 :
2020-03-01 14:42:47 +00:00
pNew - > m_anLocalVariables [ i ] = CTheScripts : : Read4BytesFromScript ( & m_nIp ) ;
2019-07-09 20:38:05 +00:00
break ;
case ARGUMENT_GLOBALVAR :
2020-09-30 13:25:21 +00:00
pNew - > m_anLocalVariables [ i ] = * ( int32 * ) & CTheScripts : : ScriptSpace [ ( uint16 ) CTheScripts : : Read2BytesFromScript ( & m_nIp ) ] ;
2019-07-09 20:38:05 +00:00
break ;
case ARGUMENT_LOCALVAR :
2020-03-01 14:42:47 +00:00
pNew - > m_anLocalVariables [ i ] = m_anLocalVariables [ CTheScripts : : Read2BytesFromScript ( & m_nIp ) ] ;
2019-07-09 20:38:05 +00:00
break ;
case ARGUMENT_INT8 :
2020-03-01 14:42:47 +00:00
pNew - > m_anLocalVariables [ i ] = CTheScripts : : Read1ByteFromScript ( & m_nIp ) ;
2019-07-09 20:38:05 +00:00
break ;
case ARGUMENT_INT16 :
2020-03-01 14:42:47 +00:00
pNew - > m_anLocalVariables [ i ] = CTheScripts : : Read2BytesFromScript ( & m_nIp ) ;
2019-07-09 20:38:05 +00:00
break ;
case ARGUMENT_FLOAT :
2020-03-01 14:42:47 +00:00
tmp = CTheScripts : : ReadFloatFromScript ( & m_nIp ) ;
2019-07-09 20:38:05 +00:00
pNew - > m_anLocalVariables [ i ] = * ( int32 * ) & tmp ;
break ;
default :
break ;
}
}
return 0 ;
}
case COMMAND_GOSUB :
CollectParameters ( & m_nIp , 1 ) ;
2020-06-28 08:59:20 +00:00
script_assert ( m_nStackPointer < MAX_STACK_DEPTH ) ;
2019-07-09 20:38:05 +00:00
m_anStack [ m_nStackPointer + + ] = m_nIp ;
SetIP ( ScriptParams [ 0 ] > = 0 ? ScriptParams [ 0 ] : SIZE_MAIN_SCRIPT - ScriptParams [ 0 ] ) ;
return 0 ;
case COMMAND_RETURN :
2020-06-28 08:59:20 +00:00
script_assert ( m_nStackPointer > 0 ) ; /* No more SSU */
2019-07-09 20:38:05 +00:00
SetIP ( m_anStack [ - - m_nStackPointer ] ) ;
return 0 ;
case COMMAND_LINE :
CollectParameters ( & m_nIp , 6 ) ;
/* Something must have been here */
return 0 ;
case COMMAND_CREATE_PLAYER :
{
CollectParameters ( & m_nIp , 4 ) ;
int32 index = ScriptParams [ 0 ] ;
2020-08-16 15:39:11 +00:00
script_assert ( index < NUMPLAYERS ) ;
2020-02-23 10:12:44 +00:00
printf ( " &&&&&&&&&&&&&Creating player: %d \n " , index ) ;
2019-07-09 20:38:05 +00:00
if ( ! CStreaming : : HasModelLoaded ( MI_PLAYER ) ) {
CStreaming : : RequestSpecialModel ( MI_PLAYER , " player " , STREAMFLAGS_DONT_REMOVE | STREAMFLAGS_DEPENDENCY ) ;
CStreaming : : LoadAllRequestedModels ( false ) ;
}
CPlayerPed : : SetupPlayerPed ( index ) ;
CWorld : : Players [ index ] . m_pPed - > CharCreatedBy = MISSION_CHAR ;
CPlayerPed : : DeactivatePlayerPed ( index ) ;
CVector pos = * ( CVector * ) & ScriptParams [ 1 ] ;
2020-01-03 16:48:13 +00:00
if ( pos . z < = MAP_Z_LOW_LIMIT )
2019-07-09 20:38:05 +00:00
pos . z = CWorld : : FindGroundZForCoord ( pos . x , pos . y ) ;
pos . z + = CWorld : : Players [ index ] . m_pPed - > GetDistanceFromCentreOfMassToBaseOfModel ( ) ;
2020-04-30 10:48:01 +00:00
CWorld : : Players [ index ] . m_pPed - > SetPosition ( pos ) ;
2019-07-09 20:38:05 +00:00
CTheScripts : : ClearSpaceForMissionEntity ( pos , CWorld : : Players [ index ] . m_pPed ) ;
CPlayerPed : : ReactivatePlayerPed ( index ) ;
ScriptParams [ 0 ] = index ;
StoreParameters ( & m_nIp , 1 ) ;
return 0 ;
}
case COMMAND_GET_PLAYER_COORDINATES :
{
CVector pos ;
CollectParameters ( & m_nIp , 1 ) ;
if ( CWorld : : Players [ ScriptParams [ 0 ] ] . m_pPed - > bInVehicle )
pos = CWorld : : Players [ ScriptParams [ 0 ] ] . m_pPed - > m_pMyVehicle - > GetPosition ( ) ;
else
pos = CWorld : : Players [ ScriptParams [ 0 ] ] . m_pPed - > GetPosition ( ) ;
* ( CVector * ) & ScriptParams [ 0 ] = pos ;
StoreParameters ( & m_nIp , 3 ) ;
2019-07-09 21:01:02 +00:00
return 0 ;
2019-07-09 20:38:05 +00:00
}
case COMMAND_SET_PLAYER_COORDINATES :
{
CollectParameters ( & m_nIp , 4 ) ;
CVector pos = * ( CVector * ) & ScriptParams [ 1 ] ;
int index = ScriptParams [ 0 ] ;
2020-01-03 16:48:13 +00:00
if ( pos . z < = MAP_Z_LOW_LIMIT )
2019-07-09 20:38:05 +00:00
pos . z = CWorld : : FindGroundZForCoord ( pos . x , pos . y ) ;
CPlayerPed * ped = CWorld : : Players [ index ] . m_pPed ;
2020-05-18 22:49:09 +00:00
if ( ped - > bInVehicle ) {
pos . z + = ped - > m_pMyVehicle - > GetDistanceFromCentreOfMassToBaseOfModel ( ) ;
ped - > m_pMyVehicle - > Teleport ( pos ) ; // removed dumb stuff that was present here
CTheScripts : : ClearSpaceForMissionEntity ( pos , ped - > m_pMyVehicle ) ;
2019-07-09 20:38:05 +00:00
return 0 ;
}
2020-05-18 22:49:09 +00:00
pos . z + = ped - > GetDistanceFromCentreOfMassToBaseOfModel ( ) ;
CVector vOldPos = ped - > GetPosition ( ) ;
ped - > Teleport ( pos ) ;
CTheScripts : : ClearSpaceForMissionEntity ( pos , ped ) ;
if ( ped ) { // great time to check
for ( int i = 0 ; i < ped - > m_numNearPeds ; i + + ) {
CPed * pTestedPed = ped - > m_nearPeds [ i ] ;
if ( ! pTestedPed | | ! IsPedPointerValid ( pTestedPed ) )
continue ;
2020-06-22 01:02:44 +00:00
if ( pTestedPed - > m_pedInObjective = = ped & & pTestedPed - > m_objective = = OBJECTIVE_FOLLOW_CHAR_IN_FORMATION ) {
2020-05-18 22:49:09 +00:00
CVector vFollowerPos = pTestedPed - > GetFormationPosition ( ) ;
CTheScripts : : ClearSpaceForMissionEntity ( vFollowerPos , ped ) ;
bool bFound = false ;
vFollowerPos . z = CWorld : : FindGroundZFor3DCoord ( vFollowerPos . x , vFollowerPos . y , vFollowerPos . z + 1.0f , & bFound ) + 1.0f ;
if ( bFound ) {
if ( CWorld : : GetIsLineOfSightClear ( vFollowerPos , ped - > GetPosition ( ) , true , false , false , true , false , false ) ) {
pTestedPed - > Teleport ( vFollowerPos ) ;
}
}
}
else if ( pTestedPed - > m_leader = = ped ) {
CVector vFollowerPos ;
if ( pTestedPed - > m_pedFormation )
vFollowerPos = pTestedPed - > GetFormationPosition ( ) ;
else
vFollowerPos = ped - > GetPosition ( ) + pTestedPed - > GetPosition ( ) - vOldPos ;
CTheScripts : : ClearSpaceForMissionEntity ( vFollowerPos , ped ) ;
bool bFound = false ;
vFollowerPos . z = CWorld : : FindGroundZFor3DCoord ( vFollowerPos . x , vFollowerPos . y , vFollowerPos . z + 1.0f , & bFound ) + 1.0f ;
if ( bFound ) {
if ( CWorld : : GetIsLineOfSightClear ( vFollowerPos , ped - > GetPosition ( ) , true , false , false , true , false , false ) ) {
pTestedPed - > Teleport ( vFollowerPos ) ;
}
}
}
}
}
2019-07-09 20:38:05 +00:00
return 0 ;
}
case COMMAND_IS_PLAYER_IN_AREA_2D :
{
CollectParameters ( & m_nIp , 6 ) ;
CPlayerPed * ped = CWorld : : Players [ ScriptParams [ 0 ] ] . m_pPed ;
2020-01-03 16:48:13 +00:00
float x1 = * ( float * ) & ScriptParams [ 1 ] ;
float y1 = * ( float * ) & ScriptParams [ 2 ] ;
float x2 = * ( float * ) & ScriptParams [ 3 ] ;
float y2 = * ( float * ) & ScriptParams [ 4 ] ;
2019-07-09 20:38:05 +00:00
if ( ! ped - > bInVehicle )
UpdateCompareFlag ( ped - > IsWithinArea ( x1 , y1 , x2 , y2 ) ) ;
else
UpdateCompareFlag ( ped - > m_pMyVehicle - > IsWithinArea ( x1 , y1 , x2 , y2 ) ) ;
2020-07-21 02:59:31 +00:00
if ( ScriptParams [ 5 ] )
CTheScripts : : HighlightImportantArea ( ( uintptr ) this + m_nIp , x1 , y1 , x2 , y2 , MAP_Z_LOW_LIMIT ) ;
2019-07-09 20:38:05 +00:00
if ( CTheScripts : : DbgFlag )
CTheScripts : : DrawDebugSquare ( x1 , y1 , x2 , y2 ) ;
return 0 ;
}
case COMMAND_IS_PLAYER_IN_AREA_3D :
{
CollectParameters ( & m_nIp , 8 ) ;
CPlayerPed * ped = CWorld : : Players [ ScriptParams [ 0 ] ] . m_pPed ;
2020-01-03 16:48:13 +00:00
float x1 = * ( float * ) & ScriptParams [ 1 ] ;
float y1 = * ( float * ) & ScriptParams [ 2 ] ;
float z1 = * ( float * ) & ScriptParams [ 3 ] ;
float x2 = * ( float * ) & ScriptParams [ 4 ] ;
float y2 = * ( float * ) & ScriptParams [ 5 ] ;
float z2 = * ( float * ) & ScriptParams [ 6 ] ;
2019-07-09 20:38:05 +00:00
if ( ped - > bInVehicle )
UpdateCompareFlag ( ped - > m_pMyVehicle - > IsWithinArea ( x1 , y1 , z1 , x2 , y2 , z2 ) ) ;
2019-07-10 12:00:10 +00:00
else
UpdateCompareFlag ( ped - > IsWithinArea ( x1 , y1 , z1 , x2 , y2 , z2 ) ) ;
2020-07-21 02:59:31 +00:00
if ( ScriptParams [ 7 ] )
CTheScripts : : HighlightImportantArea ( ( uintptr ) this + m_nIp , x1 , y1 , x2 , y2 , ( z1 + z2 ) / 2 ) ;
2019-07-09 20:38:05 +00:00
if ( CTheScripts : : DbgFlag )
CTheScripts : : DrawDebugCube ( x1 , y1 , z1 , x2 , y2 , z2 ) ;
return 0 ;
}
case COMMAND_ADD_INT_VAR_TO_INT_VAR :
2020-05-11 02:55:57 +00:00
nScriptVar1 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* nScriptVar1 + = * GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-09 20:38:05 +00:00
return 0 ;
case COMMAND_ADD_INT_LVAR_TO_INT_VAR :
2020-05-11 02:55:57 +00:00
nScriptVar1 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* nScriptVar1 + = * GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-09 20:38:05 +00:00
return 0 ;
case COMMAND_ADD_INT_VAR_TO_INT_LVAR :
2020-05-11 02:55:57 +00:00
nScriptVar1 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* nScriptVar1 + = * GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-09 20:38:05 +00:00
return 0 ;
case COMMAND_ADD_INT_LVAR_TO_INT_LVAR :
2020-05-11 02:55:57 +00:00
nScriptVar1 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* nScriptVar1 + = * GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-09 20:38:05 +00:00
return 0 ;
case COMMAND_ADD_FLOAT_VAR_TO_FLOAT_VAR :
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* fScriptVar1 + = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-09 20:38:05 +00:00
return 0 ;
case COMMAND_ADD_FLOAT_LVAR_TO_FLOAT_VAR :
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* fScriptVar1 + = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-09 20:38:05 +00:00
return 0 ;
case COMMAND_ADD_FLOAT_VAR_TO_FLOAT_LVAR :
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* fScriptVar1 + = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-09 20:38:05 +00:00
return 0 ;
case COMMAND_ADD_FLOAT_LVAR_TO_FLOAT_LVAR :
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* fScriptVar1 + = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-09 20:38:05 +00:00
return 0 ;
case COMMAND_SUB_INT_VAR_FROM_INT_VAR :
2020-05-11 02:55:57 +00:00
nScriptVar1 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* nScriptVar1 - = * GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-09 20:38:05 +00:00
return 0 ;
case COMMAND_SUB_INT_LVAR_FROM_INT_LVAR :
2020-05-11 02:55:57 +00:00
nScriptVar1 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* nScriptVar1 - = * GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-09 20:38:05 +00:00
return 0 ;
case COMMAND_SUB_FLOAT_VAR_FROM_FLOAT_VAR :
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* fScriptVar1 - = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-09 20:38:05 +00:00
return 0 ;
case COMMAND_SUB_FLOAT_LVAR_FROM_FLOAT_LVAR :
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* fScriptVar1 - = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-09 20:38:05 +00:00
return 0 ;
default :
2020-06-28 08:59:20 +00:00
script_assert ( 0 ) ;
2019-07-09 20:38:05 +00:00
break ;
}
return - 1 ;
}
2020-01-31 17:16:13 +00:00
int8 CRunningScript : : ProcessCommands100To199 ( int32 command )
2019-07-14 09:49:03 +00:00
{
2020-05-11 02:55:57 +00:00
float * fScriptVar1 ;
int * nScriptVar1 ;
2019-07-14 09:49:03 +00:00
switch ( command ) {
case COMMAND_SUB_INT_LVAR_FROM_INT_VAR :
2020-05-11 02:55:57 +00:00
nScriptVar1 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* nScriptVar1 - = * GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
case COMMAND_SUB_INT_VAR_FROM_INT_LVAR :
2020-05-11 02:55:57 +00:00
nScriptVar1 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* nScriptVar1 - = * GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
case COMMAND_SUB_FLOAT_LVAR_FROM_FLOAT_VAR :
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* fScriptVar1 - = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
case COMMAND_SUB_FLOAT_VAR_FROM_FLOAT_LVAR :
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* fScriptVar1 - = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
case COMMAND_MULT_INT_VAR_BY_INT_VAR :
2020-05-11 02:55:57 +00:00
nScriptVar1 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* nScriptVar1 * = * GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2020-06-07 12:07:36 +00:00
case COMMAND_MULT_INT_VAR_BY_INT_LVAR :
2020-05-11 02:55:57 +00:00
nScriptVar1 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* nScriptVar1 * = * GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2020-06-07 12:07:36 +00:00
case COMMAND_MULT_INT_LVAR_BY_INT_VAR :
2020-05-11 02:55:57 +00:00
nScriptVar1 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* nScriptVar1 * = * GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
case COMMAND_MULT_INT_LVAR_BY_INT_LVAR :
2020-05-11 02:55:57 +00:00
nScriptVar1 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* nScriptVar1 * = * GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
case COMMAND_MULT_FLOAT_VAR_BY_FLOAT_VAR :
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* fScriptVar1 * = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2020-06-07 12:07:36 +00:00
case COMMAND_MULT_FLOAT_VAR_BY_FLOAT_LVAR :
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* fScriptVar1 * = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2020-06-07 12:07:36 +00:00
case COMMAND_MULT_FLOAT_LVAR_BY_FLOAT_VAR :
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* fScriptVar1 * = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
case COMMAND_MULT_FLOAT_LVAR_BY_FLOAT_LVAR :
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* fScriptVar1 * = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
case COMMAND_DIV_INT_VAR_BY_INT_VAR :
2020-05-11 02:55:57 +00:00
nScriptVar1 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* nScriptVar1 / = * GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2020-06-07 12:07:36 +00:00
case COMMAND_DIV_INT_VAR_BY_INT_LVAR :
2020-05-11 02:55:57 +00:00
nScriptVar1 = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* nScriptVar1 / = * GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2020-06-07 12:07:36 +00:00
case COMMAND_DIV_INT_LVAR_BY_INT_VAR :
2020-05-11 02:55:57 +00:00
nScriptVar1 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* nScriptVar1 / = * GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
case COMMAND_DIV_INT_LVAR_BY_INT_LVAR :
2020-05-11 02:55:57 +00:00
nScriptVar1 = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* nScriptVar1 / = * GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
case COMMAND_DIV_FLOAT_VAR_BY_FLOAT_VAR :
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* fScriptVar1 / = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2020-06-07 12:07:36 +00:00
case COMMAND_DIV_FLOAT_VAR_BY_FLOAT_LVAR :
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* fScriptVar1 / = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2020-06-07 12:07:36 +00:00
case COMMAND_DIV_FLOAT_LVAR_BY_FLOAT_VAR :
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* fScriptVar1 / = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
case COMMAND_DIV_FLOAT_LVAR_BY_FLOAT_LVAR :
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* fScriptVar1 / = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
case COMMAND_ADD_TIMED_VAL_TO_FLOAT_VAR :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ( float * ) ptr + = CTimer : : GetTimeStep ( ) * * ( float * ) & ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_ADD_TIMED_VAL_TO_FLOAT_LVAR :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ( float * ) ptr + = CTimer : : GetTimeStep ( ) * * ( float * ) & ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_ADD_TIMED_FLOAT_VAR_TO_FLOAT_VAR :
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* fScriptVar1 + = CTimer : : GetTimeStep ( ) * * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2020-06-07 12:07:36 +00:00
# ifdef FIX_BUGS
case COMMAND_ADD_TIMED_FLOAT_VAR_TO_FLOAT_LVAR :
# else
2019-07-14 09:49:03 +00:00
case COMMAND_ADD_TIMED_FLOAT_LVAR_TO_FLOAT_VAR :
2020-06-07 12:07:36 +00:00
# endif
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* fScriptVar1 + = CTimer : : GetTimeStep ( ) * * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2020-06-07 12:07:36 +00:00
# ifdef FIX_BUGS
case COMMAND_ADD_TIMED_FLOAT_LVAR_TO_FLOAT_VAR :
# else
2019-07-14 09:49:03 +00:00
case COMMAND_ADD_TIMED_FLOAT_VAR_TO_FLOAT_LVAR :
2020-06-07 12:07:36 +00:00
# endif
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* fScriptVar1 + = CTimer : : GetTimeStep ( ) * * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
case COMMAND_ADD_TIMED_FLOAT_LVAR_TO_FLOAT_LVAR :
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* fScriptVar1 + = CTimer : : GetTimeStep ( ) * * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
case COMMAND_SUB_TIMED_VAL_FROM_FLOAT_VAR :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ( float * ) ptr - = CTimer : : GetTimeStep ( ) * * ( float * ) & ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_SUB_TIMED_VAL_FROM_FLOAT_LVAR :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
CollectParameters ( & m_nIp , 1 ) ;
* ( float * ) ptr - = CTimer : : GetTimeStep ( ) * * ( float * ) & ScriptParams [ 0 ] ;
return 0 ;
}
case COMMAND_SUB_TIMED_FLOAT_VAR_FROM_FLOAT_VAR :
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* fScriptVar1 - = CTimer : : GetTimeStep ( ) * * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2020-06-07 12:07:36 +00:00
# ifdef FIX_BUGS // in SA it was fixed by reversing their order in enum
case COMMAND_SUB_TIMED_FLOAT_VAR_FROM_FLOAT_LVAR :
# else
2019-07-14 09:49:03 +00:00
case COMMAND_SUB_TIMED_FLOAT_LVAR_FROM_FLOAT_VAR :
2020-06-07 12:07:36 +00:00
# endif
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* fScriptVar1 - = CTimer : : GetTimeStep ( ) * * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2020-06-07 12:07:36 +00:00
# ifdef FIX_BUGS
case COMMAND_SUB_TIMED_FLOAT_LVAR_FROM_FLOAT_VAR :
# else
2019-07-14 09:49:03 +00:00
case COMMAND_SUB_TIMED_FLOAT_VAR_FROM_FLOAT_LVAR :
2020-06-07 12:07:36 +00:00
# endif
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* fScriptVar1 - = CTimer : : GetTimeStep ( ) * * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
case COMMAND_SUB_TIMED_FLOAT_LVAR_FROM_FLOAT_LVAR :
2020-05-11 02:55:57 +00:00
fScriptVar1 = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* fScriptVar1 - = CTimer : : GetTimeStep ( ) * * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
case COMMAND_SET_VAR_INT_TO_VAR_INT :
2019-07-14 19:59:00 +00:00
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* ptr = * GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2019-07-14 19:59:00 +00:00
}
2020-06-07 12:07:36 +00:00
case COMMAND_SET_VAR_INT_TO_LVAR_INT :
2019-07-14 19:59:00 +00:00
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* ptr = * GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2019-07-14 19:59:00 +00:00
}
2020-06-07 12:07:36 +00:00
case COMMAND_SET_LVAR_INT_TO_VAR_INT :
2019-07-14 19:59:00 +00:00
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* ptr = * GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2019-07-14 19:59:00 +00:00
}
2019-07-14 09:49:03 +00:00
case COMMAND_SET_LVAR_INT_TO_LVAR_INT :
2019-07-14 19:59:00 +00:00
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* ptr = * GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2019-07-14 19:59:00 +00:00
}
2019-07-14 09:49:03 +00:00
case COMMAND_SET_VAR_FLOAT_TO_VAR_FLOAT :
2019-07-14 19:59:00 +00:00
{
float * ptr = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* ptr = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2019-07-14 19:59:00 +00:00
}
2020-06-07 12:07:36 +00:00
case COMMAND_SET_VAR_FLOAT_TO_LVAR_FLOAT :
2019-07-14 19:59:00 +00:00
{
float * ptr = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* ptr = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2019-07-14 19:59:00 +00:00
}
2020-06-07 12:07:36 +00:00
case COMMAND_SET_LVAR_FLOAT_TO_VAR_FLOAT :
2019-07-14 19:59:00 +00:00
{
float * ptr = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* ptr = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2019-07-14 19:59:00 +00:00
}
2019-07-14 09:49:03 +00:00
case COMMAND_SET_LVAR_FLOAT_TO_LVAR_FLOAT :
2019-07-14 19:59:00 +00:00
{
float * ptr = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* ptr = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2019-07-14 19:59:00 +00:00
}
2019-07-14 09:49:03 +00:00
case COMMAND_CSET_VAR_INT_TO_VAR_FLOAT :
2019-07-14 19:59:00 +00:00
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* ptr = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2019-07-14 19:59:00 +00:00
}
2020-06-07 12:07:36 +00:00
case COMMAND_CSET_VAR_INT_TO_LVAR_FLOAT :
2019-07-14 19:59:00 +00:00
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* ptr = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2019-07-14 19:59:00 +00:00
}
2020-06-07 12:07:36 +00:00
case COMMAND_CSET_LVAR_INT_TO_VAR_FLOAT :
2019-07-14 19:59:00 +00:00
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* ptr = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2019-07-14 19:59:00 +00:00
}
2019-07-14 09:49:03 +00:00
case COMMAND_CSET_LVAR_INT_TO_LVAR_FLOAT :
2019-07-14 19:59:00 +00:00
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* ptr = * ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2019-07-14 19:59:00 +00:00
}
2019-07-14 09:49:03 +00:00
case COMMAND_CSET_VAR_FLOAT_TO_VAR_INT :
2019-07-14 19:59:00 +00:00
{
float * ptr = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* ptr = * GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2019-07-14 19:59:00 +00:00
}
2020-06-07 12:07:36 +00:00
case COMMAND_CSET_VAR_FLOAT_TO_LVAR_INT :
2019-07-14 19:59:00 +00:00
{
float * ptr = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
* ptr = * GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2019-07-14 19:59:00 +00:00
}
2020-06-07 12:07:36 +00:00
case COMMAND_CSET_LVAR_FLOAT_TO_VAR_INT :
2019-07-14 19:59:00 +00:00
{
float * ptr = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* ptr = * GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2019-07-14 19:59:00 +00:00
}
2019-07-14 09:49:03 +00:00
case COMMAND_CSET_LVAR_FLOAT_TO_LVAR_INT :
2019-07-14 19:59:00 +00:00
{
float * ptr = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
* ptr = * GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
2019-07-14 19:59:00 +00:00
}
2019-07-14 09:49:03 +00:00
case COMMAND_ABS_VAR_INT :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-15 09:21:24 +00:00
* ptr = ABS ( * ptr ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
}
case COMMAND_ABS_LVAR_INT :
{
int32 * ptr = GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-15 09:21:24 +00:00
* ptr = ABS ( * ptr ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
}
case COMMAND_ABS_VAR_FLOAT :
{
2019-07-14 12:00:36 +00:00
float * ptr = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
2019-07-15 09:21:24 +00:00
* ptr = ABS ( * ptr ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
}
case COMMAND_ABS_LVAR_FLOAT :
{
2019-07-14 12:00:36 +00:00
float * ptr = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_LOCAL ) ;
2019-07-15 09:21:24 +00:00
* ptr = ABS ( * ptr ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
}
case COMMAND_GENERATE_RANDOM_FLOAT :
{
float * ptr = ( float * ) GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) ;
CGeneral : : GetRandomNumber ( ) ;
CGeneral : : GetRandomNumber ( ) ;
CGeneral : : GetRandomNumber ( ) ; /* To make it EXTRA random! */
2019-12-31 23:35:54 +00:00
# ifdef FIX_BUGS
* ptr = CGeneral : : GetRandomNumberInRange ( 0.0f , 1.0f ) ;
# else
2019-07-14 09:49:03 +00:00
* ptr = CGeneral : : GetRandomNumber ( ) / 65536.0f ;
/* Between 0 and 0.5 on PC (oh well...), never used in original script. */
2019-12-31 23:35:54 +00:00
# endif
2019-07-14 09:49:03 +00:00
return 0 ;
}
case COMMAND_GENERATE_RANDOM_INT :
* GetPointerToScriptVariable ( & m_nIp , VAR_GLOBAL ) = CGeneral : : GetRandomNumber ( ) ;
return 0 ;
case COMMAND_CREATE_CHAR :
{
CollectParameters ( & m_nIp , 5 ) ;
switch ( ScriptParams [ 1 ] ) {
case MI_COP :
2019-07-20 13:30:11 +00:00
if ( ScriptParams [ 0 ] = = PEDTYPE_COP )
2019-07-14 09:49:03 +00:00
ScriptParams [ 1 ] = COP_STREET ;
break ;
case MI_SWAT :
2019-07-20 13:30:11 +00:00
if ( ScriptParams [ 0 ] = = PEDTYPE_COP )
2019-07-14 09:49:03 +00:00
ScriptParams [ 1 ] = COP_SWAT ;
break ;
case MI_FBI :
2019-07-20 13:30:11 +00:00
if ( ScriptParams [ 0 ] = = PEDTYPE_COP )
2019-07-14 09:49:03 +00:00
ScriptParams [ 1 ] = COP_FBI ;
break ;
case MI_ARMY :
2019-07-20 13:30:11 +00:00
if ( ScriptParams [ 0 ] = = PEDTYPE_COP )
2019-07-14 09:49:03 +00:00
ScriptParams [ 1 ] = COP_ARMY ;
break ;
case MI_MEDIC :
2019-07-20 13:30:11 +00:00
if ( ScriptParams [ 0 ] = = PEDTYPE_EMERGENCY )
2019-07-14 09:49:03 +00:00
ScriptParams [ 1 ] = PEDTYPE_EMERGENCY ;
break ;
case MI_FIREMAN :
2019-07-20 13:30:11 +00:00
if ( ScriptParams [ 0 ] = = PEDTYPE_FIREMAN )
2019-07-14 09:49:03 +00:00
ScriptParams [ 1 ] = PEDTYPE_FIREMAN ;
break ;
default :
break ;
}
CPed * ped ;
if ( ScriptParams [ 0 ] = = PEDTYPE_COP )
ped = new CCopPed ( ( eCopType ) ScriptParams [ 1 ] ) ;
else if ( ScriptParams [ 0 ] = = PEDTYPE_EMERGENCY | | ScriptParams [ 0 ] = = PEDTYPE_FIREMAN )
ped = new CEmergencyPed ( ScriptParams [ 1 ] ) ;
else
2020-02-16 02:15:58 +00:00
ped = new CCivilianPed ( ( ePedType ) ScriptParams [ 0 ] , ScriptParams [ 1 ] ) ;
2019-07-14 09:49:03 +00:00
ped - > CharCreatedBy = MISSION_CHAR ;
ped - > bRespondsToThreats = false ;
2019-12-31 23:35:54 +00:00
ped - > bAllowMedicsToReviveMe = false ;
2020-05-19 17:54:05 +00:00
ped - > bIsPlayerFriend = false ;
2019-07-14 09:49:03 +00:00
CVector pos = * ( CVector * ) & ScriptParams [ 2 ] ;
2020-01-03 16:48:13 +00:00
if ( pos . z < = MAP_Z_LOW_LIMIT )
2019-07-14 09:49:03 +00:00
pos . z = CWorld : : FindGroundZForCoord ( pos . x , pos . y ) ;
pos . z + = 1.0f ;
2020-05-05 01:45:18 +00:00
ped - > SetPosition ( pos ) ;
2019-07-14 09:49:03 +00:00
ped - > SetOrientation ( 0.0f , 0.0f , 0.0f ) ;
CTheScripts : : ClearSpaceForMissionEntity ( pos , ped ) ;
2020-05-05 18:45:43 +00:00
if ( m_bIsMissionScript )
2020-05-05 21:21:26 +00:00
ped - > bIsStaticWaitingForCollision = true ;
2019-07-14 09:49:03 +00:00
CWorld : : Add ( ped ) ;
2020-05-06 10:23:57 +00:00
ped - > m_nZoneLevel = CTheZones : : GetLevelFromPosition ( & pos ) ;
2019-07-14 09:49:03 +00:00
CPopulation : : ms_nTotalMissionPeds + + ;
ScriptParams [ 0 ] = CPools : : GetPedPool ( ) - > GetIndex ( ped ) ;
StoreParameters ( & m_nIp , 1 ) ;
if ( m_bIsMissionScript )
CTheScripts : : MissionCleanup . AddEntityToList ( ScriptParams [ 0 ] , CLEANUP_CHAR ) ;
return 0 ;
}
case COMMAND_DELETE_CHAR :
{
CollectParameters ( & m_nIp , 1 ) ;
CPed * ped = CPools : : GetPedPool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-05-19 17:54:05 +00:00
CTheScripts : : RemoveThisPed ( ped ) ;
2019-07-14 09:49:03 +00:00
if ( m_bIsMissionScript )
CTheScripts : : MissionCleanup . RemoveEntityFromList ( ScriptParams [ 0 ] , CLEANUP_CHAR ) ;
return 0 ;
}
case COMMAND_CHAR_WANDER_DIR :
{
CollectParameters ( & m_nIp , 2 ) ;
CPed * ped = CPools : : GetPedPool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( ped ) ;
2019-07-14 09:49:03 +00:00
ped - > ClearAll ( ) ;
int8 path = ScriptParams [ 1 ] ;
if ( ScriptParams [ 1 ] < 0 | | ScriptParams [ 1 ] > 7 )
2020-06-13 20:39:14 +00:00
// Max number GetRandomNumberInRange returns is max-1
# ifdef FIX_BUGS
path = CGeneral : : GetRandomNumberInRange ( 0 , 8 ) ;
# else
2019-07-14 09:49:03 +00:00
path = CGeneral : : GetRandomNumberInRange ( 0 , 7 ) ;
2020-06-13 20:39:14 +00:00
# endif
2019-07-14 09:49:03 +00:00
ped - > SetWanderPath ( path ) ;
return 0 ;
}
2020-05-19 17:54:05 +00:00
//case COMMAND_CHAR_WANDER_RANGE:
2019-07-14 09:49:03 +00:00
case COMMAND_CHAR_FOLLOW_PATH :
{
2020-05-19 17:54:05 +00:00
CollectParameters ( & m_nIp , 6 ) ;
2019-07-14 09:49:03 +00:00
CPed * ped = CPools : : GetPedPool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( ped ) ;
2020-05-19 17:54:05 +00:00
if ( ped - > GetPedState ( ) = = PED_ATTACK | | ped - > GetPedState ( ) = = PED_FIGHT | | ! ped - > IsPedInControl ( ) )
return 0 ;
2019-07-14 09:49:03 +00:00
CVector pos = * ( CVector * ) & ScriptParams [ 1 ] ;
2020-01-03 16:48:13 +00:00
if ( pos . z < = MAP_Z_LOW_LIMIT )
2019-07-14 09:49:03 +00:00
pos . z = CWorld : : FindGroundZForCoord ( pos . x , pos . y ) ;
2020-05-19 17:54:05 +00:00
float radius = * ( float * ) & ScriptParams [ 4 ] ;
eMoveState state ;
switch ( ScriptParams [ 5 ] ) {
2020-05-21 23:42:04 +00:00
case 0 : state = PEDMOVE_WALK ; break ;
2020-06-13 20:39:14 +00:00
case 1 : state = PEDMOVE_RUN ; break ;
2020-05-19 17:54:05 +00:00
default : assert ( 0 ) ;
}
2019-07-14 09:49:03 +00:00
ped - > ClearAll ( ) ;
2020-06-13 20:39:14 +00:00
ped - > m_pathNodeTimer = 0 ;
2020-05-19 17:54:05 +00:00
ped - > SetFollowPath ( pos , radius , state , nil , nil , 999999 ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
}
case COMMAND_CHAR_SET_IDLE :
{
CollectParameters ( & m_nIp , 1 ) ;
CPed * ped = CPools : : GetPedPool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( ped ) ;
2019-07-25 20:34:29 +00:00
ped - > bScriptObjectiveCompleted = false ;
2020-06-22 01:02:44 +00:00
ped - > SetObjective ( OBJECTIVE_WAIT_ON_FOOT ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
}
case COMMAND_GET_CHAR_COORDINATES :
{
CollectParameters ( & m_nIp , 1 ) ;
CPed * ped = CPools : : GetPedPool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( ped ) ;
2019-07-14 09:49:03 +00:00
CVehicle * vehicle ;
CVector pos ;
/* Seems a bit clumsy but I'll leave original flow */
if ( ped - > bInVehicle )
vehicle = ped - > m_pMyVehicle ;
else
vehicle = nil ;
if ( vehicle )
pos = vehicle - > GetPosition ( ) ;
else
pos = ped - > GetPosition ( ) ;
* ( CVector * ) & ScriptParams [ 0 ] = pos ;
StoreParameters ( & m_nIp , 3 ) ;
return 0 ;
}
case COMMAND_SET_CHAR_COORDINATES :
{
CollectParameters ( & m_nIp , 4 ) ;
CPed * ped = CPools : : GetPedPool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( ped ) ;
2019-07-14 09:49:03 +00:00
CVehicle * vehicle ;
if ( ped - > bInVehicle )
vehicle = ped - > m_pMyVehicle ;
else
vehicle = nil ;
CVector pos = * ( CVector * ) & ScriptParams [ 1 ] ;
2020-01-03 16:48:13 +00:00
if ( pos . z < = MAP_Z_LOW_LIMIT )
2019-07-14 09:49:03 +00:00
pos . z = CWorld : : FindGroundZForCoord ( pos . x , pos . y ) ;
2020-05-19 17:54:05 +00:00
// removed dumb stuff again
2019-07-14 11:49:27 +00:00
if ( ! vehicle ) {
2019-07-14 09:49:03 +00:00
pos . z + = ped - > GetDistanceFromCentreOfMassToBaseOfModel ( ) ;
ped - > Teleport ( pos ) ;
CTheScripts : : ClearSpaceForMissionEntity ( pos , ped ) ;
2020-05-19 17:54:05 +00:00
for ( int i = 0 ; i < ped - > m_numNearPeds ; i + + ) {
CPed * pNearPed = ped - > m_nearPeds [ i ] ;
if ( pNearPed - > m_leader = = ped ) {
pNearPed - > Teleport ( pos ) ;
2020-09-05 17:16:51 +00:00
pNearPed - > PositionAnyPedOutOfCollision ( ) ;
2020-05-19 17:54:05 +00:00
}
}
2019-07-14 11:49:27 +00:00
}
else {
2019-07-14 09:49:03 +00:00
pos . z + = vehicle - > GetDistanceFromCentreOfMassToBaseOfModel ( ) ;
vehicle - > Teleport ( pos ) ;
CTheScripts : : ClearSpaceForMissionEntity ( pos , vehicle ) ;
}
return 0 ;
}
2020-05-19 17:54:05 +00:00
/*
2019-07-14 09:49:03 +00:00
case COMMAND_IS_CHAR_STILL_ALIVE :
{
CollectParameters ( & m_nIp , 1 ) ;
CPed * ped = CPools : : GetPedPool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2019-07-25 20:34:29 +00:00
UpdateCompareFlag ( ped & & ped - > GetPedState ( ) ! = PED_DEAD & & ped - > GetPedState ( ) ! = PED_DIE ) ;
2019-07-14 09:49:03 +00:00
return 0 ;
}
2020-05-19 17:54:05 +00:00
*/
2019-07-14 09:49:03 +00:00
case COMMAND_IS_CHAR_IN_AREA_2D :
{
CollectParameters ( & m_nIp , 6 ) ;
CPed * ped = CPools : : GetPedPool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( ped ) ;
2019-07-14 09:49:03 +00:00
CVehicle * vehicle ;
if ( ped - > bInVehicle )
vehicle = ped - > m_pMyVehicle ;
else
vehicle = nil ;
2020-01-03 16:48:13 +00:00
float x1 = * ( float * ) & ScriptParams [ 1 ] ;
float y1 = * ( float * ) & ScriptParams [ 2 ] ;
float x2 = * ( float * ) & ScriptParams [ 3 ] ;
float y2 = * ( float * ) & ScriptParams [ 4 ] ;
2019-07-14 09:49:03 +00:00
if ( vehicle )
UpdateCompareFlag ( ped - > m_pMyVehicle - > IsWithinArea ( x1 , y1 , x2 , y2 ) ) ;
else
UpdateCompareFlag ( ped - > IsWithinArea ( x1 , y1 , x2 , y2 ) ) ;
2020-07-08 14:26:23 +00:00
if ( ScriptParams [ 5 ] )
CTheScripts : : HighlightImportantArea ( ( uintptr ) this + m_nIp , x1 , y1 , x2 , y2 , MAP_Z_LOW_LIMIT ) ;
2019-07-14 09:49:03 +00:00
if ( CTheScripts : : DbgFlag )
CTheScripts : : DrawDebugSquare ( x1 , y1 , x2 , y2 ) ;
return 0 ;
}
case COMMAND_IS_CHAR_IN_AREA_3D :
{
CollectParameters ( & m_nIp , 8 ) ;
CPed * ped = CPools : : GetPedPool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( ped ) ;
2019-07-14 09:49:03 +00:00
CVehicle * vehicle ;
if ( ped - > bInVehicle )
vehicle = ped - > m_pMyVehicle ;
else
vehicle = nil ;
2020-01-03 16:48:13 +00:00
float x1 = * ( float * ) & ScriptParams [ 1 ] ;
float y1 = * ( float * ) & ScriptParams [ 2 ] ;
float z1 = * ( float * ) & ScriptParams [ 3 ] ;
float x2 = * ( float * ) & ScriptParams [ 4 ] ;
float y2 = * ( float * ) & ScriptParams [ 5 ] ;
float z2 = * ( float * ) & ScriptParams [ 6 ] ;
2019-07-14 09:49:03 +00:00
if ( vehicle )
UpdateCompareFlag ( ped - > m_pMyVehicle - > IsWithinArea ( x1 , y1 , z1 , x2 , y2 , z2 ) ) ;
else
UpdateCompareFlag ( ped - > IsWithinArea ( x1 , y1 , z1 , x2 , y2 , z2 ) ) ;
2020-07-08 14:26:23 +00:00
if ( ScriptParams [ 7 ] )
CTheScripts : : HighlightImportantArea ( ( uintptr ) this + m_nIp , x1 , y1 , x2 , y2 , ( z1 + z2 ) / 2 ) ;
2019-07-14 09:49:03 +00:00
if ( CTheScripts : : DbgFlag )
CTheScripts : : DrawDebugCube ( x1 , y1 , z1 , x2 , y2 , z2 ) ;
return 0 ;
}
case COMMAND_CREATE_CAR :
2019-07-14 11:49:27 +00:00
{
2019-07-14 09:49:03 +00:00
CollectParameters ( & m_nIp , 4 ) ;
int32 handle ;
2019-07-14 11:49:27 +00:00
if ( CModelInfo : : IsBoatModel ( ScriptParams [ 0 ] ) ) {
2019-07-14 09:49:03 +00:00
CBoat * boat = new CBoat ( ScriptParams [ 0 ] , MISSION_VEHICLE ) ;
CVector pos = * ( CVector * ) & ScriptParams [ 1 ] ;
2020-01-03 16:48:13 +00:00
if ( pos . z < = MAP_Z_LOW_LIMIT )
2019-07-14 09:49:03 +00:00
pos . z = CWorld : : FindGroundZForCoord ( pos . x , pos . y ) ;
pos . z + = boat - > GetDistanceFromCentreOfMassToBaseOfModel ( ) ;
2020-05-05 01:45:18 +00:00
boat - > SetPosition ( pos ) ;
2019-07-14 09:49:03 +00:00
CTheScripts : : ClearSpaceForMissionEntity ( pos , boat ) ;
2020-04-30 13:45:45 +00:00
boat - > SetStatus ( STATUS_ABANDONED ) ;
2019-07-14 11:49:27 +00:00
boat - > bIsLocked = true ;
2019-07-16 17:48:50 +00:00
boat - > AutoPilot . m_nCarMission = MISSION_NONE ;
2020-05-19 17:54:05 +00:00
boat - > AutoPilot . m_nTempAction = TEMPACT_NONE ;
2019-07-16 17:48:50 +00:00
boat - > AutoPilot . m_nCruiseSpeed = boat - > AutoPilot . m_fMaxTrafficSpeed = 20.0f ;
2020-05-05 18:45:43 +00:00
if ( m_bIsMissionScript )
2020-05-05 21:21:26 +00:00
boat - > bIsStaticWaitingForCollision = true ;
2019-07-14 11:49:27 +00:00
CWorld : : Add ( boat ) ;
handle = CPools : : GetVehiclePool ( ) - > GetIndex ( boat ) ;
2019-07-14 09:49:03 +00:00
}
2019-07-14 11:49:27 +00:00
else {
CVehicle * car ;
2020-05-17 18:43:11 +00:00
2020-06-05 08:22:15 +00:00
if ( ! CModelInfo : : IsBikeModel ( ScriptParams [ 0 ] ) )
car = new CAutomobile ( ScriptParams [ 0 ] , MISSION_VEHICLE ) ;
else {
car = new CBike ( ScriptParams [ 0 ] , MISSION_VEHICLE ) ;
( ( CBike * ) ( car ) ) - > bIsStanding = true ;
}
2019-07-14 11:49:27 +00:00
CVector pos = * ( CVector * ) & ScriptParams [ 1 ] ;
2020-01-03 16:48:13 +00:00
if ( pos . z < = MAP_Z_LOW_LIMIT )
2019-07-14 11:49:27 +00:00
pos . z = CWorld : : FindGroundZForCoord ( pos . x , pos . y ) ;
pos . z + = car - > GetDistanceFromCentreOfMassToBaseOfModel ( ) ;
2020-05-05 01:45:18 +00:00
car - > SetPosition ( pos ) ;
2019-07-14 11:49:27 +00:00
CTheScripts : : ClearSpaceForMissionEntity ( pos , car ) ;
2020-04-30 13:45:45 +00:00
car - > SetStatus ( STATUS_ABANDONED ) ;
2019-07-14 11:49:27 +00:00
car - > bIsLocked = true ;
2019-07-18 10:23:50 +00:00
CCarCtrl : : JoinCarWithRoadSystem ( car ) ;
2019-07-16 17:48:50 +00:00
car - > AutoPilot . m_nCarMission = MISSION_NONE ;
2020-05-19 17:54:05 +00:00
car - > AutoPilot . m_nTempAction = TEMPACT_NONE ;
2019-07-16 17:48:50 +00:00
car - > AutoPilot . m_nDrivingStyle = DRIVINGSTYLE_STOP_FOR_CARS ;
car - > AutoPilot . m_nCruiseSpeed = car - > AutoPilot . m_fMaxTrafficSpeed = 9.0f ;
2019-08-11 17:11:54 +00:00
car - > AutoPilot . m_nCurrentLane = car - > AutoPilot . m_nNextLane = 0 ;
2019-07-14 11:49:27 +00:00
car - > bEngineOn = false ;
2020-05-06 10:23:57 +00:00
car - > m_nZoneLevel = CTheZones : : GetLevelFromPosition ( & pos ) ;
2019-07-14 11:49:27 +00:00
car - > bHasBeenOwnedByPlayer = true ;
2020-05-05 18:45:43 +00:00
if ( m_bIsMissionScript )
2020-05-05 21:21:26 +00:00
car - > bIsStaticWaitingForCollision = true ;
2019-07-14 11:49:27 +00:00
CWorld : : Add ( car ) ;
handle = CPools : : GetVehiclePool ( ) - > GetIndex ( car ) ;
}
ScriptParams [ 0 ] = handle ;
StoreParameters ( & m_nIp , 1 ) ;
if ( m_bIsMissionScript )
CTheScripts : : MissionCleanup . AddEntityToList ( handle , CLEANUP_CAR ) ;
return 0 ;
}
case COMMAND_DELETE_CAR :
{
CollectParameters ( & m_nIp , 1 ) ;
CVehicle * car = CPools : : GetVehiclePool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
if ( car ) {
CWorld : : Remove ( car ) ;
CWorld : : RemoveReferencesToDeletedObject ( car ) ;
delete car ;
}
if ( m_bIsMissionScript )
CTheScripts : : MissionCleanup . RemoveEntityFromList ( ScriptParams [ 0 ] , CLEANUP_CAR ) ;
return 0 ;
}
case COMMAND_CAR_GOTO_COORDINATES :
{
CollectParameters ( & m_nIp , 4 ) ;
CVehicle * car = CPools : : GetVehiclePool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( car ) ;
2019-07-14 11:49:27 +00:00
CVector pos = * ( CVector * ) & ScriptParams [ 1 ] ;
2020-01-03 16:48:13 +00:00
if ( pos . z < = MAP_Z_LOW_LIMIT )
2019-07-14 11:49:27 +00:00
pos . z = CWorld : : FindGroundZForCoord ( pos . x , pos . y ) ;
pos . z + = car - > GetDistanceFromCentreOfMassToBaseOfModel ( ) ;
if ( CCarCtrl : : JoinCarWithRoadSystemGotoCoors ( car , pos , false ) )
2019-07-16 17:48:50 +00:00
car - > AutoPilot . m_nCarMission = MISSION_GOTOCOORDS_STRAIGHT ;
2019-07-14 11:49:27 +00:00
else
2019-07-16 17:48:50 +00:00
car - > AutoPilot . m_nCarMission = MISSION_GOTOCOORDS ;
2020-04-30 13:45:45 +00:00
car - > SetStatus ( STATUS_PHYSICS ) ;
2019-07-14 11:49:27 +00:00
car - > bEngineOn = true ;
2020-06-07 21:59:43 +00:00
car - > AutoPilot . m_nCruiseSpeed = Max ( 1 , car - > AutoPilot . m_nCruiseSpeed ) ;
2019-10-12 19:19:54 +00:00
car - > AutoPilot . m_nAntiReverseTimer = CTimer : : GetTimeInMilliseconds ( ) ;
2019-07-14 11:49:27 +00:00
return 0 ;
}
case COMMAND_CAR_WANDER_RANDOMLY :
{
CollectParameters ( & m_nIp , 1 ) ;
CVehicle * car = CPools : : GetVehiclePool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( car ) ;
2019-07-14 11:49:27 +00:00
CCarCtrl : : JoinCarWithRoadSystem ( car ) ;
2019-07-16 17:48:50 +00:00
car - > AutoPilot . m_nCarMission = MISSION_CRUISE ;
2019-07-14 11:49:27 +00:00
car - > bEngineOn = true ;
2020-06-07 22:21:49 +00:00
car - > AutoPilot . m_nCruiseSpeed = Max ( 1 , car - > AutoPilot . m_nCruiseSpeed ) ;
2019-10-12 19:19:54 +00:00
car - > AutoPilot . m_nAntiReverseTimer = CTimer : : GetTimeInMilliseconds ( ) ;
2019-07-14 11:49:27 +00:00
return 0 ;
}
case COMMAND_CAR_SET_IDLE :
{
CollectParameters ( & m_nIp , 1 ) ;
CVehicle * car = CPools : : GetVehiclePool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( car ) ;
2019-07-16 17:48:50 +00:00
car - > AutoPilot . m_nCarMission = MISSION_NONE ;
2019-07-14 11:49:27 +00:00
return 0 ;
}
case COMMAND_GET_CAR_COORDINATES :
{
CollectParameters ( & m_nIp , 1 ) ;
CVehicle * car = CPools : : GetVehiclePool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( car ) ;
2019-07-14 11:49:27 +00:00
* ( CVector * ) & ScriptParams [ 0 ] = car - > GetPosition ( ) ;
StoreParameters ( & m_nIp , 3 ) ;
return 0 ;
}
case COMMAND_SET_CAR_COORDINATES :
{
CollectParameters ( & m_nIp , 4 ) ;
CVehicle * car = CPools : : GetVehiclePool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( car ) ;
2019-07-14 11:49:27 +00:00
CVector pos = * ( CVector * ) & ScriptParams [ 1 ] ;
2020-01-03 16:48:13 +00:00
if ( pos . z < = MAP_Z_LOW_LIMIT )
2019-07-14 11:49:27 +00:00
pos . z = CWorld : : FindGroundZForCoord ( pos . x , pos . y ) ;
pos . z + = car - > GetDistanceFromCentreOfMassToBaseOfModel ( ) ;
2020-10-18 13:40:06 +00:00
car - > SetIsStatic ( false ) ;
2019-07-14 11:49:27 +00:00
/* Again weird usage of virtual functions. */
if ( car - > IsBoat ( ) ) {
car - > Teleport ( pos ) ;
CTheScripts : : ClearSpaceForMissionEntity ( pos , car ) ;
}
else {
car - > Teleport ( pos ) ;
CTheScripts : : ClearSpaceForMissionEntity ( pos , car ) ;
/* May the following be inlined CCarCtrl function? */
2019-07-16 17:48:50 +00:00
switch ( car - > AutoPilot . m_nCarMission ) {
2019-07-14 11:49:27 +00:00
case MISSION_CRUISE :
CCarCtrl : : JoinCarWithRoadSystem ( car ) ;
break ;
case MISSION_RAMPLAYER_FARAWAY :
case MISSION_RAMPLAYER_CLOSE :
case MISSION_BLOCKPLAYER_FARAWAY :
case MISSION_BLOCKPLAYER_CLOSE :
case MISSION_BLOCKPLAYER_HANDBRAKESTOP :
CCarCtrl : : JoinCarWithRoadSystemGotoCoors ( car , FindPlayerCoors ( ) , false ) ;
break ;
case MISSION_GOTOCOORDS :
case MISSION_GOTOCOORDS_STRAIGHT :
2019-07-16 17:48:50 +00:00
CCarCtrl : : JoinCarWithRoadSystemGotoCoors ( car , car - > AutoPilot . m_vecDestinationCoors , false ) ;
2019-07-14 11:49:27 +00:00
break ;
case MISSION_GOTOCOORDS_ACCURATE :
case MISSION_GOTO_COORDS_STRAIGHT_ACCURATE :
2019-07-16 17:48:50 +00:00
CCarCtrl : : JoinCarWithRoadSystemGotoCoors ( car , car - > AutoPilot . m_vecDestinationCoors , false ) ;
2019-07-14 11:49:27 +00:00
break ;
case MISSION_RAMCAR_FARAWAY :
case MISSION_RAMCAR_CLOSE :
case MISSION_BLOCKCAR_FARAWAY :
case MISSION_BLOCKCAR_CLOSE :
case MISSION_BLOCKCAR_HANDBRAKESTOP :
2019-07-16 17:48:50 +00:00
CCarCtrl : : JoinCarWithRoadSystemGotoCoors ( car , car - > AutoPilot . m_pTargetCar - > GetPosition ( ) , false ) ;
2019-07-14 11:49:27 +00:00
break ;
default :
break ;
}
}
return 0 ;
}
2020-05-19 17:54:05 +00:00
/*
2019-07-14 11:49:27 +00:00
case COMMAND_IS_CAR_STILL_ALIVE :
{
2019-07-25 20:34:29 +00:00
CollectParameters ( & m_nIp , 1 ) ;
2019-07-14 11:49:27 +00:00
CVehicle * car = CPools : : GetVehiclePool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-04-30 13:45:45 +00:00
UpdateCompareFlag ( car & & car - > GetStatus ( ) ! = STATUS_WRECKED & & ( car - > IsBoat ( ) | | ! car - > bIsInWater ) ) ;
2019-07-14 11:49:27 +00:00
return 0 ;
}
2020-05-19 17:54:05 +00:00
*/
2019-07-14 11:49:27 +00:00
case COMMAND_SET_CAR_CRUISE_SPEED :
{
CollectParameters ( & m_nIp , 2 ) ;
CVehicle * car = CPools : : GetVehiclePool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( car ) ;
2020-05-26 21:25:12 +00:00
# if defined MISSION_REPLAY && defined SIMPLIER_MISSIONS
car - > AutoPilot . m_nCruiseSpeed = * ( float * ) & ScriptParams [ 1 ] ;
if ( missionRetryScriptIndex = = 40 & & car - > GetModelIndex ( ) = = MI_CHEETAH ) // Turismo
car - > AutoPilot . m_nCruiseSpeed = 8 * car - > AutoPilot . m_nCruiseSpeed / 10 ;
car - > AutoPilot . m_nCruiseSpeed = Min ( car - > AutoPilot . m_nCruiseSpeed , 60.0f * car - > pHandling - > Transmission . fUnkMaxVelocity ) ;
# else
2020-04-19 16:34:08 +00:00
car - > AutoPilot . m_nCruiseSpeed = Min ( * ( float * ) & ScriptParams [ 1 ] , 60.0f * car - > pHandling - > Transmission . fUnkMaxVelocity ) ;
2020-05-26 21:25:12 +00:00
# endif
2019-07-14 11:49:27 +00:00
return 0 ;
}
case COMMAND_SET_CAR_DRIVING_STYLE :
{
CollectParameters ( & m_nIp , 2 ) ;
CVehicle * car = CPools : : GetVehiclePool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( car ) ;
2020-12-07 00:59:17 +00:00
car - > AutoPilot . m_nDrivingStyle = ( uint8 ) ScriptParams [ 1 ] ;
2019-07-14 11:49:27 +00:00
return 0 ;
}
case COMMAND_SET_CAR_MISSION :
{
CollectParameters ( & m_nIp , 2 ) ;
CVehicle * car = CPools : : GetVehiclePool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( car ) ;
2020-12-07 00:59:17 +00:00
car - > AutoPilot . m_nCarMission = ( uint8 ) ScriptParams [ 1 ] ;
2019-10-12 19:19:54 +00:00
car - > AutoPilot . m_nAntiReverseTimer = CTimer : : GetTimeInMilliseconds ( ) ;
2019-07-14 11:49:27 +00:00
car - > bEngineOn = true ;
return 0 ;
}
case COMMAND_IS_CAR_IN_AREA_2D :
{
CollectParameters ( & m_nIp , 6 ) ;
CVehicle * vehicle = CPools : : GetVehiclePool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( vehicle ) ;
2020-01-03 16:48:13 +00:00
float x1 = * ( float * ) & ScriptParams [ 1 ] ;
float y1 = * ( float * ) & ScriptParams [ 2 ] ;
float x2 = * ( float * ) & ScriptParams [ 3 ] ;
float y2 = * ( float * ) & ScriptParams [ 4 ] ;
2019-07-14 11:49:27 +00:00
UpdateCompareFlag ( vehicle - > IsWithinArea ( x1 , y1 , x2 , y2 ) ) ;
2020-07-21 02:59:31 +00:00
if ( ScriptParams [ 5 ] )
CTheScripts : : HighlightImportantArea ( ( uintptr ) this + m_nIp , x1 , y1 , x2 , y2 , MAP_Z_LOW_LIMIT ) ;
2019-07-14 11:49:27 +00:00
if ( CTheScripts : : DbgFlag )
CTheScripts : : DrawDebugSquare ( x1 , y1 , x2 , y2 ) ;
return 0 ;
}
case COMMAND_IS_CAR_IN_AREA_3D :
{
CollectParameters ( & m_nIp , 8 ) ;
CVehicle * vehicle = CPools : : GetVehiclePool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( vehicle ) ;
2020-01-03 16:48:13 +00:00
float x1 = * ( float * ) & ScriptParams [ 1 ] ;
float y1 = * ( float * ) & ScriptParams [ 2 ] ;
float z1 = * ( float * ) & ScriptParams [ 3 ] ;
float x2 = * ( float * ) & ScriptParams [ 4 ] ;
float y2 = * ( float * ) & ScriptParams [ 5 ] ;
float z2 = * ( float * ) & ScriptParams [ 6 ] ;
2019-07-14 11:49:27 +00:00
UpdateCompareFlag ( vehicle - > IsWithinArea ( x1 , y1 , z1 , x2 , y2 , z2 ) ) ;
2020-07-21 02:59:31 +00:00
if ( ScriptParams [ 7 ] )
CTheScripts : : HighlightImportantArea ( ( uintptr ) this + m_nIp , x1 , y1 , x2 , y2 , ( z1 + z2 ) / 2 ) ;
2019-07-14 11:49:27 +00:00
if ( CTheScripts : : DbgFlag )
CTheScripts : : DrawDebugCube ( x1 , y1 , z1 , x2 , y2 , z2 ) ;
return 0 ;
}
case COMMAND_SPECIAL_0 :
case COMMAND_SPECIAL_1 :
case COMMAND_SPECIAL_2 :
case COMMAND_SPECIAL_3 :
case COMMAND_SPECIAL_4 :
case COMMAND_SPECIAL_5 :
case COMMAND_SPECIAL_6 :
case COMMAND_SPECIAL_7 :
2020-06-28 08:59:20 +00:00
script_assert ( 0 ) ;
2019-07-14 11:49:27 +00:00
return 0 ;
case COMMAND_PRINT_BIG :
{
2020-05-19 17:54:05 +00:00
wchar * key = CTheScripts : : GetTextByKeyFromScript ( & m_nIp ) ;
2020-05-26 21:25:12 +00:00
# ifdef MISSION_REPLAY
if ( strcmp ( ( char * ) & CTheScripts : : ScriptSpace [ m_nIp ] , " M_FAIL " ) = = 0 & & CanAllowMissionReplay ( ) )
AllowMissionReplay = 1 ;
# endif
2019-07-14 11:49:27 +00:00
CollectParameters ( & m_nIp , 2 ) ;
CMessages : : AddBigMessage ( key , ScriptParams [ 0 ] , ScriptParams [ 1 ] - 1 ) ;
return 0 ;
}
case COMMAND_PRINT :
{
2020-05-19 17:54:05 +00:00
wchar * key = CTheScripts : : GetTextByKeyFromScript ( & m_nIp ) ;
2019-07-14 11:49:27 +00:00
CollectParameters ( & m_nIp , 2 ) ;
CMessages : : AddMessage ( key , ScriptParams [ 0 ] , ScriptParams [ 1 ] ) ;
return 0 ;
}
case COMMAND_PRINT_NOW :
{
2020-05-19 17:54:05 +00:00
wchar * key = CTheScripts : : GetTextByKeyFromScript ( & m_nIp ) ;
2019-07-14 11:49:27 +00:00
CollectParameters ( & m_nIp , 2 ) ;
CMessages : : AddMessageJumpQ ( key , ScriptParams [ 0 ] , ScriptParams [ 1 ] ) ;
return 0 ;
}
2020-10-20 19:19:05 +00:00
/*
2019-07-14 11:49:27 +00:00
case COMMAND_PRINT_SOON :
{
2020-05-19 17:54:05 +00:00
wchar * key = CTheScripts : : GetTextByKeyFromScript ( & m_nIp ) ;
2019-07-14 11:49:27 +00:00
CollectParameters ( & m_nIp , 2 ) ;
2019-10-20 22:08:26 +00:00
CMessages : : AddMessageSoon ( key , ScriptParams [ 0 ] , ScriptParams [ 1 ] ) ;
2019-07-14 11:49:27 +00:00
return 0 ;
}
2020-10-20 19:19:05 +00:00
*/
2019-07-14 11:49:27 +00:00
case COMMAND_CLEAR_PRINTS :
CMessages : : ClearMessages ( ) ;
return 0 ;
case COMMAND_GET_TIME_OF_DAY :
ScriptParams [ 0 ] = CClock : : GetHours ( ) ;
ScriptParams [ 1 ] = CClock : : GetMinutes ( ) ;
StoreParameters ( & m_nIp , 2 ) ;
return 0 ;
case COMMAND_SET_TIME_OF_DAY :
CollectParameters ( & m_nIp , 2 ) ;
CClock : : SetGameClock ( ScriptParams [ 0 ] , ScriptParams [ 1 ] ) ;
return 0 ;
case COMMAND_GET_MINUTES_TO_TIME_OF_DAY :
CollectParameters ( & m_nIp , 2 ) ;
ScriptParams [ 0 ] = CClock : : GetGameClockMinutesUntil ( ScriptParams [ 0 ] , ScriptParams [ 1 ] ) ;
StoreParameters ( & m_nIp , 1 ) ;
return 0 ;
case COMMAND_IS_POINT_ON_SCREEN :
{
CollectParameters ( & m_nIp , 4 ) ;
CVector pos = * ( CVector * ) & ScriptParams [ 0 ] ;
if ( pos . z < = - 100 )
pos . z = CWorld : : FindGroundZForCoord ( pos . x , pos . y ) ;
UpdateCompareFlag ( TheCamera . IsSphereVisible ( pos , * ( float * ) & ScriptParams [ 3 ] ) ) ;
2020-04-05 23:01:03 +00:00
return 0 ;
2019-07-14 11:49:27 +00:00
}
case COMMAND_DEBUG_ON :
CTheScripts : : DbgFlag = true ;
return 0 ;
case COMMAND_DEBUG_OFF :
CTheScripts : : DbgFlag = false ;
return 0 ;
2020-05-19 17:54:05 +00:00
/*
2019-07-14 11:49:27 +00:00
case COMMAND_RETURN_TRUE :
UpdateCompareFlag ( true ) ;
return 0 ;
case COMMAND_RETURN_FALSE :
UpdateCompareFlag ( false ) ;
return 0 ;
2019-07-25 20:34:29 +00:00
*/
2020-05-19 17:54:05 +00:00
//case COMMAND_VAR_INT:
2019-07-14 11:49:27 +00:00
default :
2020-06-28 08:59:20 +00:00
script_assert ( 0 ) ;
2019-07-14 11:49:27 +00:00
break ;
2019-07-14 09:49:03 +00:00
}
return - 1 ;
}
2020-01-31 17:16:13 +00:00
int8 CRunningScript : : ProcessCommands200To299 ( int32 command )
2020-05-11 02:55:57 +00:00
{
2019-07-25 20:34:29 +00:00
switch ( command ) {
2020-05-11 02:55:57 +00:00
/* Special commands.
2019-07-25 20:34:29 +00:00
case COMMAND_VAR_FLOAT :
case COMMAND_LVAR_INT :
case COMMAND_LVAR_FLOAT :
case COMMAND_LBRACKET :
case COMMAND_RBRACKET :
case COMMAND_REPEAT :
case COMMAND_ENDREPEAT :
case COMMAND_IF :
case COMMAND_IFNOT :
case COMMAND_ELSE :
case COMMAND_ENDIF :
case COMMAND_WHILE :
case COMMAND_WHILENOT :
case COMMAND_ENDWHILE :
*/
case COMMAND_ANDOR :
CollectParameters ( & m_nIp , 1 ) ;
m_nAndOrState = ScriptParams [ 0 ] ;
if ( m_nAndOrState = = ANDOR_NONE ) {
m_bCondResult = false ; // pointless
} else if ( m_nAndOrState > = ANDS_1 & & m_nAndOrState < = ANDS_8 ) {
m_bCondResult = true ;
m_nAndOrState + + ;
} else if ( m_nAndOrState > = ORS_1 & & m_nAndOrState < = ORS_8 ) {
m_bCondResult = false ;
m_nAndOrState + + ;
} else {
2020-06-28 08:59:20 +00:00
script_assert ( 0 & & " COMMAND_ANDOR: invalid ANDOR state " ) ;
2019-07-25 20:34:29 +00:00
}
return 0 ;
case COMMAND_LAUNCH_MISSION :
{
CollectParameters ( & m_nIp , 1 ) ;
CRunningScript * pNew = CTheScripts : : StartNewScript ( ScriptParams [ 0 ] ) ;
pNew - > m_bIsMissionScript = true ;
return 0 ;
}
case COMMAND_MISSION_HAS_FINISHED :
{
if ( ! m_bIsMissionScript )
return 0 ;
CTheScripts : : MissionCleanup . Process ( ) ;
return 0 ;
}
case COMMAND_STORE_CAR_CHAR_IS_IN :
{
CollectParameters ( & m_nIp , 1 ) ;
CPed * ped = CPools : : GetPedPool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( ped ) ;
2019-07-25 20:34:29 +00:00
CVehicle * pCurrent = nil ;
if ( ped - > bInVehicle ) {
pCurrent = ped - > m_pMyVehicle ;
}
2020-06-28 08:59:20 +00:00
script_assert ( pCurrent ) ; // GetIndex(0) doesn't look good
2019-07-25 20:34:29 +00:00
int handle = CPools : : GetVehiclePool ( ) - > GetIndex ( pCurrent ) ;
if ( handle ! = CTheScripts : : StoreVehicleIndex & & m_bIsMissionScript ) {
2020-04-23 22:40:12 +00:00
CVehicle * pOld = CPools : : GetVehiclePool ( ) - > GetAt ( CTheScripts : : StoreVehicleIndex ) ;
if ( pOld ) {
CCarCtrl : : RemoveFromInterestingVehicleList ( pOld ) ;
if ( pOld - > VehicleCreatedBy = = MISSION_VEHICLE & & CTheScripts : : StoreVehicleWasRandom ) {
pOld - > VehicleCreatedBy = RANDOM_VEHICLE ;
pOld - > bIsLocked = false ;
CCarCtrl : : NumRandomCars + + ;
CCarCtrl : : NumMissionCars - - ;
CTheScripts : : MissionCleanup . RemoveEntityFromList ( CTheScripts : : StoreVehicleIndex , CLEANUP_CAR ) ;
2019-07-25 20:34:29 +00:00
}
}
2019-11-19 22:15:45 +00:00
2019-07-25 20:34:29 +00:00
CTheScripts : : StoreVehicleIndex = handle ;
switch ( pCurrent - > VehicleCreatedBy ) {
case RANDOM_VEHICLE :
pCurrent - > VehicleCreatedBy = MISSION_VEHICLE ;
CCarCtrl : : NumMissionCars + + ;
CCarCtrl : : NumRandomCars - - ;
CTheScripts : : StoreVehicleWasRandom = true ;
CTheScripts : : MissionCleanup . AddEntityToList ( CTheScripts : : StoreVehicleIndex , CLEANUP_CAR ) ;
break ;
case PARKED_VEHICLE :
pCurrent - > VehicleCreatedBy = MISSION_VEHICLE ;
CCarCtrl : : NumMissionCars + + ;
CCarCtrl : : NumParkedCars - - ;
CTheScripts : : StoreVehicleWasRandom = true ;
CTheScripts : : MissionCleanup . AddEntityToList ( CTheScripts : : StoreVehicleIndex , CLEANUP_CAR ) ;
break ;
case MISSION_VEHICLE :
case PERMANENT_VEHICLE :
CTheScripts : : StoreVehicleWasRandom = false ;
break ;
default :
break ;
}
}
ScriptParams [ 0 ] = CTheScripts : : StoreVehicleIndex ;
StoreParameters ( & m_nIp , 1 ) ;
return 0 ;
}
case COMMAND_STORE_CAR_PLAYER_IS_IN :
{
CollectParameters ( & m_nIp , 1 ) ;
CPed * ped = CWorld : : Players [ ScriptParams [ 0 ] ] . m_pPed ;
2020-06-28 08:59:20 +00:00
script_assert ( ped ) ;
2019-07-25 20:34:29 +00:00
if ( ! ped - > bInVehicle )
return 0 ; // No value written to output variable
CVehicle * pCurrent = ped - > m_pMyVehicle ;
2020-06-28 08:59:20 +00:00
script_assert ( pCurrent ) ; // Here pCurrent shouldn't be NULL anyway
2019-07-25 20:34:29 +00:00
int handle = CPools : : GetVehiclePool ( ) - > GetIndex ( pCurrent ) ;
if ( handle ! = CTheScripts : : StoreVehicleIndex & & m_bIsMissionScript ) {
2020-04-23 22:40:12 +00:00
CVehicle * pOld = CPools : : GetVehiclePool ( ) - > GetAt ( CTheScripts : : StoreVehicleIndex ) ;
if ( pOld ) {
CCarCtrl : : RemoveFromInterestingVehicleList ( pOld ) ;
if ( pOld - > VehicleCreatedBy = = MISSION_VEHICLE & & CTheScripts : : StoreVehicleWasRandom ) {
pOld - > VehicleCreatedBy = RANDOM_VEHICLE ;
pOld - > bIsLocked = false ;
CCarCtrl : : NumRandomCars + + ;
CCarCtrl : : NumMissionCars - - ;
CTheScripts : : MissionCleanup . RemoveEntityFromList ( CTheScripts : : StoreVehicleIndex , CLEANUP_CAR ) ;
2019-07-25 20:34:29 +00:00
}
}
2019-11-19 22:15:45 +00:00
2019-07-25 20:34:29 +00:00
CTheScripts : : StoreVehicleIndex = handle ;
switch ( pCurrent - > VehicleCreatedBy ) {
case RANDOM_VEHICLE :
pCurrent - > VehicleCreatedBy = MISSION_VEHICLE ;
CCarCtrl : : NumMissionCars + + ;
CCarCtrl : : NumRandomCars - - ;
CTheScripts : : StoreVehicleWasRandom = true ;
CTheScripts : : MissionCleanup . AddEntityToList ( CTheScripts : : StoreVehicleIndex , CLEANUP_CAR ) ;
break ;
case PARKED_VEHICLE :
pCurrent - > VehicleCreatedBy = MISSION_VEHICLE ;
CCarCtrl : : NumMissionCars + + ;
CCarCtrl : : NumParkedCars - - ;
CTheScripts : : StoreVehicleWasRandom = true ;
CTheScripts : : MissionCleanup . AddEntityToList ( CTheScripts : : StoreVehicleIndex , CLEANUP_CAR ) ;
break ;
case MISSION_VEHICLE :
case PERMANENT_VEHICLE :
CTheScripts : : StoreVehicleWasRandom = false ;
break ;
default :
break ;
}
}
ScriptParams [ 0 ] = CTheScripts : : StoreVehicleIndex ;
StoreParameters ( & m_nIp , 1 ) ;
return 0 ;
}
case COMMAND_IS_CHAR_IN_CAR :
{
CollectParameters ( & m_nIp , 2 ) ;
CPed * pPed = CPools : : GetPedPool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
CVehicle * pCheckedVehicle = CPools : : GetVehiclePool ( ) - > GetAt ( ScriptParams [ 1 ] ) ;
CVehicle * pActualVehicle = pPed - > bInVehicle ? pPed - > m_pMyVehicle : nil ;
UpdateCompareFlag ( pActualVehicle & & pActualVehicle = = pCheckedVehicle ) ;
return 0 ;
}
case COMMAND_IS_PLAYER_IN_CAR :
{
CollectParameters ( & m_nIp , 2 ) ;
CVehicle * pCheckedVehicle = CPools : : GetVehiclePool ( ) - > GetAt ( ScriptParams [ 1 ] ) ;
CPed * pPed = CWorld : : Players [ ScriptParams [ 0 ] ] . m_pPed ;
UpdateCompareFlag ( pPed - > bInVehicle & & pPed - > m_pMyVehicle = = pCheckedVehicle ) ;
return 0 ;
}
case COMMAND_IS_CHAR_IN_MODEL :
{
CollectParameters ( & m_nIp , 2 ) ;
CPed * pPed = CPools : : GetPedPool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
CVehicle * pActualVehicle = pPed - > bInVehicle ? pPed - > m_pMyVehicle : nil ;
UpdateCompareFlag ( pActualVehicle & & pActualVehicle - > GetModelIndex ( ) = = ScriptParams [ 1 ] ) ;
return 0 ;
}
case COMMAND_IS_PLAYER_IN_MODEL :
{
CollectParameters ( & m_nIp , 2 ) ;
CPed * pPed = CWorld : : Players [ ScriptParams [ 0 ] ] . m_pPed ;
UpdateCompareFlag ( pPed - > bInVehicle & & pPed - > m_pMyVehicle - > GetModelIndex ( ) = = ScriptParams [ 1 ] ) ;
return 0 ;
}
case COMMAND_IS_CHAR_IN_ANY_CAR :
{
CollectParameters ( & m_nIp , 1 ) ;
CPed * pPed = CPools : : GetPedPool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-05-19 17:54:05 +00:00
UpdateCompareFlag ( pPed - > bInVehicle & & pPed - > m_pMyVehicle ) ;
2019-07-25 20:34:29 +00:00
return 0 ;
}
case COMMAND_IS_PLAYER_IN_ANY_CAR :
{
CollectParameters ( & m_nIp , 1 ) ;
CPed * pPed = CWorld : : Players [ ScriptParams [ 0 ] ] . m_pPed ;
2020-05-19 17:54:05 +00:00
UpdateCompareFlag ( pPed - > bInVehicle & & pPed - > m_pMyVehicle ) ;
2019-07-25 20:34:29 +00:00
return 0 ;
}
case COMMAND_IS_BUTTON_PRESSED :
{
CollectParameters ( & m_nIp , 2 ) ;
2020-05-19 17:54:05 +00:00
UpdateCompareFlag ( GetPadState ( ScriptParams [ 0 ] , ScriptParams [ 1 ] ) ! = 0 ) ;
2019-07-25 20:34:29 +00:00
return 0 ;
}
2020-05-19 17:54:05 +00:00
/*
2019-07-25 20:34:29 +00:00
case COMMAND_GET_PAD_STATE :
{
CollectParameters ( & m_nIp , 1 ) ;
ScriptParams [ 0 ] = GetPadState ( ScriptParams [ 0 ] , ScriptParams [ 1 ] ) ;
StoreParameters ( & m_nIp , 1 ) ;
return 0 ;
}
2020-05-19 17:54:05 +00:00
*/
2019-07-25 20:34:29 +00:00
case COMMAND_LOCATE_PLAYER_ANY_MEANS_2D :
case COMMAND_LOCATE_PLAYER_ON_FOOT_2D :
case COMMAND_LOCATE_PLAYER_IN_CAR_2D :
case COMMAND_LOCATE_STOPPED_PLAYER_ANY_MEANS_2D :
case COMMAND_LOCATE_STOPPED_PLAYER_ON_FOOT_2D :
case COMMAND_LOCATE_STOPPED_PLAYER_IN_CAR_2D :
LocatePlayerCommand ( command , & m_nIp ) ;
return 0 ;
case COMMAND_LOCATE_PLAYER_ANY_MEANS_CHAR_2D :
case COMMAND_LOCATE_PLAYER_ON_FOOT_CHAR_2D :
case COMMAND_LOCATE_PLAYER_IN_CAR_CHAR_2D :
LocatePlayerCharCommand ( command , & m_nIp ) ;
return 0 ;
case COMMAND_LOCATE_CHAR_ANY_MEANS_2D :
case COMMAND_LOCATE_CHAR_ON_FOOT_2D :
case COMMAND_LOCATE_CHAR_IN_CAR_2D :
case COMMAND_LOCATE_STOPPED_CHAR_ANY_MEANS_2D :
case COMMAND_LOCATE_STOPPED_CHAR_ON_FOOT_2D :
case COMMAND_LOCATE_STOPPED_CHAR_IN_CAR_2D :
LocateCharCommand ( command , & m_nIp ) ;
return 0 ;
case COMMAND_LOCATE_CHAR_ANY_MEANS_CHAR_2D :
case COMMAND_LOCATE_CHAR_ON_FOOT_CHAR_2D :
case COMMAND_LOCATE_CHAR_IN_CAR_CHAR_2D :
LocateCharCharCommand ( command , & m_nIp ) ;
return 0 ;
case COMMAND_LOCATE_PLAYER_ANY_MEANS_3D :
case COMMAND_LOCATE_PLAYER_ON_FOOT_3D :
case COMMAND_LOCATE_PLAYER_IN_CAR_3D :
case COMMAND_LOCATE_STOPPED_PLAYER_ANY_MEANS_3D :
case COMMAND_LOCATE_STOPPED_PLAYER_ON_FOOT_3D :
case COMMAND_LOCATE_STOPPED_PLAYER_IN_CAR_3D :
LocatePlayerCommand ( command , & m_nIp ) ;
return 0 ;
case COMMAND_LOCATE_PLAYER_ANY_MEANS_CHAR_3D :
case COMMAND_LOCATE_PLAYER_ON_FOOT_CHAR_3D :
case COMMAND_LOCATE_PLAYER_IN_CAR_CHAR_3D :
LocatePlayerCharCommand ( command , & m_nIp ) ;
return 0 ;
case COMMAND_LOCATE_CHAR_ANY_MEANS_3D :
case COMMAND_LOCATE_CHAR_ON_FOOT_3D :
case COMMAND_LOCATE_CHAR_IN_CAR_3D :
case COMMAND_LOCATE_STOPPED_CHAR_ANY_MEANS_3D :
case COMMAND_LOCATE_STOPPED_CHAR_ON_FOOT_3D :
case COMMAND_LOCATE_STOPPED_CHAR_IN_CAR_3D :
LocateCharCommand ( command , & m_nIp ) ;
return 0 ;
case COMMAND_LOCATE_CHAR_ANY_MEANS_CHAR_3D :
case COMMAND_LOCATE_CHAR_ON_FOOT_CHAR_3D :
case COMMAND_LOCATE_CHAR_IN_CAR_CHAR_3D :
LocateCharCharCommand ( command , & m_nIp ) ;
return 0 ;
case COMMAND_CREATE_OBJECT :
{
CollectParameters ( & m_nIp , 4 ) ;
int mi = ScriptParams [ 0 ] > = 0 ? ScriptParams [ 0 ] : CTheScripts : : UsedObjectArray [ - ScriptParams [ 0 ] ] . index ;
2020-01-01 20:55:01 +00:00
CObject * pObj = new CObject ( mi , false ) ;
2019-07-25 20:34:29 +00:00
pObj - > ObjectCreatedBy = MISSION_OBJECT ;
CVector pos = * ( CVector * ) & ScriptParams [ 1 ] ;
2020-01-03 16:48:13 +00:00
if ( pos . z < = MAP_Z_LOW_LIMIT )
2019-07-25 20:34:29 +00:00
pos . z = CWorld : : FindGroundZForCoord ( pos . x , pos . y ) ;
pos . z + = pObj - > GetDistanceFromCentreOfMassToBaseOfModel ( ) ;
2020-05-05 01:45:18 +00:00
pObj - > SetPosition ( pos ) ;
2019-07-25 20:34:29 +00:00
pObj - > SetOrientation ( 0.0f , 0.0f , 0.0f ) ;
pObj - > GetMatrix ( ) . UpdateRW ( ) ;
pObj - > UpdateRwFrame ( ) ;
2020-05-19 17:54:05 +00:00
CBaseModelInfo * pModelInfo = CModelInfo : : GetModelInfo ( mi ) ;
if ( pModelInfo - > IsBuilding ( ) & & ( ( CSimpleModelInfo * ) pModelInfo ) - > m_isBigBuilding )
pObj - > SetupBigBuilding ( ) ;
2019-07-25 20:34:29 +00:00
CTheScripts : : ClearSpaceForMissionEntity ( pos , pObj ) ;
CWorld : : Add ( pObj ) ;
ScriptParams [ 0 ] = CPools : : GetObjectPool ( ) - > GetIndex ( pObj ) ;
StoreParameters ( & m_nIp , 1 ) ;
if ( m_bIsMissionScript )
CTheScripts : : MissionCleanup . AddEntityToList ( ScriptParams [ 0 ] , CLEANUP_OBJECT ) ;
return 0 ;
}
case COMMAND_DELETE_OBJECT :
{
CollectParameters ( & m_nIp , 1 ) ;
CObject * pObj = CPools : : GetObjectPool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
if ( pObj ) {
CWorld : : Remove ( pObj ) ;
CWorld : : RemoveReferencesToDeletedObject ( pObj ) ;
delete pObj ;
}
if ( m_bIsMissionScript )
CTheScripts : : MissionCleanup . RemoveEntityFromList ( ScriptParams [ 0 ] , CLEANUP_OBJECT ) ;
return 0 ;
}
case COMMAND_ADD_SCORE :
CollectParameters ( & m_nIp , 2 ) ;
CWorld : : Players [ ScriptParams [ 0 ] ] . m_nMoney + = ScriptParams [ 1 ] ;
2020-05-19 17:54:05 +00:00
if ( CWorld : : Players [ ScriptParams [ 0 ] ] . m_nMoney < 0 )
CWorld : : Players [ ScriptParams [ 0 ] ] . m_nMoney = 0 ;
2019-07-25 20:34:29 +00:00
return 0 ;
case COMMAND_IS_SCORE_GREATER :
CollectParameters ( & m_nIp , 2 ) ;
UpdateCompareFlag ( CWorld : : Players [ ScriptParams [ 0 ] ] . m_nMoney > ScriptParams [ 1 ] ) ;
return 0 ;
case COMMAND_STORE_SCORE :
CollectParameters ( & m_nIp , 1 ) ;
ScriptParams [ 0 ] = CWorld : : Players [ ScriptParams [ 0 ] ] . m_nMoney ;
StoreParameters ( & m_nIp , 1 ) ;
return 0 ;
case COMMAND_GIVE_REMOTE_CONTROLLED_CAR_TO_PLAYER :
{
CollectParameters ( & m_nIp , 5 ) ;
CVector pos = * ( CVector * ) & ScriptParams [ 1 ] ;
2020-01-03 16:48:13 +00:00
if ( pos . z < = MAP_Z_LOW_LIMIT )
2019-07-25 20:34:29 +00:00
pos . z = CWorld : : FindGroundZForCoord ( pos . x , pos . y ) ;
2019-07-26 07:44:56 +00:00
CRemote : : GivePlayerRemoteControlledCar ( pos . x , pos . y , pos . z , DEGTORAD ( * ( float * ) & ScriptParams [ 4 ] ) , MI_RCBANDIT ) ;
2019-07-25 20:34:29 +00:00
return 0 ;
}
case COMMAND_ALTER_WANTED_LEVEL :
CollectParameters ( & m_nIp , 2 ) ;
CWorld : : Players [ ScriptParams [ 0 ] ] . m_pPed - > SetWantedLevel ( ScriptParams [ 1 ] ) ;
return 0 ;
case COMMAND_ALTER_WANTED_LEVEL_NO_DROP :
CollectParameters ( & m_nIp , 2 ) ;
CWorld : : Players [ ScriptParams [ 0 ] ] . m_pPed - > SetWantedLevelNoDrop ( ScriptParams [ 1 ] ) ;
return 0 ;
case COMMAND_IS_WANTED_LEVEL_GREATER :
CollectParameters ( & m_nIp , 2 ) ;
UpdateCompareFlag ( CWorld : : Players [ ScriptParams [ 0 ] ] . m_pPed - > m_pWanted - > m_nWantedLevel > ScriptParams [ 1 ] ) ;
return 0 ;
case COMMAND_CLEAR_WANTED_LEVEL :
CollectParameters ( & m_nIp , 1 ) ;
CWorld : : Players [ ScriptParams [ 0 ] ] . m_pPed - > SetWantedLevel ( 0 ) ;
return 0 ;
case COMMAND_SET_DEATHARREST_STATE :
CollectParameters ( & m_nIp , 1 ) ;
m_bDeatharrestEnabled = ( ScriptParams [ 0 ] = = 1 ) ;
return 0 ;
case COMMAND_HAS_DEATHARREST_BEEN_EXECUTED :
UpdateCompareFlag ( m_bDeatharrestExecuted ) ;
return 0 ;
2020-05-19 17:54:05 +00:00
/*
2019-07-25 20:34:29 +00:00
case COMMAND_ADD_AMMO_TO_PLAYER :
{
CollectParameters ( & m_nIp , 3 ) ;
CWorld : : Players [ ScriptParams [ 0 ] ] . m_pPed - > GrantAmmo ( ( eWeaponType ) ScriptParams [ 1 ] , ScriptParams [ 2 ] ) ;
return 0 ;
}
2020-05-19 17:54:05 +00:00
*/
2019-07-25 20:34:29 +00:00
case COMMAND_ADD_AMMO_TO_CHAR :
{
CollectParameters ( & m_nIp , 3 ) ;
CPed * pPed = CPools : : GetPedPool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( pPed ) ;
2019-07-25 20:34:29 +00:00
pPed - > GrantAmmo ( ( eWeaponType ) ScriptParams [ 1 ] , ScriptParams [ 2 ] ) ;
return 0 ;
}
2020-05-19 17:54:05 +00:00
//case COMMAND_ADD_AMMO_TO_CAR:
//case COMMAND_IS_PLAYER_STILL_ALIVE:
2019-07-25 20:34:29 +00:00
case COMMAND_IS_PLAYER_DEAD :
CollectParameters ( & m_nIp , 1 ) ;
UpdateCompareFlag ( CWorld : : Players [ ScriptParams [ 0 ] ] . m_WBState = = WBSTATE_WASTED ) ;
return 0 ;
case COMMAND_IS_CHAR_DEAD :
{
CollectParameters ( & m_nIp , 1 ) ;
CPed * pPed = CPools : : GetPedPool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-05-19 17:54:05 +00:00
UpdateCompareFlag ( ! pPed | | pPed - > DyingOrDead ( ) ) ;
2019-07-25 20:34:29 +00:00
return 0 ;
}
case COMMAND_IS_CAR_DEAD :
{
CollectParameters ( & m_nIp , 1 ) ;
CVehicle * pVehicle = CPools : : GetVehiclePool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-05-19 17:54:05 +00:00
UpdateCompareFlag ( ! pVehicle | | pVehicle - > GetStatus ( ) = = STATUS_WRECKED | | pVehicle - > bIsDrowning ) ;
2019-07-25 20:34:29 +00:00
return 0 ;
}
case COMMAND_SET_CHAR_THREAT_SEARCH :
{
CollectParameters ( & m_nIp , 2 ) ;
CPed * pPed = CPools : : GetPedPool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( pPed ) ;
2019-07-25 20:34:29 +00:00
pPed - > m_fearFlags | = ScriptParams [ 1 ] ;
return 0 ;
}
2020-05-19 17:54:05 +00:00
//case COMMAND_SET_CHAR_THREAT_REACTION:
2019-07-25 20:34:29 +00:00
case COMMAND_SET_CHAR_OBJ_NO_OBJ :
{
CollectParameters ( & m_nIp , 1 ) ;
CPed * pPed = CPools : : GetPedPool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( pPed ) ;
2019-07-25 20:34:29 +00:00
pPed - > bScriptObjectiveCompleted = false ;
pPed - > ClearObjective ( ) ;
return 0 ;
}
2020-05-19 17:54:05 +00:00
//case COMMAND_ORDER_DRIVER_OUT_OF_CAR:
//case COMMAND_ORDER_CHAR_TO_DRIVE_CAR:
//case COMMAND_ADD_PATROL_POINT:
//case COMMAND_IS_PLAYER_IN_GANGZONE:
2019-07-25 20:34:29 +00:00
case COMMAND_IS_PLAYER_IN_ZONE :
{
CollectParameters ( & m_nIp , 1 ) ;
CPlayerInfo * pPlayer = & CWorld : : Players [ ScriptParams [ 0 ] ] ;
char label [ 12 ] ;
2020-03-01 14:42:47 +00:00
CTheScripts : : ReadTextLabelFromScript ( & m_nIp , label ) ;
2020-05-06 10:23:57 +00:00
int zoneToCheck = CTheZones : : FindZoneByLabelAndReturnIndex ( label , ZONE_DEFAULT ) ;
2019-07-25 20:34:29 +00:00
if ( zoneToCheck ! = - 1 )
2020-02-16 09:44:33 +00:00
m_nIp + = KEY_LENGTH_IN_SCRIPT ; /* why only if zone != 1? */
2019-07-25 20:34:29 +00:00
CVector pos = pPlayer - > GetPos ( ) ;
2020-05-06 10:23:57 +00:00
CZone * pZone = CTheZones : : GetNavigationZone ( zoneToCheck ) ;
UpdateCompareFlag ( CTheZones : : PointLiesWithinZone ( & pos , pZone ) ) ;
2019-07-25 20:34:29 +00:00
return 0 ;
}
case COMMAND_IS_PLAYER_PRESSING_HORN :
CollectParameters ( & m_nIp , 1 ) ;
UpdateCompareFlag ( CWorld : : Players [ ScriptParams [ 0 ] ] . m_pPed - > GetPedState ( ) = = PED_DRIVING & &
CPad : : GetPad ( ScriptParams [ 0 ] ) - > GetHorn ( ) ) ;
return 0 ;
case COMMAND_HAS_CHAR_SPOTTED_PLAYER :
{
CollectParameters ( & m_nIp , 2 ) ;
CPed * pPed = CPools : : GetPedPool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( pPed ) ;
2019-07-25 20:34:29 +00:00
UpdateCompareFlag ( pPed - > OurPedCanSeeThisOne ( CWorld : : Players [ ScriptParams [ 1 ] ] . m_pPed ) ) ;
return 0 ;
}
2020-05-19 17:54:05 +00:00
//case COMMAND_ORDER_CHAR_TO_BACKDOOR:
//case COMMAND_ADD_CHAR_TO_GANG:
2019-07-25 20:34:29 +00:00
case COMMAND_IS_CHAR_OBJECTIVE_PASSED :
{
CollectParameters ( & m_nIp , 1 ) ;
CPed * pPed = CPools : : GetPedPool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( pPed ) ;
2019-07-25 20:34:29 +00:00
UpdateCompareFlag ( pPed - > bScriptObjectiveCompleted ) ;
return 0 ;
}
2020-05-11 02:55:57 +00:00
/* Not implemented.
2019-07-25 20:34:29 +00:00
case COMMAND_SET_CHAR_DRIVE_AGGRESSION :
case COMMAND_SET_CHAR_MAX_DRIVESPEED :
*/
case COMMAND_CREATE_CHAR_INSIDE_CAR :
{
CollectParameters ( & m_nIp , 3 ) ;
CVehicle * pVehicle = CPools : : GetVehiclePool ( ) - > GetAt ( ScriptParams [ 0 ] ) ;
2020-06-28 08:59:20 +00:00
script_assert ( pVehicle ) ;
2019-07-25 20:34:29 +00:00
switch ( ScriptParams [ 2 ] ) {
case MI_COP :
if ( ScriptParams [ 1 ] = = PEDTYPE_COP )
ScriptParams [ 2 ] = COP_STREET ;
break ;
case MI_SWAT :
if ( ScriptParams [ 1 ] = = PEDTYPE_COP )
ScriptParams [ 2 ] = COP_SWAT ;
break ;
case MI_FBI :
if ( ScriptParams [ 1 ] = = PEDTYPE_COP )
ScriptParams [ 2 ] = COP_FBI ;
break ;
case MI_ARMY :
if ( ScriptParams [ 1 ] = = PEDTYPE_COP )
ScriptParams [ 2 ] = COP_ARMY ;
break ;
case MI_MEDIC :
if ( ScriptParams [ 1 ] = = PEDTYPE_EMERGENCY )
ScriptParams [ 2 ] = PEDTYPE_EMERGENCY ;
break ;
case MI_FIREMAN :
if ( ScriptParams [ 1 ] = = PEDTYPE_FIREMAN )
ScriptParams [ 2 ] = PEDTYPE_FIREMAN ;
break ;
default :
break ;
}
CPed * pPed ;
if ( ScriptParams [ 1 ] = = PEDTYPE_COP )
pPed = new CCopPed ( ( eCopType ) ScriptParams [ 2 ] ) ;
else if ( ScriptParams [ 1 ] = = PEDTYPE_EMERGENCY | | ScriptParams [ 1 ] = = PEDTYPE_FIREMAN )
pPed = new CEmergencyPed ( ScriptParams [ 2 ] ) ;
else
2020-02-16 02:15:58 +00:00
pPed = new CCivilianPed ( ( ePedType ) ScriptParams [ 1 ] , ScriptParams [ 2 ] ) ;
2019-07-25 20:34:29 +00:00
pPed - > CharCreatedBy = MISSION_CHAR ;
pPed - > bRespondsToThreats = false ;
2019-12-31 23:35:54 +00:00
pPed - > bAllowMedicsToReviveMe = false ;
2020-05-19 17:54:05 +00:00
pPed - > bIsPlayerFriend = false ;
if ( pVehicle - > bIsBus )
pPed - > bRenderPedInCar = false ;
2020-05-05 01:45:18 +00:00
pPed - > SetPosition ( pVehicle - > GetPosition ( ) ) ;
2019-07-25 20:34:29 +00:00
pPed - > SetOrientation ( 0.0f , 0.0f , 0.0f ) ;
pPed - > SetPedState ( PED_DRIVING ) ;
CPopulation : : ms_nTotalMissionPeds + + ;
2020-06-28 08:59:20 +00:00
script_assert ( ! pVehicle - > pDriver ) ;
2019-07-25 20:34:29 +00:00
pVehicle - > pDriver = pPed ;
pVehicle - > pDriver - > RegisterReference ( ( CEntity * * ) & pVehicle - > pDriver ) ;
pPed - > m_pMyVehicle = pVehicle ;
pPed - > m_pMyVehicle - > RegisterReference ( ( CEntity * * ) & pPed - > m_pMyVehicle ) ;
pPed - > bInVehicle = true ;
2020-04-30 13:45:45 +00:00
pVehicle - > SetStatus ( STATUS_PHYSICS ) ;
2019-07-25 20:34:29 +00:00
if ( ! pVehicle - > IsBoat ( ) )
pVehicle - > AutoPilot . m_nCarMission = MISSION_CRUISE ;
pVehicle - > bEngineOn = true ;
pPed - > bUsesCollision = false ;
2020-05-17 17:36:48 +00:00
pPed - > AddInCarAnims ( pVehicle , true ) ;
2020-05-06 10:23:57 +00:00
pPed - > m_nZoneLevel = CTheZones : : GetLevelFromPosition ( & pPed - > GetPosition ( ) ) ;
2019-07-25 20:34:29 +00:00
CWorld : : Add ( pPed ) ;
ScriptParams [ 0 ] = CPools : : GetPedPool ( ) - > GetIndex ( pPed ) ;
StoreParameters ( & m_nIp , 1 ) ;
if ( m_bIsMissionScript )
CTheScripts : : MissionCleanup . AddEntityToList ( ScriptParams [ 0 ] , CLEANUP_CHAR ) ;
return 0 ;
}
case COMMAND_WARP_PLAYER_FROM_CAR_TO_COORD :
{
CollectParameters ( & m_nIp , 4 ) ;
CVector pos = * ( CVector * ) & ScriptParams [ 1 ] ;
CPlayerInfo * pPlayer = & CWorld : : Players [ ScriptParams [ 0 ] ] ;
2020-01-03 16:48:13 +00:00
if ( pos . z < = MAP_Z_LOW_LIMIT )
2019-07-25 20:34:29 +00:00
pos . z = CWorld : : FindGroundZForCoord ( pos . x , pos . y ) ;
if ( pPlayer - > m_pPed - > bInVehicle ) {
2020-06-28 08:59:20 +00:00
script_assert ( pPlayer - > m_pPed - > m_pMyVehicle ) ;
2019-07-25 20:34:29 +00:00
if ( pPlayer - > m_pPed - > m_pMyVehicle - > bIsBus )
pPlayer - > m_pPed - > bRenderPedInCar = true ;
if ( pPlayer - > m_pPed - > m_pMyVehicle - > pDriver = = pPlayer - > m_pPed ) {
pPlayer - > m_pPed - > m_pMyVehicle - > RemoveDriver ( ) ;
2020-04-30 13:45:45 +00:00
pPlayer - > m_pPed - > m_pMyVehicle - > SetStatus ( STATUS_ABANDONED ) ;
2019-07-25 20:34:29 +00:00
pPlayer - > m_pPed - > m_pMyVehicle - > bEngineOn = false ;
pPlayer - > m_pPed - > m_pMyVehicle - > AutoPilot . m_nCruiseSpeed = 0 ;
} else {
pPlayer - > m_pPed - > m_pMyVehicle - > RemovePassenger ( pPlayer - > m_pPed ) ;
}
}
2020-11-13 14:53:03 +00:00
pPlayer - > m_pPed - > RemoveInCarAnims ( ) ;
2019-07-25 20:34:29 +00:00
pPlayer - > m_pPed - > bInVehicle = false ;
pPlayer - > m_pPed - > m_pMyVehicle = nil ;
pPlayer - > m_pPed - > SetPedState ( PED_IDLE ) ;
pPlayer - > m_pPed - > bUsesCollision = true ;
pPlayer - > m_pPed - > SetMoveSpeed ( 0.0f , 0.0f , 0.0f ) ;
2020-05-19 17:54:05 +00:00
pPlayer - > m_pPed - > ReplaceWeaponWhenExitingVehicle ( ) ;
2019-07-25 20:34:29 +00:00
if ( pPlayer - > m_pPed - > m_pVehicleAnim )
pPlayer - > m_pPed - > m_pVehicleAnim - > blendDelta = - 1000.0f ;
pPlayer - > m_pPed - > m_pVehicleAnim = nil ;
pPlayer - > m_pPed - > SetMoveState ( PEDMOVE_NONE ) ;
2020-11-13 14:53:03 +00:00
CAnimManager : : BlendAnimation ( pPlayer - > m_pPed - > GetClump ( ) , pPlayer - > m_pPed - > m_animGroup , ANIM_IDLE_STANCE , 1000.0f ) ;
2019-07-25 20:34:29 +00:00
pPlayer - > m_pPed - > RestartNonPartialAnims ( ) ;
AudioManager . PlayerJustLeftCar ( ) ;
pos . z + = pPlayer - > m_pPed - > GetDistanceFromCentreOfMassToBaseOfModel ( ) ;
pPlayer - > m_pPed - > Teleport ( pos ) ;
CTheScripts : : ClearSpaceForMissionEntity ( pos , pPlayer - > m_pPed ) ;
return 0 ;
}
2020-05-19 17:54:05 +00:00
//case COMMAND_MAKE_CHAR_DO_NOTHING:
2019-07-25 20:34:29 +00:00
default :
2020-06-28 08:59:20 +00:00
script_assert ( 0 ) ;
2019-07-25 20:34:29 +00:00
break ;
}
return - 1 ;
}
2020-05-02 22:42:46 +00:00
void CRunningScript : : Save ( uint8 * & buf )
{
# ifdef COMPATIBLE_SAVES
SkipSaveBuf ( buf , 8 ) ;
for ( int i = 0 ; i < 8 ; i + + )
WriteSaveBuf < char > ( buf , m_abScriptName [ i ] ) ;
WriteSaveBuf < uint32 > ( buf , m_nIp ) ;
2020-05-10 15:49:33 +00:00
# ifdef CHECK_STRUCT_SIZES
2020-05-02 22:42:46 +00:00
static_assert ( MAX_STACK_DEPTH = = 6 , " Compatibility loss: MAX_STACK_DEPTH != 6 " ) ;
2020-05-10 15:49:33 +00:00
# endif
2020-05-02 22:42:46 +00:00
for ( int i = 0 ; i < MAX_STACK_DEPTH ; i + + )
WriteSaveBuf < uint32 > ( buf , m_anStack [ i ] ) ;
WriteSaveBuf < uint16 > ( buf , m_nStackPointer ) ;
SkipSaveBuf ( buf , 2 ) ;
2020-05-10 15:49:33 +00:00
# ifdef CHECK_STRUCT_SIZES
2020-05-02 22:42:46 +00:00
static_assert ( NUM_LOCAL_VARS + NUM_TIMERS = = 18 , " Compatibility loss: NUM_LOCAL_VARS + NUM_TIMERS != 18 " ) ;
2020-05-10 15:49:33 +00:00
# endif
2020-05-02 22:42:46 +00:00
for ( int i = 0 ; i < NUM_LOCAL_VARS + NUM_TIMERS ; i + + )
WriteSaveBuf < int32 > ( buf , m_anLocalVariables [ i ] ) ;
WriteSaveBuf < bool > ( buf , m_bCondResult ) ;
WriteSaveBuf < bool > ( buf , m_bIsMissionScript ) ;
WriteSaveBuf < bool > ( buf , m_bSkipWakeTime ) ;
SkipSaveBuf ( buf , 1 ) ;
WriteSaveBuf < uint32 > ( buf , m_nWakeTime ) ;
WriteSaveBuf < uint16 > ( buf , m_nAndOrState ) ;
WriteSaveBuf < bool > ( buf , m_bNotFlag ) ;
WriteSaveBuf < bool > ( buf , m_bDeatharrestEnabled ) ;
WriteSaveBuf < bool > ( buf , m_bDeatharrestExecuted ) ;
WriteSaveBuf < bool > ( buf , m_bMissionFlag ) ;
SkipSaveBuf ( buf , 2 ) ;
# else
WriteSaveBuf ( buf , * this ) ;
# endif
}
void CRunningScript : : Load ( uint8 * & buf )
{
# ifdef COMPATIBLE_SAVES
SkipSaveBuf ( buf , 8 ) ;
for ( int i = 0 ; i < 8 ; i + + )
m_abScriptName [ i ] = ReadSaveBuf < char > ( buf ) ;
m_nIp = ReadSaveBuf < uint32 > ( buf ) ;
2020-05-10 15:49:33 +00:00
# ifdef CHECK_STRUCT_SIZES
2020-05-02 22:42:46 +00:00
static_assert ( MAX_STACK_DEPTH = = 6 , " Compatibility loss: MAX_STACK_DEPTH != 6 " ) ;
2020-05-10 15:49:33 +00:00
# endif
2020-05-02 22:42:46 +00:00
for ( int i = 0 ; i < MAX_STACK_DEPTH ; i + + )
m_anStack [ i ] = ReadSaveBuf < uint32 > ( buf ) ;
m_nStackPointer = ReadSaveBuf < uint16 > ( buf ) ;
SkipSaveBuf ( buf , 2 ) ;
2020-05-10 15:49:33 +00:00
# ifdef CHECK_STRUCT_SIZES
2020-05-02 22:42:46 +00:00
static_assert ( NUM_LOCAL_VARS + NUM_TIMERS = = 18 , " Compatibility loss: NUM_LOCAL_VARS + NUM_TIMERS != 18 " ) ;
2020-05-10 15:49:33 +00:00
# endif
2020-05-02 22:42:46 +00:00
for ( int i = 0 ; i < NUM_LOCAL_VARS + NUM_TIMERS ; i + + )
m_anLocalVariables [ i ] = ReadSaveBuf < int32 > ( buf ) ;
m_bCondResult = ReadSaveBuf < bool > ( buf ) ;
m_bIsMissionScript = ReadSaveBuf < bool > ( buf ) ;
m_bSkipWakeTime = ReadSaveBuf < bool > ( buf ) ;
SkipSaveBuf ( buf , 1 ) ;
m_nWakeTime = ReadSaveBuf < uint32 > ( buf ) ;
m_nAndOrState = ReadSaveBuf < uint16 > ( buf ) ;
m_bNotFlag = ReadSaveBuf < bool > ( buf ) ;
m_bDeatharrestEnabled = ReadSaveBuf < bool > ( buf ) ;
m_bDeatharrestExecuted = ReadSaveBuf < bool > ( buf ) ;
m_bMissionFlag = ReadSaveBuf < bool > ( buf ) ;
SkipSaveBuf ( buf , 2 ) ;
# else
CRunningScript * n = next ;
CRunningScript * p = prev ;
* this = ReadSaveBuf < CRunningScript > ( buf ) ;
next = n ;
prev = p ;
# endif
}
2020-05-26 21:25:12 +00:00
# ifdef MISSION_REPLAY
bool CRunningScript : : CanAllowMissionReplay ( )
{
if ( AllowMissionReplay )
return false ;
if ( CStats : : LastMissionPassedName [ 0 ] = = ' \0 ' )
return false ;
for ( int i = 0 ; i < ARRAY_SIZE ( nonMissionScripts ) ; i + + ) {
if ( strcmp ( m_abScriptName , nonMissionScripts [ i ] ) = = 0 )
return false ;
}
return true ;
}
uint32 AddExtraDeathDelay ( )
{
if ( missionRetryScriptIndex = = 63 )
return 7000 ;
if ( missionRetryScriptIndex = = 64 )
return 4000 ;
return 1000 ;
}
void RetryMission ( int type , int unk )
{
if ( type = = 0 ) {
doingMissionRetry = true ;
2020-12-04 23:49:32 +00:00
FrontEndMenuManager . m_nCurrScreen = 57 ; // MENUPAGE_MISSION_RETRY
2020-05-26 21:25:12 +00:00
FrontEndMenuManager . RequestFrontEndStartUp ( ) ;
}
else if ( type = = 2 ) {
doingMissionRetry = false ;
AllowMissionReplay = 6 ;
CTheScripts : : MissionCleanup . Process ( ) ;
}
}
# endif
2020-06-14 21:26:19 +00:00
# ifdef MISSION_SWITCHER
void
CTheScripts : : SwitchToMission ( int32 mission )
{
for ( CRunningScript * pScript = CTheScripts : : pActiveScripts ; pScript ! = nil ; pScript = pScript - > GetNext ( ) ) {
if ( ! pScript - > m_bIsMissionScript | | ! pScript - > m_bDeatharrestEnabled ) {
continue ;
}
while ( pScript - > m_nStackPointer > 0 )
- - pScript - > m_nStackPointer ;
pScript - > m_nIp = pScript - > m_anStack [ pScript - > m_nStackPointer ] ;
* ( int32 * ) & CTheScripts : : ScriptSpace [ CTheScripts : : OnAMissionFlag ] = 0 ;
pScript - > m_nWakeTime = 0 ;
pScript - > m_bDeatharrestExecuted = true ;
while ( ! pScript - > ProcessOneCommand ( ) ) ;
CMessages : : ClearMessages ( ) ;
}
if ( CTheScripts : : NumberOfExclusiveMissionScripts > 0 & & mission < = UINT16_MAX - 2 )
return ;
# ifdef MISSION_REPLAY
missionRetryScriptIndex = mission ;
if ( missionRetryScriptIndex = = 19 )
CStats : : LastMissionPassedName [ 0 ] = ' \0 ' ;
# endif
CTimer : : Suspend ( ) ;
int offset = CTheScripts : : MultiScriptArray [ mission ] ;
# ifdef USE_DEBUG_SCRIPT_LOADER
CFileMgr : : ChangeDir ( " \\ data \\ " ) ;
int handle = CFileMgr : : OpenFile ( scriptfile , " rb " ) ;
CFileMgr : : ChangeDir ( " \\ " ) ;
# else
CFileMgr : : ChangeDir ( " \\ " ) ;
int handle = CFileMgr : : OpenFile ( " data \\ main.scm " , " rb " ) ;
# endif
CFileMgr : : Seek ( handle , offset , 0 ) ;
CFileMgr : : Read ( handle , ( const char * ) & CTheScripts : : ScriptSpace [ SIZE_MAIN_SCRIPT ] , SIZE_MISSION_SCRIPT ) ;
CFileMgr : : CloseFile ( handle ) ;
CRunningScript * pMissionScript = CTheScripts : : StartNewScript ( SIZE_MAIN_SCRIPT ) ;
CTimer : : Resume ( ) ;
pMissionScript - > m_bIsMissionScript = true ;
pMissionScript - > m_bMissionFlag = true ;
CTheScripts : : bAlreadyRunningAMissionScript = true ;
CGameLogic : : ClearShortCut ( ) ;
}
2020-07-03 12:17:02 +00:00
# endif