Run event renaming script for new additions

This commit is contained in:
SilentSpike 2016-06-03 16:02:21 +01:00
parent 694503c01b
commit bd985d57ff
4 changed files with 4 additions and 2 deletions

View File

@ -30,7 +30,7 @@
TRACE_2("forceWalk EH",_object,_set);
_object forceWalk (_set > 0);
}] call CBA_fnc_addEventHandler;
["blockSprint", { //Name reversed from `allowSprint` because we want NOR logic
["ace_blockSprint", { //Name reversed from `allowSprint` because we want NOR logic
params ["_object", "_set"];
TRACE_2("blockSprint EH",_object,_set);
_object allowSprint (_set == 0);

View File

@ -15,6 +15,7 @@ class CfgPatches {
// This class will be deprecated in version 3.8.0
class ACE_newEvents {
blockSprint = "ace_blockSprint";
forceWalk = "ace_forceWalk";
PlayerJip = "ace_playerJip";
useItem = "ace_useItem";

View File

@ -2,7 +2,7 @@
#include "script_component.hpp"
// fixes laser when being captured. Needed, because the selectionPosition of the right hand is used
[QEGVAR(captives,setHandcuffed), {if (_this select 1) then {(_this select 0) action ["GunLightOff", _this select 0]};}] call CBA_fnc_addEventHandler;
[QEGVAR(captives,setHandcuffed), {if (_this select 1) then {(_this select 0) action ["ace_gunLightOff", _this select 0]};}] call CBA_fnc_addEventHandler;
if (!hasInterface) exitWith {};

View File

@ -20,6 +20,7 @@ class CfgPatches {
#include "CfgJointRails.hpp"
class ACE_newEvents {
GunLightOff = "ace_gunLightOff";
SettingsInitialized = "ace_settingsInitialized";
SetHandcuffed = QEGVAR(captives,setHandcuffed);
};