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:
Ian 2023-03-26 21:00:39 -04:00 committed by GitHub
commit d4437e6f2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,6 +38,8 @@
#define ANIM_PUT_AWAY 7
#define ANIM_AIM 8
void() W_AimOut;
//
// Weapon_GetPlayerAmmoInSlot(person, 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));
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);
};