Update keyboard eventhandler and add rules.sqf

See: https://github.com/EpochModTeam/DayZ-Epoch/pull/1673
This commit is contained in:
ebaydayz
2016-02-16 21:59:01 -05:00
parent 23179c079f
commit 441e9fb231
84 changed files with 1530 additions and 245 deletions

View File

@@ -654,6 +654,9 @@ class FSM
"" \n
"dayz_playerName = name player;" \n
"_model call player_switchModel;" \n
"diag_log [ 'resetting keyboard events',(MISSION_ROOT+'keyboard.sqf')];" \n
"keyboard_keys = nil;" \n
"[controlNull, 1, false,false,false] call compile preprocessFileLineNumbers (MISSION_ROOT+'keyboard.sqf');" \n
"" \n
"gear_done= true;" \n
"player allowDamage false;" \n
@@ -1086,7 +1089,6 @@ class FSM
name = "Preload_Display";
init = /*%FSM<STATEINIT""">*/"dayz_lastCheckBit = 0;" \n
"" \n
"(findDisplay 46) displayAddEventHandler [""KeyDown"",""_this call dayz_spaceInterrupt""];" \n
"player disableConversation true;" \n
"" \n
"eh_player_killed = player addeventhandler [""FiredNear"",{_this call player_weaponFiredNear;} ];" \n