]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Also block grappling hook when not playing a round
authorterencehill <piuntn@gmail.com>
Fri, 15 Feb 2013 19:44:17 +0000 (20:44 +0100)
committerterencehill <piuntn@gmail.com>
Fri, 15 Feb 2013 19:44:17 +0000 (20:44 +0100)
qcsrc/server/g_hook.qc

index 83366b6422adee05de501fbe89a8c7581cd07bcb..dec6e167d1b413c074374b0d067a440591d225f1 100644 (file)
@@ -121,7 +121,7 @@ void GrapplingHookThink()
                error("Owner lost the hook!\n");
                return;
        }
-       if(LostMovetypeFollow(self) || intermission_running)
+       if(LostMovetypeFollow(self) || intermission_running || (round_handler_IsActive() && !round_handler_IsRoundStarted()))
        {
                RemoveGrapplingHook(self.realowner);
                return;
@@ -299,9 +299,7 @@ void FireGrapplingHook (void)
        float s;
        vector vs;
 
-       if(time < game_starttime) return;
-       if(self.player_blocked) return;
-       if(self.freezetag_frozen) return;
+       if(forbidWeaponUse()) return;
        if(self.vehicle) return;
 
        makevectors(self.v_angle);