mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
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.
9 lines
209 B
Plaintext
9 lines
209 B
Plaintext
if (primaryWeapon player == "") then {
|
|
if (dayz_onBack in MeleeWeapons) then {
|
|
4 call dz_fn_switchWeapon; // Melee
|
|
} else {
|
|
2 call dz_fn_switchWeapon; // Rifle
|
|
};
|
|
} else {
|
|
1 call dz_fn_switchWeapon;
|
|
}; |