From 5ff18c96842664c91ca5ff9fc55fd3e4b114fcab Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 20 Dec 2022 02:11:44 -0500 Subject: [PATCH] Server: Oops! Declare W_AdvanceAnim() --- source/server/weapons/weapon_core.qc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/server/weapons/weapon_core.qc b/source/server/weapons/weapon_core.qc index 823d386..4e8cd0d 100644 --- a/source/server/weapons/weapon_core.qc +++ b/source/server/weapons/weapon_core.qc @@ -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 = { if (self.weapon == W_M2 || self.weapon == W_FIW)