]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
force players out of vehicles before teleporting to dropship
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Sat, 29 Jan 2022 19:50:47 +0000 (20:50 +0100)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Sat, 29 Jan 2022 19:50:47 +0000 (20:50 +0100)
qcsrc/common/gamemodes/gamemode/br/sv_br.qc

index e872d08ecdb9aafb0a4509791099df2e3ee39d93..859171a15c3ed60faf58d38c82e6c482fce56e8f 100644 (file)
@@ -1054,6 +1054,9 @@ void br_RoundStart(){
         GameRules_scoring_add(it, BR_SQUAD, -GameRules_scoring_add(it, BR_SQUAD, 0));
         GameRules_scoring_add(it, BR_REVIVALS, -GameRules_scoring_add(it, BR_REVIVALS, 0));
 
+        if(it.vehicle)
+            vehicles_exit(it.vehicle, VHEF_RELEASE);
+
         RemoveGrapplingHooks(it);
         StatusEffects_removeall(it, STATUSEFFECT_REMOVE_CLEAR);