EpochModTeam / DayZ-Epoch

Experimental DayZ Mod for Arma 2
http://epochmodteam.github.io/DayZ-Epoch
227 stars 398 forks source link

Updates to zombie and loot spawning #2044

Closed worldwidesorrow closed 4 years ago

worldwidesorrow commented 4 years ago

Removed a lot of redundancy in the files. Conditions were sometimes being triple checked. Moved zombie and loot related operations from player_spawn_2 to player_spawnCheck where they are directly used. Added lazy eval where appropriate. Better use of global variables used in zombie and loot checks. I'm not sure why global variable values were saved to local variables since the values are changed every time something spawns. Removing empty Cardboard boxes is no longer necessary. DayZ mod has it's own cardboard box model that inherits from parent class "ReammoBox". https://github.com/EpochModTeam/DayZ-Epoch/blob/392f8cb7b3fe2b466fa9cf920d2879dc8d4aebe0/SQF/dayz_code/Configs/CfgVehicles/LootContainer.hpp#L33