32 virtual void Save(
float);
33 virtual void Restore(
string,
string);
91 nonvirtual
void DamageRadius(vector,entity,
float,
float,
bool,
int);
120 virtual string Title(
void);
130 float m_flIntermissionTime;
131 float m_flIntermissionCycle;
132 entity m_eIntermissionPoint;
138#define CGameRules NSGameRules
NSGameRules g_grMode
Definition: NSGameRules.h:136
This entity class represents every player client.
Definition: NSClientPlayer.h:28
This entity class is the lowest client/player class.
Definition: NSClient.h:26
This class represents active gamerules.
Definition: NSGameRules.h:27
virtual void FrameStart(void)
Overridable: Called every server frame.
Definition: NSGameRules.qc:68
virtual bool ConsoleCommand(NSClientPlayer, string)
Overridable: Called when a client issues a console command.
Definition: NSGameRules.qc:73
virtual void PlayerKill(NSClientPlayer)
Overridable: Called when a NSClientPlayer issues the kill console command.
Definition: NSGameRules.qc:102
virtual void InitPostEnts(void)
Overridable: Called when all map entities have initialized.
Definition: NSGameRules.qc:61
virtual string Title(void)
Returns the title of the gamemode running.
Definition: NSGameRules.qc:379
nonvirtual void DamageApply(entity, entity, float, int, damageType_t)
Overridable: shim to handle application of direct damage.
Definition: NSGameRules.qc:281
virtual void IntermissionToPlayer(NSClientPlayer)
Run to send a specific player to an intermission.
Definition: NSGameRules.qc:234
nonvirtual bool DamageCheckTrace(entity, vector)
Checks if an entity can be attacked from a given position.
Definition: NSGameRules.qc:288
virtual bool PlayerRequestRespawn(NSClientPlayer)
Overridable: called when a NSClientPlayer requests a respawn.
Definition: NSGameRules.qc:325
virtual void LevelChangeParms(NSClientPlayer)
Overridable: Called to store parms for a specific NSClientPlayer.
Definition: NSGameRules.qc:139
virtual void Save(float)
Handles saving a copy of this entity to a given filehandle.
Definition: NSGameRules.qc:29
virtual void ChatMessageAll(NSClient, string)
Called by Nuclide when the server has received a chat message that is to be distributed amongst all c...
Definition: NSGameRules.qc:331
virtual void RestoreComplete(void)
Called when the entity has been successfully restored from a savegame file.
Definition: NSGameRules.qc:53
virtual bool IsMultiplayer(void)
Returns if the gamerule is a multiplayer game.
Definition: NSGameRules.qc:275
virtual void PlayerPain(NSClientPlayer)
Overridable: Called when a NSClientPlayer feels pain.
Definition: NSGameRules.qc:112
virtual void Restore(string, string)
Similar to NSIO::SpawnKey but for save-game fields.
Definition: NSGameRules.qc:37
virtual void PlayerDisconnect(NSClientPlayer)
Overridable: Called when a NSClientPlayer leaves the server.
Definition: NSGameRules.qc:96
virtual void LevelNewParms(void)
Overridable: Called to set up new level parms for any NSClientPlayer.
Definition: NSGameRules.qc:134
virtual void PlayerPostFrame(NSClientPlayer)
Overridable: Called after running physics on the NSClientPlayer in question.
Definition: NSGameRules.qc:127
virtual bool InIntermission(void)
Returns if the gamerules find themselves in an intermission.
Definition: NSGameRules.qc:257
virtual void IntermissionEnd(void)
Called when intermission ends.
Definition: NSGameRules.qc:301
virtual void IntermissionStart(void)
Called when intermission starts.
Definition: NSGameRules.qc:168
virtual bool ClientCommand(NSClient, string)
Overridable: Called when a client issues a client command.
Definition: NSGameRules.qc:78
virtual bool PlayerCanAttack(NSClientPlayer)
Overridable: Called to check if a NSClientPlayer can attack.
Definition: NSGameRules.qc:319
nonvirtual void DamageRadius(vector, entity, float, float, bool, int)
Overridable: shim to handle application of indirect radius damage.
Definition: NSGameRules.qc:295
virtual void PlayerConnect(NSClientPlayer)
Overridable: Called when a NSClientPlayer joins the server.
Definition: NSGameRules.qc:90
virtual bool IsTeamplay(void)
Returns if this gamerule considers itself teamplay oriented.
Definition: NSGameRules.qc:270
virtual void IntermissionCycle(void)
Called when the intermission system calls a new map.
Definition: NSGameRules.qc:183
virtual void PlayerPreFrame(NSClientPlayer)
Overridable: Called before running physics on the NSClientPlayer in question.
Definition: NSGameRules.qc:122
virtual void PlayerSpawn(NSClientPlayer)
Overridable: Called when a NSClientPlayer spawns, called sometime after joining.
Definition: NSGameRules.qc:117
virtual void ChatMessageTeam(NSClient, string)
Called by Nuclide when the server has received a chat message that is to be distributed amongst all c...
Definition: NSGameRules.qc:348
virtual int MaxItemPerSlot(int)
Overridable: Returns how many items players can carry in a given slot.
Definition: NSGameRules.qc:162
virtual void PlayerDeath(NSClientPlayer)
Overridable: Called when a NSClientPlayer dies in the game.
Definition: NSGameRules.qc:107
virtual bool ImpulseCommand(NSClient, float)
Overridable: Called when a client issues an impulse command.
Definition: NSGameRules.qc:83
void NSGameRules(void)
Definition: NSGameRules.qc:22
virtual bool MonstersSpawn(void)
Overridable: Returns if NSMonster or NSTalkMonster entities can spawn.
Definition: NSGameRules.qc:263
This class is responsible for handling core entity functionality.
Definition: NSIO.h:27
damageType_t
All available damage types.
Definition: damage.h:19