mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
#1022 - reset hearing deafness on respawn
This commit is contained in:
parent
50b2dd0651
commit
b6951b7a13
@ -12,3 +12,9 @@ GVAR(playerVehAttenuation) = 1;
|
|||||||
//Update veh attunation when player veh changes
|
//Update veh attunation when player veh changes
|
||||||
["playerVehicleChanged", {_this call FUNC(updatePlayerVehAttenuation);}] call EFUNC(common,addEventHandler);
|
["playerVehicleChanged", {_this call FUNC(updatePlayerVehAttenuation);}] call EFUNC(common,addEventHandler);
|
||||||
["playerTurretChanged", {_this call FUNC(updatePlayerVehAttenuation);}] call EFUNC(common,addEventHandler);
|
["playerTurretChanged", {_this call FUNC(updatePlayerVehAttenuation);}] call EFUNC(common,addEventHandler);
|
||||||
|
|
||||||
|
//Reset deafness on respawn (or remote control player switch)
|
||||||
|
["playerChanged", {
|
||||||
|
GVAR(currentDeafness) = 0;
|
||||||
|
GVAR(newStrength) = 0;
|
||||||
|
}] call EFUNC(common,addEventhandler);
|
||||||
|
Loading…
Reference in New Issue
Block a user