1.0.1.7 DEV TEST fixes

Fixes to towing, player login, and vehicle EH
This commit is contained in:
[VB]AWOL
2013-08-06 11:31:48 -05:00
parent 9e5957b89d
commit aab6919622
12 changed files with 556 additions and 458 deletions

View File

@@ -0,0 +1,19 @@
/***********************************************************
ASSIGN DAMAGE HANDLER TO A UNIT
- Function fnc_veh_ResetEH
- unit call fnc_veh_ResetEH
************************************************************/
_this removeAllEventHandlers "HandleDamage";
_this removeAllEventHandlers "Killed";
_this addeventhandler ["HandleDamage",{ _this call fnc_veh_handleDam } ];
_this addeventhandler ["Killed",{ _this call fnc_veh_handleKilled } ];
if (isServer) then {
_this removeAllEventHandlers "GetOut";
_this removeAllEventHandlers "GetIn";
_this addEventHandler ["GetOut", {[(_this select 0),"all",true] call server_updateObject;}];
_this addEventHandler ["GetIn", {[(_this select 0),"all",true] call server_updateObject;}];
};
//diag_log(format["%1: all EH reset for %2", __FILE__, _this]);