-#include "_.qh"
+#include "_all.qh"
#include "announcer.qh"
#include "hook.qh"
#include "noise.qh"
#include "scoreboard.qh"
#include "shownames.qh"
-#include "target_music.qh"
-#include "vehicles/vehicles.qh"
+#include "vehicles/all.qh"
#include "waypointsprites.qh"
#include "../common/constants.qh"
#include "../common/mapinfo.qh"
#include "../common/nades.qh"
#include "../common/stats.qh"
+#include "../common/triggers/target/music.qh"
#include "../common/teams.qh"
#include "../common/util.qh"
-#include "../common/weapons/weapons.qh"
+#include "../common/weapons/all.qh"
#include "../csqcmodellib/cl_player.qh"
CSQCPlayer_SetCamera();
- myteam = GetPlayerColor(player_localentnum - 1);
+ if(player_localentnum <= maxclients) // is it a client?
+ current_player = player_localentnum - 1;
+ else // then player_localentnum is the vehicle I'm driving
+ current_player = player_localnum;
+ myteam = GetPlayerColor(current_player);
if(myteam != prev_myteam)
{