]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Refactor: when a player is controlling a vehicle inside the ring, the player is being...
authorLegendaryGuard <rootuser999@gmail.com>
Sun, 23 Jan 2022 15:17:25 +0000 (16:17 +0100)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Sun, 23 Jan 2022 20:28:21 +0000 (21:28 +0100)
qcsrc/common/gamemodes/gamemode/br/sv_br.qc

index a54d03da53e3b95cdb10dd359579c92c1d70863f..0788c2e4172679fb15bf618ebb5fd8506b71fcda 100644 (file)
@@ -244,7 +244,7 @@ MUTATOR_HOOKFUNCTION(br, PlayerPreThink, CBC_ORDER_FIRST)
             }
 
             if (player.vehicle) // if a player is controlling vehicles
-                vehicles_damage(player.vehicle, ring, ring, 10 * ring.strength * frametime, DEATH_RING.m_id, DMG_NOWEP, player.vehicle.origin, '0 0 0');
+                vehicles_exit(player.vehicle, VHEF_RELEASE); // begone!
      
             Damage(player, ring, ring, ring.strength * frametime, DEATH_RING.m_id, DMG_NOWEP, player.origin, '0 0 0'); // ring damage
         }