Commit Graph

1079 Commits

Author SHA1 Message Date
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
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
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
A Man
8af0f2a03a Removed old files
remove show_dialog.sqf - old configs trader
player_hiveTrading.sqf - old configs trader
object_maintenance.sqf - DayZ fences
object_disassembly.sqf - DayZ fences
2019-12-16 16:54:25 +01:00
A Man
4058f59688 Add warm clothes and shivering
Warm Clothes can be adjusted in the configvariables with DZE_WarmClothes. Shivering can be enabled or disabled with the  last value in the DZE_TempVars array. A temperature effect for snow was added too.
2019-12-16 15:41:59 +01:00
A Man
fff1196ee3 Adding snowfall
This can be adjusted in the configvariables. Snow will only be loaded if DZE_SnowFall is true. This is the case for all snow maps by default.
2019-12-16 15:19:29 +01:00
A Man
cc127c646b Update fn_isInsideBuilding.sqf
Adding private tags and an exithwith if the object is null. This happends a lot.
2019-12-16 15:12:23 +01:00
A Man
6740fb5326 Adding german medical translations, minor changes
Changing the messages for wipes. It cannot be done like it was before for the german language.
Thx @RedLink-kam for the russain translations.

Ive re-ordered the new strings so the Namalsk compatibility is the last again. Namalsk should be always last since it is just an addon from a different mod.
2019-12-14 10:00:35 +01:00
worldwidesorrow
8c074be9a7 Add action for giving another player an antibacterial wipe. 2019-12-12 05:12:03 -06:00
worldwidesorrow
e913d1f77e Remove medForceUpdate 2019-12-12 00:20:35 -06:00
worldwidesorrow
69ab20043d Remove medForceUpdate 2019-12-12 00:18:44 -06:00
worldwidesorrow
6652efbc70 Remove medForceUpdate 2019-12-12 00:16:24 -06:00
worldwidesorrow
a4c0638a36 Updates for medical and load actions
Add unconscious array to unload action. Add the carry action. Add the rest of the bloodbags to the bloodbag array. The typed bloodbags get their own actions so the player can select which bloodbag to administer. Alter the sepsis bandage option with a new localized string. NORRN_loadWoundedAction variable is no longer necessary. Remove redundant gear checks.
2019-12-11 17:59:51 -06:00
A Man
57a1f3cfa9 Localize and clean up trade_items_wo_db 2019-12-03 23:54:04 +01:00
worldwidesorrow
bf9dc49be2 Add option for VectorUp on spawned objects.
Some of the objects used in POIs require the use of the setVectorUp command in order to maintain an upright orientation on a sloped surface. This addition adds the option for including the object's up vector in the compact arrays.
Test file: https://github.com/worldwidesorrow/Svetlojarsk
2019-11-22 11:50:11 -06:00
worldwidesorrow
76721e38d6 Add new sounds for opening vaults. 2019-11-17 19:16:14 -06:00
worldwidesorrow
61258c919a Add new sounds for closing vaults. 2019-11-17 19:13:56 -06:00
A Man
49378f62b3 Remove DB traders 2019-11-16 19:06:32 +01:00
worldwidesorrow
ea527fe991 Update several things in this file.
Move zombie and loot related operations from player_spawn_2. They should be in this file. They are used here for accurate counts before spawning zombies and loot.
Make better use of global variables for zombie and loot checks.
Add lazy eval where appropriate.
2019-11-11 20:27:16 -06:00
worldwidesorrow
7921687ef4 Remove redundancy.
Variables are passed from player_spawnCheck so there is no need to gather the information to perform an isClass check.
2019-11-11 20:02:34 -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
worldwidesorrow
e734b03be0 Remove redundant checks already being performed elsewhere
The checks are already being performed in player_spawnCheck and building_spawnZombies. There is no reason to perform them here.
2019-11-11 19:33:07 -06:00
A Man
e7dbc5dd4c Adding basic pve support
Around 50% of all servers are pve servers. This commit adds a basic support and prevent the player vs. player damage. Also if pve is enabled and DZE_BackpackAntiTheft too, the backpack anti theft is active for the whole server.
2019-11-11 10:00:47 +01:00
A Man
ae3a4fa2c8 Adding better logging for playerDied
Also made some basic code changes for player_death
2019-11-08 20:32:07 +01:00
A Man
b0edf3cb75 Fill mixed gas into a chainsaw requires a chainsaw now 2019-11-02 09:57:05 +01:00
A Man
4828c087ce Adding more lazy evaluation for fn_selfactions 2019-10-30 20:08:57 +01:00
A Man
ad541b03b0 Adding more lazy evaluation for damage_actions 2019-10-30 20:08:08 +01:00
A Man
915cf72df3 Adding dayz mod waterbottles
This commit adds the waterbottles from DayZ Mod. The icons were made by @DeVloek. The waterbottles are fully functional with all actions. To boil a plastic waterbottle you need an empty trash can.

