Table of Contents

GEMPGameRules::CGERadarResource

Class Description

<python> class CGERadarResource:

None SetForceRadar( bool state )
None SetPlayerRangeMod( float percent )
None AddRadarContact( CBaseEntity entity, int type = GEGlobal.RADAR_TYPE_DEFAULT, bool alwaysvis = False, string icon = "", GEUtil.CColor color = GEUtil.CColor())
None DropRadarContact( CBaseEntity entity )
None IsRadarContact( CBaseEntity entity )
None DropAllContacts()

</python>

Description

description=Class to control the server/client radar resource that houses information about all the contacts that the radar displays. Use this class to add, edit, and remove contacts on the radar. //NOTE: You cannot explicitly remove a player from the radar.// |version=Beta 4.0 |namespace=[[Python_GEMPGameRules|GEMPGameRules]] |inherits=None

Methods

SetForceRadar

purpose=Force the radar to be shown even if //ge_radarallowed// is set to 0 by the server |params=bool |returns=None

SetPlayerRangeMod

purpose=Modify the designated player's range of their radar as a percentage of //ge_radarrange// |params=float **[[0-1]]** |returns=None

AddRadarContact

purpose=Add the designated entity to the radar with the parameters specified. Can be used with 1 to 5 parameters (defaults shown in italics) |params=[[GEEntity::CBaseEntity|CBaseEntity]], int //([[Python_GEGlobal|GEGlobal.RADAR_TYPE_DEFAULT]])//, bool //(False)//, string //("")//, GEUtil.CColor //(GEUtil.CColor())// |returns=None

DropRadarContact

purpose=Drop this entity from the radar. //NOTE: Players can never be dropped from the radar, calling this function on a player type will reset any special parameters set (ex. color)// |params=[[GEEntity::CBaseEntity|CBaseEntity]] |returns=None

IsRadarContact

purpose=Checks to see if the specified entity is a valid contact on the radar |params=[[GEEntity::CBaseEntity|CBaseEntity]] |returns=None

DropAllContacts

purpose=Removes all the contacts from the radar (see note about players above) |params=None |returns=None