Streamline Vehicle Eventhandlers

Almost all eventhandlers getting set already when creating the base class of the vehicles like AllVehicles. So it is not needed to set it after that again. Until a few exceptions I removed or added the needed vehicle eventhandlers.

All helicopters have a fired eventhandler now as it should be. So finally if a helicopters shoots all crew members are in combat. This is the same if flares getting fired.

The fired evenhandler will be only executed for players now no longer for the server.

Note: The CSJ Gyro addon getting loaded very early so those addons need all eventhandlers set.
This commit is contained in:
AirwavesMan
2020-10-31 10:29:06 +01:00
parent 1210ce1eea
commit e6680aaa2f
7 changed files with 17 additions and 44 deletions

View File

@@ -20,12 +20,6 @@ class AH6J_EP1_DZ: AH6J_EP1
fuelCapacity = 242;
supplyRadius = 1.3;
radartype = 0;
class DefaultEventhandlers;
class EventHandlers: DefaultEventhandlers
{
killed = "_this call BIS_Effects_EH_Killed;";
fired = "_this call BIS_Effects_EH_Fired;";
};
};
class AH6J_EP1_DZE: AH6J_EP1_DZ
@@ -93,13 +87,7 @@ class AH6X_DZ: AH6X_EP1 {
fuelCapacity = 242;
radartype = 0;
supplyRadius = 1.3;
class Turrets {};
class DefaultEventhandlers;
class EventHandlers: DefaultEventhandlers
{
killed = "_this call BIS_Effects_EH_Killed;";
};
class Upgrades
{