From a6da7324930b449b26917a230318adcf1160e2ce Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 24 Jan 2020 06:54:13 +1000 Subject: [PATCH] Reset player's alpha to default_player_alpha instead of 1 when exiting a vehicle, fixes support with mutators that customise the player's alpha --- qcsrc/common/vehicles/sv_vehicles.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/vehicles/sv_vehicles.qc b/qcsrc/common/vehicles/sv_vehicles.qc index 111c7e795..3ec02901d 100644 --- a/qcsrc/common/vehicles/sv_vehicles.qc +++ b/qcsrc/common/vehicles/sv_vehicles.qc @@ -852,7 +852,7 @@ void vehicles_exit(entity vehic, bool eject) set_movetype(player, MOVETYPE_WALK); player.effects &= ~EF_NODRAW; player.teleportable = TELEPORT_NORMAL; - player.alpha = 1; + player.alpha = default_player_alpha; player.PlayerPhysplug = func_null; player.vehicle = NULL; player.view_ofs = STAT(PL_VIEW_OFS, player); -- 2.39.2