2013-05-16 22:42:09 +00:00
|
|
|
#ifndef G_CMDS_H
|
|
|
|
#define G_CMDS_H
|
|
|
|
|
|
|
|
#include "g_local.h"
|
|
|
|
|
|
|
|
qboolean SetClass( gentity_t *ent, char *s, /*@null@*/ char *teamName, qboolean SaveToCvar );
|
2013-05-17 18:46:51 +00:00
|
|
|
void DragCheck( void );
|
2013-07-06 16:19:28 +00:00
|
|
|
pclass_t ValueNameForClass ( char* s );
|
|
|
|
void BroadcastClassChange( gclient_t *client, pclass_t oldPClass );
|
2013-05-16 22:42:09 +00:00
|
|
|
|
2013-07-10 20:35:20 +00:00
|
|
|
/**
|
|
|
|
* Request current scoreboard information.
|
|
|
|
*/
|
2014-02-21 18:17:10 +00:00
|
|
|
void DeathmatchScoreboardMessage(gentity_t* ent);
|
2013-07-10 20:35:20 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* If the client being followed leaves the game, or you just want to drop
|
|
|
|
* to free floating spectator mode
|
|
|
|
*/
|
|
|
|
void StopFollowing( gentity_t* ent );
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Let everyone know about a team change.
|
|
|
|
*
|
|
|
|
* \param client The client that changed team.
|
|
|
|
* \param oldTeam The team the client was in.
|
|
|
|
*/
|
|
|
|
void BroadcastTeamChange( gclient_t* client, int oldTeam );
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the team for a player.
|
|
|
|
*
|
|
|
|
* \param ent A player.
|
|
|
|
* \param s The new team.
|
|
|
|
* \return Success or fail.
|
|
|
|
*/
|
|
|
|
qboolean SetTeam( gentity_t* ent, char* s );
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Cycle different players.
|
|
|
|
*/
|
|
|
|
void Cmd_FollowCycle_f( gentity_t* ent, int dir );
|
|
|
|
|
|
|
|
|
2013-05-16 22:42:09 +00:00
|
|
|
#endif
|