mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user