This sets the missing side and faction to every vehicle. Thx to iben for explaining. Also set every epoch vehicle to side west and faction USMC to avoid AI problems. As far as Ive tested there are no problems with these settings. This needs some more testing with AI helicopters. Non militarized servers are not affected by this change at all.
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 got discussed earlier. Since epoch got merged with DayZ Mod we have a different name for the scope and type of configs. A proper config should use numbers for those entries. This is the same how arma configs are written. The basicDefines.hpp has all the needed information stored.
Also, this removes the weight entries from the magazines since we have them in a separate folder, so admins can edit them.
This commit updates all helicopter.
- Flares for all helis excluding the mozzie
- Complete gear rework
- Helis added to “DayZ Epoch Vehicles” for the editor
- Remove radar and and radar checks
- Correct fuel capacity for some models
- Add Ka60 and AW159 Wildcat as epoch versions with PKT and M240 only
- Update trader prices and add new helis
In consultation with Seelenapparat we changed the configs from the ch53. This removes strop down and up, the collect and detach cargo options. both actions are not really used in epoch and needed an init script which runs permanently while in the helicopter. It is the same for the sfx sounds from this helicopter. In this special case we decided that performance is more valuable as the removed actions. If someone uses the removed actions in scripts or something like that please message me on discord.
Partial revert of: 3aad4b6
Unfortunately this will not support loading external vehicle addons
(with custom UserActions) which we can not include in Epoch. Child
UserActions overwrite inherited UserActions.
Should improve client FPS while still allowing conditions and scripts to
be customized.
Some special vehicles like MV22, UH1Y, etc. have UserActions overwritten
in their configs, so please let me know if you find any others that do
not get the option to repair or salvage because UserActions is
overwritten in their config. I think I got them all.
Vanilla commits:
a8c4238c0c350d73abe1
Let me know if we can't duplicate the code from the CH53 addon in the
file ch53_monitorSFX.sqf. If that's the case I will use an #include
instead, since the code that kicks and kills players out of the vehicle
goes at the bottom of the file anyway.