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:
@@ -30,9 +30,13 @@ class CH53_DZE : USEC_ch53_E {
|
||||
transportMaxMagazines = 250;
|
||||
transportmaxbackpacks = 15;
|
||||
fuelCapacity = 3849;
|
||||
class eventhandlers {
|
||||
killed = "_this spawn BIS_Effects_EH_Killed;";
|
||||
};
|
||||
|
||||
class EventHandlers: DefaultEventhandlers
|
||||
{
|
||||
fired = "_this call BIS_Effects_EH_Fired;";
|
||||
killed = "_this call BIS_Effects_EH_Killed;";
|
||||
};
|
||||
|
||||
class UserActions {
|
||||
class RampOpen {
|
||||
displayName = $STR_EPOCH_OPEN_RAMP;
|
||||
|
||||
Reference in New Issue
Block a user