Commit Graph

4099 Commits

Author SHA1 Message Date
worldwidesorrow 3a7f1bd90c Update Supermarket.hpp
File reorganized.
2020-01-09 18:14:02 -06:00
worldwidesorrow 755f60527c Update ResidentialRuins.hpp
File reorganized.
2020-01-09 18:13:35 -06:00
worldwidesorrow 21196d9309 Update Residential.hpp
File reorganized.
2020-01-09 18:13:04 -06:00
worldwidesorrow c94347b542 Update Office.hpp
File reorganized.
2020-01-09 18:12:25 -06:00
worldwidesorrow 2f39dc01b9 Give military industrial groups their own file. 2020-01-09 18:11:15 -06:00
worldwidesorrow 83b81d968f Organize military loot into RU,US,EU, and CZ groups.
When the Military group is selected in building_spawnLoot, it selects one of the random arrays and spawns matching loot for that building.
2020-01-09 18:10:08 -06:00
worldwidesorrow aee4bd7838 Update Industrial.hpp
File reorganized.
2020-01-09 18:07:46 -06:00
worldwidesorrow 73dada661a Delete DZE_Other.hpp 2020-01-09 18:05:57 -06:00
worldwidesorrow 7fb4a19fae Update Hunting.hpp
File reorganized.
2020-01-09 18:05:40 -06:00
worldwidesorrow 3b045fed06 Update Hospital.hpp
File reorganized.
2020-01-09 18:05:05 -06:00
worldwidesorrow 3fe93166fb Update Farm.hpp
File reorganized.
2020-01-09 18:04:35 -06:00
worldwidesorrow f01504e9fa Update Construction.hpp
File reorganized.
2020-01-09 18:03:56 -06:00
worldwidesorrow 4384709d5f Update Church.hpp
File reorganized.
2020-01-09 18:03:19 -06:00
worldwidesorrow 49224dcf81 Update Castle.hpp
File reorganized.
2020-01-09 18:02:31 -06:00
worldwidesorrow 953875923e Remove unused arrays. 2020-01-09 17:56:51 -06:00
worldwidesorrow 8a4dc62d11 Update Roaming.hpp 2020-01-09 17:56:06 -06:00
worldwidesorrow 116a7e77f5 Remove unused array. 2020-01-09 17:54:59 -06:00
worldwidesorrow 328def8d24 Update Residential.hpp
Remove unused arrays. Added small loot positions to Streatman's Land_houseV_2T2 model.
2020-01-09 17:53:25 -06:00
worldwidesorrow 267efaee00 This group is unused. 2020-01-09 17:51:21 -06:00
worldwidesorrow 6ffd35ff7b Update Office.hpp
Remove unused arrays. Completely redid the loot spawn points in Land_HouseB_Tenement (International Hotel lobby). The spawn points were awful. Several of them were buried in the floor so players could not see the loot.
2020-01-09 17:50:00 -06:00
worldwidesorrow 6579bf8b6e Update Military.hpp
Remove unused arrays. Military and MilitarySpecial groups contained essentially the same loot so they have been merged. The Hangar group has been replaced by MilitaryIndustrial. Fixed several bad loot spawn points in Land_a_stationhouse. Removed the small loot spawn on top of the vending machine in Land_Mil_ControlTower. Players are unable to acquire a cursor target on this position to get the gear option. Lowered the loot spawn points over the bunks in Land_Mil_Barracks. The spawn points were too high causing the loot to float above the bunks.
2020-01-09 17:44:38 -06:00
worldwidesorrow e809362e44 Remove unused arrays. 2020-01-09 17:38:55 -06:00
worldwidesorrow 575cb539a1 Remove unused array 2020-01-09 17:37:29 -06:00
worldwidesorrow a60a6b3656 Remove unused arrays. Added a few new loot spawn points to the hospital. 2020-01-09 17:36:10 -06:00
worldwidesorrow bfd8ade095 Removed unused arrays. 2020-01-09 17:35:01 -06:00
worldwidesorrow 15543d9562 Remove unused arrays. 2020-01-09 17:33:14 -06:00
worldwidesorrow 95cd2263fe Remove unused arrays. 2020-01-09 17:32:24 -06:00
worldwidesorrow 705529330e Remove unused arrays 2020-01-09 17:31:30 -06:00
worldwidesorrow 48701daf31 Update CfgLoot.hpp
The overwrites have been corrected in the config files. Groups Vanilla.hpp and Tools.hpp added.
2020-01-09 17:29:31 -06:00
worldwidesorrow 32851d432d Increase max allowed loot piles around a player.
The default number for dayz_maxMaxWeaponHolders is for DayZ Mod. Since Epoch has the addition of small loot spawn points, it should have slightly higher allowed loot spawns around the player.
2020-01-09 17:19:03 -06:00
worldwidesorrow b73b2d2fa5 Separate config variables into client, server, or both. 2020-01-09 17:12:52 -06:00
worldwidesorrow 10889a1541 Update spawn.sqf
Replace switch do block with call using if and exitWith statements. Magazine class items are the most commonly spawned item so it is placed at the top. Switch to the more efficient form of createVehicle. Set more local variables at the top to make the file more readable. Prevent the generator from spawning halfway into the floor by raising the z coordinate. Lower the backpack spawns to prevent them from floating. Add replacement items if dayz_toolBreaking and dayz_knifeDulling are disabled.
2020-01-09 17:07:46 -06:00
worldwidesorrow 292ce61378 Update insertCargo.sqf
Replace switch do block with call scope with if, exitWith. Add magazine selection to spawned weapons. This functions spawns weapons into  a container. It should also spawn a random amount of matching magazines.
2020-01-09 16:54:52 -06:00
worldwidesorrow a1618e0dcf Update insert.sqf
Replace switch do block with call scope using if exitWith statements. The most common spawned item is a magazine class so it is placed at the top.
2020-01-09 16:52:06 -06:00
worldwidesorrow f9a92b2394 Delete compile.sqf
This mess of defines is inappropriate. The compiles have been added to the top of the init file.
2020-01-09 16:48:31 -06:00
worldwidesorrow f55e268606 Optimize loot init file
Optimizing the code in this file. It compiled in half the time of the original. Compiles have been added to the top because there is not very many.
2020-01-09 16:46:30 -06:00
worldwidesorrow abb4046281 Compiles have been added to the top of the init file. 2020-01-09 16:43:45 -06:00
worldwidesorrow 78f849eb2d Compiles have been added to the top of the init file. 2020-01-09 16:43:01 -06:00
worldwidesorrow 635a3e431c Add emptyBloodBag to dayz_typedBags
Add emptyBloodBag to dayz_typedBags to prevent it from spawning when dayz_classicBloodBagSystem is enabled.
2020-01-09 16:41:43 -06:00
worldwidesorrow 14838ed526 Removed sched_buildingBubble from compiles. 2020-01-09 16:38:41 -06:00
worldwidesorrow b21d02cc30 Delete sched_buildingBubble.sqf
This file is no longer needed.
2020-01-09 16:38:06 -06:00
worldwidesorrow fe861deec2 player_spawnCheck no longer needs to be spawned.
Since removing the unnecessary sleeps from zombie_generate, player_spawnCheck can now be called instead of spawned.
2020-01-09 16:37:09 -06:00
worldwidesorrow 7ec0ddd412 Spawn check no longer needs an init file. sched_buildingBubble has been removed.
sched_buildingBubble was not coded correctly and is not necessary.
2020-01-09 16:35:05 -06:00
worldwidesorrow 349b67c287 Add provisions for military buildings to spawn matching loot.
If a military building is selected then matching groups of RU,US,EU, or CZ loot are selected so that weapons, ammo, and attachments spawned in the building will match. Reintroduce loot position shuffling. This was a feature in 1.0.5.1. I'm not sure if this is necessary but it changes the order in which the loot positions are selected so the loot would in theory be in different places each time.
2020-01-09 16:29:11 -06:00
worldwidesorrow 22a04e7955 Clean up code and optimize building_spawnZombies
Checking for near zombies and players in the forEach loop is inappropriate and inefficient. Because it was checking for near zombies, the internal zombies were not spawning at all. It appeared that they were because the walking zombies were using the building position plus the radius option on createAgent. fn_selectRandomLocation using the size of the object as the minimum distance prevents the zombies from potentially spawning into objects and dying. The max distance for the crash site zombies is increased a bit so they can spawn farther away from the object since they are in an open field. The position on the internal zombies should not have the z coordinate automatically set to zero. This prevents the zombies from spawning at positions on upper floors of buildings.
2020-01-09 16:20:03 -06:00
worldwidesorrow 6bcfb68baa Compile frequently used function 2020-01-09 16:10:10 -06:00
worldwidesorrow efecce6619 Adding frequently used function to compiles. 2020-01-09 16:08:33 -06:00
worldwidesorrow fc6f576542 Clean up and optimize file
Function _cantSee should not be recompiled every time this file runs. fnc_fieldOfView is compiled in compiles.sqf and called here. Checking zombie counts in this file is redendant. It is already being done in player_spawnCheck and building_SpawnZombies. Variables "agentObject" and "BaseLocation" are unused. The createAgent command should not be used with a radius. This causes some of the zombies to be killed after being spawned into objects. Some of the walking zombies were spawning inside the building when they should not.
2020-01-09 16:06:37 -06:00
worldwidesorrow 41207ce861 Update init.sqf
Update to use KK's Array Shuffle Plus function. Shuffle the array 5 times.
2020-01-09 15:57:29 -06:00
worldwidesorrow 0f3f522e25 Replace slow array shuffle function with KK's Array Shuffle Plus
KK's code is more efficient and you can enter how many times you want to shuffle.
2020-01-09 15:55:23 -06:00