mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-25 21:31:28 +00:00
Merge pull request #55 from MikeyRay/main
Fix an issue where previous weapons would not zoom out when receiving a new weapon
This commit is contained in:
commit
d4437e6f2f
1 changed files with 3 additions and 0 deletions
|
@ -38,6 +38,8 @@
|
||||||
#define ANIM_PUT_AWAY 7
|
#define ANIM_PUT_AWAY 7
|
||||||
#define ANIM_AIM 8
|
#define ANIM_AIM 8
|
||||||
|
|
||||||
|
void() W_AimOut;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Weapon_GetPlayerAmmoInSlot(person, slot)
|
// Weapon_GetPlayerAmmoInSlot(person, slot)
|
||||||
// Returns the reserve ammo the player has in a weapon slot.
|
// Returns the reserve ammo the player has in a weapon slot.
|
||||||
|
@ -175,5 +177,6 @@ void (float animation_type, void(optional float t) end_function, float playback_
|
||||||
UpdateVmodel(self.weaponmodel, GetWepSkin(self.weapon));
|
UpdateVmodel(self.weaponmodel, GetWepSkin(self.weapon));
|
||||||
UpdateV2model(self.weapon2model, GetWepSkin(self.weapon));
|
UpdateV2model(self.weapon2model, GetWepSkin(self.weapon));
|
||||||
|
|
||||||
|
W_AimOut();
|
||||||
Set_W_Frame(start_frame, end_frame, playback_duration, 0, 0, end_function, GetWeaponModel(self.weapon, 0), false, S_BOTH);
|
Set_W_Frame(start_frame, end_frame, playback_duration, 0, 0, end_function, GetWeaponModel(self.weapon, 0), false, S_BOTH);
|
||||||
};
|
};
|
Loading…
Reference in a new issue