From: Mario Date: Sat, 23 Jun 2018 17:07:30 +0000 (+1000) Subject: Make sure hooks can't attach to projectiles (besides nades) X-Git-Tag: xonotic-v0.8.5~1989 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d83cc15cc3ed27a9197411147543feca6d54185b;p=xonotic%2Fxonotic-data.pk3dir.git Make sure hooks can't attach to projectiles (besides nades) --- diff --git a/qcsrc/server/g_hook.qc b/qcsrc/server/g_hook.qc index 68aa7154e..d482f092d 100644 --- a/qcsrc/server/g_hook.qc +++ b/qcsrc/server/g_hook.qc @@ -328,6 +328,7 @@ void GrapplingHookTouch(entity this, entity toucher) if(toucher) //if(toucher.move_movetype != MOVETYPE_NONE) + if(!(toucher.flags & FL_PROJECTILE) || toucher.classname == "nade") { SetMovetypeFollow(this, toucher); WarpZone_RefSys_BeginAddingIncrementally(this, this.aiment);