mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-26 05:41:20 +00:00
Merge pull request #53 from MikeyRay/main
This commit is contained in:
commit
9357ff9bf3
1 changed files with 7 additions and 1 deletions
|
@ -29,6 +29,7 @@
|
||||||
void() W_PutOut;
|
void() W_PutOut;
|
||||||
void(float side) W_Reload;
|
void(float side) W_Reload;
|
||||||
void() GrenadeExplode;
|
void() GrenadeExplode;
|
||||||
|
void() W_SprintStart;
|
||||||
|
|
||||||
void() ReturnWeaponModel =
|
void() ReturnWeaponModel =
|
||||||
{
|
{
|
||||||
|
@ -40,13 +41,18 @@ void() ReturnWeaponModel =
|
||||||
self.weapon2model = "models/weapons/kar/v_karscope.mdl";
|
self.weapon2model = "models/weapons/kar/v_karscope.mdl";
|
||||||
UpdateV2model(self.weapon2model, 0);
|
UpdateV2model(self.weapon2model, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateVmodel(self.weaponmodel, GetWepSkin(self.weapon));
|
UpdateVmodel(self.weaponmodel, GetWepSkin(self.weapon));
|
||||||
UpdateV2model(self.weapon2model, GetWepSkin(self.weapon));
|
UpdateV2model(self.weapon2model, GetWepSkin(self.weapon));
|
||||||
|
|
||||||
// Always try to reload after any action.
|
// Always try to reload after any action.
|
||||||
if (self.currentmag == 0 && self.currentammo != 0)
|
if (self.currentmag == 0 && self.currentammo != 0)
|
||||||
W_Reload(S_BOTH);
|
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 =
|
void() W_PlayTakeOut =
|
||||||
|
|
Loading…
Reference in a new issue