mirror of
https://github.com/halpz/re3.git
synced 2025-01-23 06:41:00 +00:00
ginput script
This commit is contained in:
parent
3a95c77c9e
commit
958e2f36bb
|
@ -3092,7 +3092,13 @@ int8 CRunningScript::ProcessCommands200To299(int32 command)
|
||||||
UpdateCompareFlag(pPed->OurPedCanSeeThisOne(CWorld::Players[ScriptParams[1]].m_pPed));
|
UpdateCompareFlag(pPed->OurPedCanSeeThisOne(CWorld::Players[ScriptParams[1]].m_pPed));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#ifdef SUPPORT_GINPUT_SCRIPT
|
||||||
|
case COMMAND_HAS_PAD_IN_HANDS:
|
||||||
|
UpdateCompareFlag(CPad::GetPad(0)->IsAffectedByController);
|
||||||
|
return 0;
|
||||||
|
#else
|
||||||
//case COMMAND_ORDER_CHAR_TO_BACKDOOR:
|
//case COMMAND_ORDER_CHAR_TO_BACKDOOR:
|
||||||
|
#endif
|
||||||
//case COMMAND_ADD_CHAR_TO_GANG:
|
//case COMMAND_ADD_CHAR_TO_GANG:
|
||||||
case COMMAND_IS_CHAR_OBJECTIVE_PASSED:
|
case COMMAND_IS_CHAR_OBJECTIVE_PASSED:
|
||||||
{
|
{
|
||||||
|
|
|
@ -293,7 +293,11 @@ enum {
|
||||||
COMMAND_IS_PLAYER_IN_ZONE,
|
COMMAND_IS_PLAYER_IN_ZONE,
|
||||||
COMMAND_IS_PLAYER_PRESSING_HORN,
|
COMMAND_IS_PLAYER_PRESSING_HORN,
|
||||||
COMMAND_HAS_CHAR_SPOTTED_PLAYER,
|
COMMAND_HAS_CHAR_SPOTTED_PLAYER,
|
||||||
|
#ifdef SUPPORT_GINPUT_SCRIPT
|
||||||
|
COMMAND_HAS_PAD_IN_HANDS,
|
||||||
|
#else
|
||||||
COMMAND_ORDER_CHAR_TO_BACKDOOR,
|
COMMAND_ORDER_CHAR_TO_BACKDOOR,
|
||||||
|
#endif
|
||||||
COMMAND_ADD_CHAR_TO_GANG,
|
COMMAND_ADD_CHAR_TO_GANG,
|
||||||
COMMAND_IS_CHAR_OBJECTIVE_PASSED,
|
COMMAND_IS_CHAR_OBJECTIVE_PASSED,
|
||||||
COMMAND_SET_CHAR_DRIVE_AGGRESSION,
|
COMMAND_SET_CHAR_DRIVE_AGGRESSION,
|
||||||
|
|
|
@ -317,7 +317,11 @@ const tScriptCommandData commands[] = {
|
||||||
REGISTER_COMMAND(COMMAND_IS_PLAYER_IN_ZONE, INPUT_ARGUMENTS(ARGTYPE_INT, ARGTYPE_STRING,), 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_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, ""),
|
REGISTER_COMMAND(COMMAND_HAS_CHAR_SPOTTED_PLAYER, INPUT_ARGUMENTS(ARGTYPE_INT, ARGTYPE_INT,), OUTPUT_ARGUMENTS(), true, -1, ""),
|
||||||
|
#ifdef SUPPORT_GINPUT_SCRIPT
|
||||||
|
REGISTER_COMMAND(COMMAND_HAS_PAD_IN_HANDS, INPUT_ARGUMENTS(), OUTPUT_ARGUMENTS(), true, -1, ""),
|
||||||
|
#else
|
||||||
REGISTER_COMMAND(COMMAND_ORDER_CHAR_TO_BACKDOOR, INPUT_ARGUMENTS(ARGTYPE_INT, ARGTYPE_INT,), OUTPUT_ARGUMENTS(), false, -1, ""),
|
REGISTER_COMMAND(COMMAND_ORDER_CHAR_TO_BACKDOOR, INPUT_ARGUMENTS(ARGTYPE_INT, ARGTYPE_INT,), OUTPUT_ARGUMENTS(), false, -1, ""),
|
||||||
|
#endif
|
||||||
REGISTER_COMMAND(COMMAND_ADD_CHAR_TO_GANG, 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, ""),
|
||||||
REGISTER_COMMAND(COMMAND_IS_CHAR_OBJECTIVE_PASSED, INPUT_ARGUMENTS(ARGTYPE_INT,), OUTPUT_ARGUMENTS(), true, -1, ""),
|
REGISTER_COMMAND(COMMAND_IS_CHAR_OBJECTIVE_PASSED, INPUT_ARGUMENTS(ARGTYPE_INT,), OUTPUT_ARGUMENTS(), true, -1, ""),
|
||||||
REGISTER_COMMAND(COMMAND_SET_CHAR_DRIVE_AGGRESSION, INPUT_ARGUMENTS(ARGTYPE_INT, ARGTYPE_INT,), OUTPUT_ARGUMENTS(), false, -1, ""),
|
REGISTER_COMMAND(COMMAND_SET_CHAR_DRIVE_AGGRESSION, INPUT_ARGUMENTS(ARGTYPE_INT, ARGTYPE_INT,), OUTPUT_ARGUMENTS(), false, -1, ""),
|
||||||
|
|
|
@ -381,6 +381,7 @@ enum Config {
|
||||||
#define SUPPORT_JAPANESE_SCRIPT
|
#define SUPPORT_JAPANESE_SCRIPT
|
||||||
//#define SUPPORT_XBOX_SCRIPT
|
//#define SUPPORT_XBOX_SCRIPT
|
||||||
#define SUPPORT_MOBILE_SCRIPT
|
#define SUPPORT_MOBILE_SCRIPT
|
||||||
|
#define SUPPORT_GINPUT_SCRIPT
|
||||||
#if (defined SUPPORT_XBOX_SCRIPT && defined SUPPORT_MOBILE_SCRIPT)
|
#if (defined SUPPORT_XBOX_SCRIPT && defined SUPPORT_MOBILE_SCRIPT)
|
||||||
static_assert(false, "SUPPORT_XBOX_SCRIPT and SUPPORT_MOBILE_SCRIPT are mutually exclusive");
|
static_assert(false, "SUPPORT_XBOX_SCRIPT and SUPPORT_MOBILE_SCRIPT are mutually exclusive");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue