Merge pull request #53 from MikeyRay/main

This commit is contained in:
Ian 2023-03-24 23:46:13 -04:00 committed by GitHub
commit 9357ff9bf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,7 @@
void() W_PutOut;
void(float side) W_Reload;
void() GrenadeExplode;
void() W_SprintStart;
void() ReturnWeaponModel =
{
@ -47,6 +48,11 @@ void() ReturnWeaponModel =
// Always try to reload after any action.
if (self.currentmag == 0 && self.currentammo != 0)
W_Reload(S_BOTH);
// If the person is swapping, play the sprint anim if they're sprinting after swap. Otherwise it plays idle
if (self.sprinting == TRUE)
W_SprintStart();
}
void() W_PlayTakeOut =