Commit Graph

20 Commits

Author SHA1 Message Date
worldwidesorrow
05118343fc Integrate NS Bloodsuckers
Add and update files for bloodsucker spawning option.
2021-08-18 09:47:25 -05:00
AirwavesMan
6d380a816b Fix zombie spawning
fn_selectRandomLocation still makes problem and zombies spawn too near
2021-01-07 11:29:25 +01:00
A Man
2b98eb1fd5 Update loot and zombie spawn, change some count/foreach 2020-04-07 16:33:19 +02: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
bedc52cc76 Remove redundant operations
The isClass and config checks are done in player_spawnCheck. There is no reason to do that here. Those variables are being passed in an array during the function call.  Global variables dayz_spawnZombies and dayz_maxControlledZombies used in spawn checks are adjusted in player_spawnCheck and zombie_generate. There is no reason to save to local variables.
2019-11-11 19:45:33 -06:00
ebayShopper
ac32a8b2cd Configure DZE_SafeZonePosArray by default
Zeds and loot should not spawn in trader cities by default, regardless
of whether the server uses safe zones.

For servers that do not use safezones, the only other things affected
are salvage and instant kill for vehicle explosions in trader cities.
Neither is a significant issue. Most servers use safezones anyway.

Following d750f57, changed to exitWith so the check is only called once
instead of multiple times. Also no need to call again in
zombie_generate, since that function is only called by
building_spawnZombies which already checks it.
2017-11-09 13:52:32 -05:00
oiad
c1c0db9b95 Alter DZE_SafeZonePosCheck to allow custom radii 2017-10-04 21:29:58 +13:00
icomrade
d750f576ed Prevent Zed + loot spawn in safezones
thanks BaroN for the idea
2017-09-13 12:45:00 -04:00
icomrade
347c531edc Fix reversed variable 2016-10-10 15:38:09 -04:00
ebaydayz
29acecc2f2 Retire DZE_MissionLootTable variable
AFAIK there is no performance difference between configFile and
missionConfigFile.

Using missionConfigFile by default simplifies loot scripts and makes the
extra config variable unnecessary. It's one less step for admins to
customize their tables.
2016-08-23 12:57:12 -04:00
ebaydayz
bfca19bf80 Remove some unused legacy code 2016-08-18 17:00:08 -04:00
ebaydayz
87052a9bf2 Add DZE_MissionLootTable 2016-03-13 15:57:31 -04:00
icomrade
18c9e72e15 Some compiles, start separation of blood system 2016-02-27 09:56:53 -05:00
icomrade
e54b9983dd Replace forEach with Count
Use count where you do not need _forEachIndex variable, it's quicker
than forEach.
2014-05-27 15:37:57 -04:00
Skaronator
61e86abe4c Cleanup Compiles a bit 2014-02-23 01:29:56 +01:00
[VB]AWOL
4573e9b5c0 more DZE_MissionLootTable fixes #1028 2014-01-29 11:41:54 -06:00
[VB]AWOL
af4b876cde private arrays part 1 2013-10-22 09:10:27 -05:00
[VB]AWOL
58e5421ac4 added new loot and zed positions
also use another array for zombie positions.
2013-09-26 11:09:23 -05:00
[VB]AWOL
b2b79305f7 1.0.1.6 Developer Build 2013-07-30 21:52:28 -05:00
vbawol
483279c126 Organize files a bit and removed non source pbo's 2013-06-24 06:26:15 -05:00