}
/* use this when creating a new command, making sure to place it in alphabetical order.
-void ClientCommand_(float request)ClientCommand_getmapvotepic(request, arguments)
+void ClientCommand_(float request)
{
switch(request)
{
CLIENT_COMMAND("timein", ClientCommand_timein(request), "Resume the game from being paused with a timeout") \
CLIENT_COMMAND("timeout", ClientCommand_timeout(request), "Call a timeout which pauses the game for certain amount of time unless unpaused") \
CLIENT_COMMAND("voice", ClientCommand_voice(request, arguments, command), "Send voice message via sound") \
- CLIENT_COMMAND("vote", VoteCommand(self, arguments), "Request an action to be voted upon by players") \
+ CLIENT_COMMAND("vote", VoteCommand(self, arguments), "Request an action to be voted upon by players") \ // handled in server/vote.qc
/* nothing */
void ClientCommand_macro_help()
// Misc. Supporting Functions
// ============================
+float Votecommand_check_assignment(entity caller, float assignment)
+{
+ float from_server = (!caller);
+
+ if((assignment == VC_ASGNMNT_BOTH)
+ || ((!from_server && assignment == VC_ASGNMNT_CLIENTONLY)
+ || (from_server && assignment == VC_ASGNMNT_SERVERONLY)))
+ {
+ print("check_assignment returned true\n");
+ return TRUE;
+ }
+
+ print("check_assignment returned false\n");
+ return FALSE;
+}
+
+string VoteCommand_
+
float Nagger_SendEntity(entity to, float sendflags)
{
float nags, i, f, b;
// Do not hard code aliases for these, instead create them in commands.cfg... also: keep in alphabetical order, please ;)
#define VOTE_COMMANDS(request,caller,arguments) \
VOTE_COMMAND("abstain", VoteCommand_abstain(request, caller), "", VC_ASGNMNT_CLIENTONLY) \
+ VOTE_COMMAND("help", VoteCommand_help(caller), "", VC_ASGNMNT_BOTH) \
VOTE_COMMAND("stop", VoteCommand_stop(request, caller), "", VC_ASGNMNT_BOTH) \
//VOTE_COMMAND("", VoteCommand_(request, caller, arguments), "", ) \
/* nothing */
-float Votecommand_check_assignment(entity caller, float assignment)
-{
- float from_server = (!caller);
-
- if((assignment == VC_ASGNMNT_BOTH)
- || ((!from_server && assignment == VC_ASGNMNT_CLIENTONLY)
- || (from_server && assignment == VC_ASGNMNT_SERVERONLY)))
- {
- return TRUE;
- }
-
- return FALSE;
-}
-
void VoteCommand_macro_help(entity caller)
{
print("\nUsage:^3 cmd vote COMMAND...^7, where possible commands are:\n");