From 74e404da91526c12a718c61cdd2050245e35db7a Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 7 Mar 2015 00:40:02 +1100 Subject: [PATCH] Hide the flag from the carrier's view while they're in a vehicle (fixes flag getting in way of crosshair in 3rd person vehicle mode) --- qcsrc/server/mutators/gamemode_ctf.qc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcsrc/server/mutators/gamemode_ctf.qc b/qcsrc/server/mutators/gamemode_ctf.qc index 4afec770e..7e9565698 100644 --- a/qcsrc/server/mutators/gamemode_ctf.qc +++ b/qcsrc/server/mutators/gamemode_ctf.qc @@ -2152,6 +2152,8 @@ MUTATOR_HOOKFUNCTION(ctf_VehicleEnter) { if(vh_player.flagcarried) { + vh_player.flagcarried.nodrawtoclient = vh_player; // hide the flag from the driver + if(!autocvar_g_ctf_allow_vehicle_carry && !autocvar_g_ctf_allow_vehicle_touch) { ctf_Handle_Throw(vh_player, world, DROP_NORMAL); @@ -2177,6 +2179,7 @@ MUTATOR_HOOKFUNCTION(ctf_VehicleExit) setorigin(vh_player.flagcarried, FLAG_CARRY_OFFSET); vh_player.flagcarried.scale = FLAG_SCALE; vh_player.flagcarried.angles = '0 0 0'; + vh_player.flagcarried.nodrawtoclient = world; return true; } -- 2.39.2