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 fixes the cessna getOut bug. Sometimes if the cessna explodes and the player did not die he was trapped inside of the cessna wreck. Switching from getOut to eject fixes this problem.
Ive did a lot tests and it should be save to eject instead of getOut.
Made by @Helion4
All ghillie suits, warm clothes and stalker suits with helmet can be worn by female players too now. The female base class got re-build. All female player models have the same attributs as the male models. For example: Armor or camouflage.
Also, all missing skins got added to loot and traders.
Fix that trees going down directly after hit by a chainsaw or hatchet. This is a long time bug because DZE_TEMP_treedmg got not resetted after the tree was cut down.
Also, this commit makes sure that every tree gives at least 16 or more wood on harvesting. Ive added that to reduce the number of cut down trees to not affect the network traffic too much as it is the case at the moment. All trees and damage get sync over the network.
I was not aware of the acutal behavior of the init eventHandler. The init eventhandler sends all the given arguments to the player before the mpframework got even load on the player, so it is basicly the same like the publicvariables. This means that the function object_pickupAction will be always nil because it gets defined far later after the init evenhandler fired already.