From: Lyberta Date: Tue, 10 Oct 2017 19:07:30 +0000 (+0300) Subject: Gives instagib items actual spawnfuncs. X-Git-Tag: xonotic-v0.8.5~2426^2~26 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8cd379284c73c5c1b804d956275a3a6dadecfb38;p=xonotic%2Fxonotic-data.pk3dir.git Gives instagib items actual spawnfuncs. --- diff --git a/qcsrc/common/mutators/mutator/instagib/items.qh b/qcsrc/common/mutators/mutator/instagib/items.qh index 7e0dfc066..597fddc11 100644 --- a/qcsrc/common/mutators/mutator/instagib/items.qh +++ b/qcsrc/common/mutators/mutator/instagib/items.qh @@ -64,6 +64,8 @@ REGISTER_ITEM(ExtraLife, Powerup) { this.m_itemid = IT_NAILS; } +SPAWNFUNC_ITEM(item_extralife, ITEM_ExtraLife) + #ifdef GAMEQC MODEL(Invisibility_ITEM, Item_Model("g_strength.md3")); SOUND(Invisibility, Item_Sound("powerup")); @@ -96,6 +98,8 @@ REGISTER_ITEM(Invisibility, Powerup) { #endif } +SPAWNFUNC_ITEM(item_invisibility, ITEM_Invisibility) + #ifdef GAMEQC MODEL(Speed_ITEM, Item_Model("g_invincible.md3")); SOUND(Speed, Item_Sound("powerup_shield")); @@ -127,3 +131,5 @@ REGISTER_ITEM(Speed, Powerup) { this.m_iteminit = powerup_speed_init; #endif } + +SPAWNFUNC_ITEM(item_speed, ITEM_Speed)