Dogs could not be watered with other waterbottle than the ItemWaterbottle itself. This is fixed now. Also fix missing reset action from hide body.
2019-10-29 15:23:30 +01:00
A Man
1268f55f32 Fix floating loot after remove, pack or output from fn_dropItem 2019-10-23 12:46:08 +02:00
A Man
c0e9fe62e1 Make Hide Body customizable
Do not use hideBody as command without the action. It just hides the body but it still can be geared. If using hideBody in correlation with deleteVehicle it breaks the allDead command.

player action ["hideBody", body] deletes the body and the marker from the map but it stays inside allDead.

This fixes the issue that hided players were still shown on the map and still searched for their body.

Needs additional testing for a new release.
2019-10-20 07:26:51 +02:00
F507DMT
b798abf7fb Update player_switchModel.sqf (#2031)
delete all items, if used custom skins
2019-03-11 22:47:07 +13:00
ebayShopper
73118c249b Fix error in 634a01a #2029
Vanilla commit: https://github.com/DayZMod/DayZ/commit/42368d7
2019-01-26 11:28:10 -05:00
F507DMT
967abbdcd9 Update player_countMagazinesWBackpack.sqf
There may be too long pauses with low FPS.
2019-01-15 01:58:39 +06:00
F507DMT
b4e5a38db5 Update private tags 2019-01-07 21:23:08 +06:00
oiad
0391fef4ff Update private tags
This was breaking scripts that use a variable called `_chance`

_chance = 30;
[player,"repair",0,false,50] call dayz_zombieSpeak;

_chance would get changed to 0
2019-01-05 11:12:29 +13:00
oiad
387f77b9da Update private tags 2019-01-05 09:32:12 +13:00
F507DMT
3dc7db7a7a Update player_countMagazines.sqf
Variables("_item","_val","_max") get lost in other scripts, causing errors.
2019-01-04 18:49:20 +06:00
oiad
c3cbca144e Add penalties for wrong safe/lockbox code
As per
6f072982c3 (diff-2b5340930b14ce1ae29d38ebc575c75a)
2018-05-26 21:42:50 +12:00
oiad
bac0071745 Remove duplicate "DZ_buildables"
DZ_buildables is already part of DZE_maintainClasses
2018-04-16 23:45:14 +12:00
oiad
f65dedf9ed Change DZE_limitPlots to be configurable
This allows you to now specificy a maximum amount of plots per player
for them to place.

This is disabled by default.
2018-03-31 15:53:56 +13:00
icomrade
f03f2454c9 Update for A2 1.64 GetHit
Replaced vehicle sethit/setvariable method with sethit/gethit and removed setvariable "Hit_" commands for vehicles (hit_partname can now probably be added to the setvariable filters list).

Modified object_getHit.sqf return to now provide the selection name in order to reduce redundant config lookups. Returns '[Damage, Part Name]', instead of just 'Damage'

Modified vehicle_GetHitpoints.sqf to remove incorrect hipoints from returning. Previously this script would return all hitpoints from any vehicle the current vehicle config inherited from, even if the hitpoint didn't exist in the calling vehicle. this posed a problem since getHit on an invalid part name returns Nil
2018-01-21 17:26:35 -05:00
ebayShopper
e04f0fcac5 Add status icons disabled notification
Vanilla commit:
fe063a8896
2018-01-17 17:17:33 -05:00
ebayShopper
634a01a8d3 Block firing during unconscious wake up animation
Vanilla commit:
10cb55b8aa
2018-01-17 17:02:27 -05:00
ebayShopper
6caba339c9 Update change log
Minor improvement to b791dee and 6248add
2018-01-11 15:41:13 -05:00
oiad
b791deeea8 Condense variables and remove unneeded _isPZombie checks
We're already checking for _isPZombie here:
https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_code/compile/fn_selfActions.sqf#L223
so we don't need to check it again with the trader or the attach to
heli.

Condensed the distance check to a variable
2018-01-06 17:37:06 +13:00
ebayShopper
e89eebc843 Fix ArmoredSUV gunner glitch #2009
Fixes #2009

Note the fn_damageActions.sqf change can be applied without the config
change and it will still fix the problem most of the time.
2017-12-29 17:21:40 -05:00
ebayShopper
694ea87d0d Update scripts.txt
- Updated exceptions, added new filters and removed some which were not
useful
- Removed exceptions for testkit because it is not part of the mod
- Added notes to clarify for now, will move this info to BI wiki later
- Removed two unused files
2017-12-26 00:55:10 -05:00
ebayShopper
cfc6ad08af Remove unused parameter in PVDZ_hlt_Bleed
Vanilla commit:

83bf13c786
2017-12-17 12:44:03 -05:00
ebayShopper
b9c9d504d0 Stop antiwall running on m240 nest getOut 2017-12-13 13:52:58 -05:00