X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fweapon%2Fhook.qc;h=e9200e762656d2d01d948026f6fec7feb85e4bfb;hb=5c9dd3786d57cbbbca67043ba8076548c1d486ef;hp=8926ffa306ea0bd5bbfbe68438deed9481b460f4;hpb=a47688cb559bcb2090d69a3a3c0c92d4d8fe02d5;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/weapons/weapon/hook.qc b/qcsrc/common/weapons/weapon/hook.qc index 8926ffa30..e9200e762 100644 --- a/qcsrc/common/weapons/weapon/hook.qc +++ b/qcsrc/common/weapons/weapon/hook.qc @@ -96,7 +96,7 @@ void W_Hook_ExplodeThink(entity this) if(dt < this.dmg_duration) this.nextthink = time + 0.05; // soon else - remove(this); + delete(this); } void W_Hook_Explode2(entity this) @@ -179,6 +179,7 @@ void W_Hook_Attack2(Weapon thiswep, entity actor) gren.angles = '0 0 0'; gren.flags = FL_PROJECTILE; + IL_PUSH(g_projectiles, gren); CSQCProjectile(gren, true, PROJECTILE_HOOKBOMB, true); @@ -541,6 +542,7 @@ NET_HANDLE(ENT_CLIENT_HOOK, bool bIsNew) if(bIsNew || !this.teleport_time) { this.draw = Draw_GrapplingHook; + IL_PUSH(g_drawables, this); this.entremove = Remove_GrapplingHook; switch(this.HookType)