Coins on zombies and the value can be handled with ZSC_ZombieCoins now. The coins for zombies will be handled directly in check wallet.
Also add a PVE check to disable check wallet if the player is not the owner of the body or in the group with the owner of the body.
If the weight system is active all weights of the items will be displayed on the trader infos.
Also update the trading files and replace switch with call and exitwith which is faster.
dayz_zombieSpeak and player_alertZombies are called often together or should be. fnc_alertZombies groups them together and uses the given parameters. This streamlines and corrects the missing or incorrect calls from dayz_zombieSpeak or player_alertZombies.
The trading system to trade zombies parts and get in return bio meat got updated.
Server admins can add a humanity value as 5th value in the array. Also heros and bandits trade dogs tags now and players get humanity from them. This can be edited by server admins too.
Epoch has its own DayZ Mod fence versions now. The old fences can still be used. The new fences have a full upgrade and snap support. all gates work with the door management too.
- All dayz mod recipe were moved to epoch crafting.
- This disables the craft dialog in the diary too.
- The player_craftitem got updated and can handle all dayz mod recipes now.
- A few wooden recipes got updated with an need nails now.
- player_craftitem shows all items that are needed for crafting now, no longer only one missing part.
- Add a systemchat text for missing tools, so it can be checked later in the chat.
This fix prevents players from exploiting the change clothes function to reset AI targeting. Players must either kill all of the near AI or move 800 meters away to switch clothes. Credit to Arrakis for pointing out this exploit. Credit to @morgoth0 for suggesting the use of the getHideFrom command. Reorganized this file a bit to place the checks up top and removed unused code.
- pre-compile object_BackpackAction, object_pickupAction and the actionMonitor
- switch from execVM to spawn
- pickup actions are grouped under actions\pickupActions now
Use dayz_actionInProgress variable to prevent errors when players spam the weapon switching hotkeys. Thanks to @AirwavesMan for noticing the issue.
Add check for "Throw" as current weapon to prevent animation if 3 key is pressed with no available primary or on-back weapon.
- Painkillers are in different pill counts available now, same as antibiotics
- the strings of painkillers and antibiotics have the pill count displayed in the name
This updates the humanity system. It removes the OpenTarget from Dayz Mod which is not needed for Epoch and more confusing as it helps to understand why a player gets a humanity drop or not.
The new system gives players always humanity.
Survivor killed Survivor = Negative Humanity
Survivor killed Bandit = Positive Humanity
Survivor killed Hero = Negative Humanity
Hero killed Bandit = Positive Humanity
Hero killed Hero = Negative Humanity
Hero killed Survivor = Negative Humanity
Bandit killed Bandit = Negative Humanity
Bandit killed Hero = Negative Humanity
Bandit killed Survivor = Negative Humanity
The values are strict and have no longer a complicated calculation based on a kill counter.
This change needs more testing in the beta state of this update.
- Update and rebuild all skins. This removes unwanted behavior of AIs and players.
- Remove skins from CfgSurvival and add the needed information to CfgMagazines. We do not need two different configs to handle that.
- pre compile all snap and vector functions, it was only pre compiled if got started from modular_build before but not if it got called from the action menu
- localize snap and vector building
- clean up the code
- remove old Cinderwall vector fix, it looks like it is not needed anymore
- Update modular_build and player_build
Fix this file so that hotkey 3 works to switch to "onBack" primary weapon when DZE_TwoPrimaries == 2. Add optimizations and rework function dz_fn_switchWeapon_swapSecure. Remove mutex. It was not doing anything.