From: Samual Lenks Date: Sun, 5 Jan 2014 17:37:22 +0000 (-0500) Subject: Add shotgun spawnfunc X-Git-Tag: xonotic-v0.8.0~152^2~130 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f0daf5c5131177d2270e9a38dd8da7c5472ef178;p=xonotic%2Fxonotic-data.pk3dir.git Add shotgun spawnfunc --- diff --git a/qcsrc/common/weapons/w_shotgun.qc b/qcsrc/common/weapons/w_shotgun.qc index 2983f4db3..a304240bf 100644 --- a/qcsrc/common/weapons/w_shotgun.qc +++ b/qcsrc/common/weapons/w_shotgun.qc @@ -48,6 +48,7 @@ SHOTGUN_SETTINGS(WEP_ADD_CVAR, WEP_ADD_PROP) #endif #else #ifdef SVQC +void spawnfunc_weapon_shotgun(void) { weapon_defaultspawnfunc(WEP_SHOTGUN); } void W_Shotgun_Attack (void) { @@ -187,8 +188,6 @@ void W_Shotgun_Attack2 (void) W_SetupShot_Range(self, TRUE, 0, "", 0, WEP_CVAR_SEC(shotgun, damage), WEP_CVAR_SEC(shotgun, melee_range)); } -void spawnfunc_weapon_shotgun(); // defined in t_items.qc - .float shotgun_primarytime; float W_Shotgun(float req)