From: Mario Date: Thu, 23 Jan 2020 20:54:13 +0000 (+1000) Subject: Reset player's alpha to default_player_alpha instead of 1 when exiting a vehicle... X-Git-Tag: xonotic-v0.8.5~851^2~12 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a6da7324930b449b26917a230318adcf1160e2ce;p=xonotic%2Fxonotic-data.pk3dir.git 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 --- 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);