From a41a5c667e49c60400f76fb3cba8759dfdba7e2b Mon Sep 17 00:00:00 2001 From: Juhu <5894800-Juhu_@users.noreply.gitlab.com> Date: Sat, 10 Jun 2023 02:11:58 +0200 Subject: [PATCH] battle royale: remove vehicle waypoint if vehicle gets destroyed --- qcsrc/common/vehicles/sv_vehicles.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcsrc/common/vehicles/sv_vehicles.qc b/qcsrc/common/vehicles/sv_vehicles.qc index 76237339c..8893bcd3e 100644 --- a/qcsrc/common/vehicles/sv_vehicles.qc +++ b/qcsrc/common/vehicles/sv_vehicles.qc @@ -710,6 +710,9 @@ void vehicles_damage(entity this, entity inflictor, entity attacker, float damag if(GetResource(this, RES_HEALTH) <= 0) { + if(this.br_vehicle_drop && this.waypointsprite_attached) + WaypointSprite_Kill(this.waypointsprite_attached); + if(this.owner) { if(this.vehicle_flags & VHF_DEATHEJECT) -- 2.39.2