]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make sure hooks can't attach to projectiles (besides nades)
authorMario <mario@smbclan.net>
Sat, 23 Jun 2018 17:07:30 +0000 (03:07 +1000)
committerMario <mario@smbclan.net>
Sat, 23 Jun 2018 17:07:30 +0000 (03:07 +1000)
qcsrc/server/g_hook.qc

index 68aa7154ecdc3928261ea584bd251be2c86d2c03..d482f092d8db8df81741f08e5b8a770bbc0ce32f 100644 (file)
@@ -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);