156 virtual void Save(
float);
157 virtual void Restore(
string,
string);
159 virtual void Input(entity,
string,
string);
249 virtual string Title(
void);
262 float m_flIntermissionTime;
263 float m_flIntermissionCycle;
264 entity m_eIntermissionPoint;
269var
float g_ruleCProgs;
270var
string g_ruleCName;
272#define CGameRules ncRuleDelegate
273#define RULEMAP(x, y, z) x.y = externvalue(g_ruleCProgs, z); if (!x.y) { x.y = ncRuleDelegate::y; }
275void RuleC_Init(
void);
This entity class represents an object with choreographed/free-form movement.
Definition Actor.h:93
This entity class is the lowest client/player class.
Definition Client.h:34
This class is responsible for handling groups of key/value pairs.
Definition Dict.h:35
ncEntity is the lowest of the user-accessible entity class.
Definition Entity.h:75
void ncIO(void)
Definition IO.qc:18
This entity class represents every player client.
Definition Player.h:142
This class represents active gamerules.
Definition GameRules.h:151
virtual void FrameStart(void)
Overridable: Called every server frame.
Definition GameRules.qc:76
virtual void PlayerDisconnect(ncPlayer)
Overridable: Called when a ncPlayer leaves the server.
Definition GameRules.qc:113
virtual void IntermissionToPlayer(ncPlayer)
Run to send a specific player to an intermission.
Definition GameRules.qc:270
virtual void InitPostEnts(void)
Overridable: Called when all map entities have initialized.
Definition GameRules.qc:65
virtual int MaxItemPerSlot(int)
Overridable: Returns how many items players can carry in a given slot.
Definition GameRules.qc:197
virtual void LevelNewParms(void)
Overridable: Called to set up new level parms for any ncPlayer.
Definition GameRules.qc:169
virtual void PlayerPreFrame(ncPlayer)
Overridable: Called before running physics on the ncPlayer in question.
Definition GameRules.qc:157
virtual void NPCDeath(ncActor, ncEntity, ncEntity)
Overridable:: Called when an NPC gets killed.
Definition GameRules.qc:124
nonvirtual ncRuleDelegate ActiveInstance(void)
Definition GameRules.qc:411
virtual void PlayerSpawn(ncPlayer)
Overridable: Called when a ncPlayer spawns, called sometime after joining.
Definition GameRules.qc:152
virtual bool IsTeamplay(void)
Returns if this gamerule considers itself teamplay oriented.
Definition GameRules.qc:306
virtual void RestoreComplete(void)
Called when the entity has been successfully restored from a savegame file.
Definition GameRules.qc:57
virtual void LevelChangeParms(ncPlayer)
Overridable: Called to store parms for a specific ncPlayer.
Definition GameRules.qc:174
virtual void Precache(void)
Overridable: Called from initents().
Definition GameRules.qc:70
virtual bool ClientCommand(ncClient, string)
Overridable: Called when a client issues a client command.
Definition GameRules.qc:96
virtual bool PlayerRequestRespawn(ncPlayer)
Overridable: called when a ncPlayer requests a respawn.
Definition GameRules.qc:341
void ncRuleDelegate(void)
Definition GameRules.qc:22
virtual void ChatMessageTeam(ncClient, string)
Called by Nuclide when the server has received a chat message that is to be distributed amongst all c...
Definition GameRules.qc:370
virtual void IntermissionEnd(void)
Called when intermission ends.
Definition GameRules.qc:317
virtual void PlayerConnect(ncPlayer)
Overridable: Called when a ncPlayer joins the server.
Definition GameRules.qc:108
virtual void Save(float)
Handles saving a copy of this entity to a given filehandle.
Definition GameRules.qc:28
virtual void ChatMessageAll(ncClient, string)
Called by Nuclide when the server has received a chat message that is to be distributed amongst all c...
Definition GameRules.qc:353
virtual bool PlayerRequestTeam(ncPlayer, int team)
Overridable: called when a ncPlayer requests joining a specific team.
Definition GameRules.qc:347
virtual void IntermissionCycle(void)
Called when the intermission system calls a new map.
Definition GameRules.qc:217
virtual bool ImpulseCommand(ncClient, float)
Overridable: Called when a client issues an impulse command.
Definition GameRules.qc:102
virtual void PlayerPain(ncPlayer, ncActor, ncDict)
Overridable: Called when a ncPlayer feels pain.
Definition GameRules.qc:146
virtual void Input(entity, string, string)
Called when we are being prompted by another object/function with an input message.
Definition GameRules.qc:52
virtual bool MonstersSpawn(void)
Overridable: Returns if ncMonster or ncTalkMonster entities can spawn.
Definition GameRules.qc:299
virtual string Title(void)
Returns the title of the gamemode running.
Definition GameRules.qc:401
virtual bool InIntermission(void)
Returns if the gamerules find themselves in an intermission.
Definition GameRules.qc:293
virtual bool IsMultiplayer(void)
Returns if the gamerule is a multiplayer game.
Definition GameRules.qc:311
virtual void PlayerPostFrame(ncPlayer)
Overridable: Called after running physics on the ncPlayer in question.
Definition GameRules.qc:162
virtual bool ConsoleCommand(ncPlayer, string)
Overridable: Called when the server issues a console command.
Definition GameRules.qc:91
nonvirtual void LinkProgs(void)
Definition GameRules.qc:417
virtual void PlayerDeath(ncPlayer, ncEntity, ncEntity, string)
Overridable: Called when a ncPlayer dies in the game.
Definition GameRules.qc:129
virtual bool PlayerCanAttack(ncPlayer)
Overridable: Called to check if a ncPlayer can attack.
Definition GameRules.qc:335
virtual void Restore(string, string)
Similar to ncIO::SpawnKey() but for save-game fields.
Definition GameRules.qc:36
virtual void IntermissionStart(void)
Called when intermission starts.
Definition GameRules.qc:203
virtual void PlayerKill(ncPlayer)
Overridable: Called when a ncPlayer issues the kill console command.
Definition GameRules.qc:118