mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-21 02:46:29 +03:00
Fix switch weapon addAction with nothing in hands
The addAction click was doing an animation without switching when the player had a primary or melee on back but nothing in hands. Probably present in vanilla too, will check later.
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
#define FIND_MELEE() (1 call dz_fn_switchWeapon_find)
|
||||
|
||||
dz_switchWeapon_mutex = Mutex_New();
|
||||
dz_switchWeapon_time = 0;
|
||||
dz_switchWeapon_pistolTime = 0;
|
||||
|
||||
//0: switch rifle/melee instantly and update gear
|
||||
//1: switch rifle/melee with animation
|
||||
|
||||
Reference in New Issue
Block a user