Cog Files


Multiplayer Reference


Mutltiplayer reference verbs are of two types "control" and those that process "information".Generaly these are applicable to Multiplayer games

AddScoreToTeamMembers
ClearMultiModeFlags
CreateBackpack
GetAbsoluteMaxPlayers
GetMaxPlayers
GetMultiModeFlags
GetNumPlayers
GetNumPlayersInTeam
GetPlayerKilled
GetPlayerKills

GetPlayerScore
GetPlayerSuicides
GetPlayerTeam

GetRespawnMask
GetScoreLimit
GetTeamScore
GetTimeLimit
IsMulti
IsServer
NthBackpackBin
NthBackpackValue
NumBackpackItems
PickupBackpack
SetMultiModeFlags
SetPlayerKilled
SetPlayerKills
SetPlayerScore
SetPlayerSuicides
SetPlayerTeam
SetRespawnMask
SetScoreLimit
SetTeamScore
SetTimeLimit
SyncScores
SyncSector
SyncSurface
SyncThingAttachment
SyncThingPos
SyncThingState


AddScoreToTeamMembers() Control

Adds a score to all team members.

Use: AddScoreToTeamMembers(int,team int);


ClearMultiModeFlags() Control

Clears the specified flags . Multiplayer Mode flags

Use: ClearMultiModeFlags(flags);


CreateBackpack() Control

Creates a backpack with weapons of dead player.

Use: CreateBackPack(player);


GetAbsoluteMaxPlayers() Info

Gets the max amount of players game engine can handle.

Use: GetAbsoluteMaxPlayers(?); not used in cogs ,not sure.


GetMaxPlayers() Info

Gets Max players allowed in game.

Use: Max = GetMaxPlayers(?); not used in cogs,not sure.


GetMultiModeFlags() Info

Retrives the Multiplayer game mode flags. Multiplayer Mode flags

Use: Mode = GetMultiModeFlags(


GetNumPlayers() Info

Gets the number of players in game.

Use: NumPlayers = GetNumPlayers(); Not used in cogs, not sure


GetNumPlayersInTeam() Info

Gets the number of players in Team.

Use: NumPlayers = GetNumPlayersInTeam(team); returns the number of players in team


GetPlayerKilled() Info

Gets how many times the player has been killed.

Use: Killed = GetPlayerKilled(Player); not sure , not used in cog.


GetPlayerKills() Info

Get how many kills the player has .

Use: Kills = GetPlayerKills(player); not sure not used in cogs.


GetPlayerScore() Info

Gets the players score.

Use: Score = GetPlayerScore(player); returns players score


GetPlayerSuicides() Info

Gets the number of times player killed self.

Use: SelfDestructed = GetPlayerSuicides(player); returns Number of self kills.


Info GetPlayerTeam()

Gets the team player is on.

Use: Team = GetPlayerTeam(player); returns the team int.


GetRespawnMask() Info

Gets a respawn mask for player.Respawn CTF Flags

Use: Mask = GetRespawnMask(Player); Not used in cogs, so not sure of this.


GetScoreLimit() Info

Gets the score limit of game.

Use: Limit = GetScoreLimit(); returns the score limit


GetTeamScore() Info

Gets the team score.

Use: Score = GetTeamScore(team);returns the team score, Not used in cogs, so not sure of this.


GetTimeLimit() Info

Gets time limit of game.

Use: TimeLimit = GetTimeLimit(); returns the time limit of game.


IsMulti() Info

Is it a multiplayer game.

Use: Multi = IsMulti(); returns 1 if multi, 0 if not.


IsServer() Info

Is machine the server.

Use: Server = IsServer(); returns 1 if server, 0 if not.


NthBackpackBin()

?

?


NthBackpackValue()

?

?


NumBackpackItems()

?

?


PickupBackpack() Control

Gives the BackPack to Player.

Use: PickupBackPack(player,backpack);


SetMultiModeFlags() Control

Sets the specified Multiplayer mode flags. Multiplayer Mode flags

Use: SetMultiModeFlags(flags);


SetPlayerKilled() Control

Sets the number of times player has been killed.

Use: SetPlayerKilled(player, int); Int is value of killed times.


SetPlayerKills() Control

Sets the number of kills player has.

Use: SetPlayerKills(player,int); Int is number of kills.


SetPlayerScore() Control

Sets a players Score.

Use: SetPlayerScore(player,int);


SetPlayerSuicides() Control

Set Player self kills.

Use: SetPlayerSuicdes(player,int);


SetPlayerTeam() Control

Sets the team player is on.

Use: SetPlayerTeam(player,int); Int usualy 1 or 2.


SetRespawnMask() Control

Sets a mask for respawing player. Respawn CTF Flags

Use: SetRespawnMask(player,flags);


SetScoreLimit() Control

Sets the game score limit.

Use: SetScoreLimit(int): not used in cogs , so not sure if correct.


SetTeamScore()

Sets team score.

use: SetTeamScore(Team,int);


SetTimeLimit()

Sets Time limit for game.

Use: SetTimeLimit(Int); not used in cogs,not sure of this.


SyncScores() Control

Syncronises the score on all machines.

Use: SyncScores();


SyncSector() Control

Syncs a sector's properties over the network.

use: SyncSector(sector);


SyncSurface() Control

Syncronises a surface (Cel values) over the network.

use: SyncSurface(surface);


SyncThingAttachment() Control

Syncronises attachment of a thing over network.

Use: SyncThingAttachment(Thing);


SyncThingPos() Control

Syncronises position of thing over the network.

Use: SyncThingPos(thing);


SyncThingState() Control

Syncronises the state of the nation :-) hehe

?