NOTE: This is an archive of the old wiki.
Expect content to be outdated and links to be broken.

User Tools


python:gempgamerules:cgetokenmanager

GEMPGameRules::CGETokenManager

Class Description

<python> class CGETokenManager:

None AddTokenType( string classname, int limit = 1, int locations = GEGlobal.SPAWN_AMMO )
None RemoveTokenType( string classname )
None RemoveTokenEnt( CBaseEntity token, bool adjustlimit = True )
None RemoveAllTokens()
None RespawnAllTokens()
None SetTokenSpawnLimit( string classname, int limit )
None SetTokenSpawnLocation( string classname, int locations )
None SetTokenRespawnDelay( string classname, float delay )
None SetTokenWorldModel( string classname, string model )
None SetTokenViewModel( string classname, string model )
None SetTokenDropType( string classname, int droptype ) # Currently Unsupported #
None SetTokenAllowSwitch( string classname, bool state )
None SetTokenCapturable( string classname, bool state ) # Automatically spawns capture points if True #
None SetTokenTeam( string classname, int teamid )
None SetTokenGlow( string classname, bool state, GEUtil.CColor glowcolor = GEUtil.CColor(255,255,255), float maxdist = 350.0 )
CBaseEntity GetTokenByType( string classname, int index )
CBaseEntity GetTokenByUniqueID( string classname, int uniqueid )
int GetTokenIndex( CBaseEntity token )
CGEPlayer GetTokenHolder( string classname, int index )
int GetTokenSpawnCount( string classname )

</python>

Description

Methods

AddTokenType

RemoveTokenType

RemoveTokenEnt

RemoveAllTokens

RespawnAllTokens

SetTokenSpawnLimit

SetTokenSpawnLocation

SetTokenRespawnDelay

SetTokenWorldModel

SetTokenViewModel

SetTokenDropType

SetTokenAllowSwitch

SetTokenCapturable

SetTokenTeam

SetTokenGlow

GetTokenByType

GetTokenByUniqueID

GetTokenIndex

GetTokenHolder

GetTokenSpawnCount

python/gempgamerules/cgetokenmanager.txt ยท Last modified: 2023/09/03 18:43 by 127.0.0.1