mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-26 05:41:20 +00:00
Server: Oops! Declare W_AdvanceAnim()
This commit is contained in:
parent
4e366c62bd
commit
5ff18c9684
1 changed files with 15 additions and 0 deletions
|
@ -425,6 +425,21 @@ void() ContinueReload = //Special reloads
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void(float side) W_AdvanceAnim =
|
||||||
|
{
|
||||||
|
float startframe, endframe, delay, reloadcancelframe;
|
||||||
|
string modelname;
|
||||||
|
|
||||||
|
startframe = GetFrame(self.weapon, RELOAD_START);
|
||||||
|
endframe = GetFrame(self.weapon, RELOAD_END);
|
||||||
|
delay = getWeaponDelay(self.weapon, RELOAD);
|
||||||
|
reloadcancelframe = GetFrame(self.weapon, RELOAD_CANCEL);
|
||||||
|
|
||||||
|
modelname = GetWeaponModel(self.weapon, 0);
|
||||||
|
|
||||||
|
Set_W_Frame (startframe, endframe, delay, reloadcancelframe, RELOAD, W_Give_Ammo, modelname, false, side);
|
||||||
|
}
|
||||||
|
|
||||||
void(float side) W_Reload =
|
void(float side) W_Reload =
|
||||||
{
|
{
|
||||||
if (self.weapon == W_M2 || self.weapon == W_FIW)
|
if (self.weapon == W_M2 || self.weapon == W_FIW)
|
||||||
|
|
Loading…
Reference in a new issue