entities package

Module contents

Provides entity based functionality.

class entities.BaseEntityGenerator

Bases: Boost.Python.instance

__init__((object)arg1) → None

__init__( (object)arg1, (str)arg2) -> None

__init__( (object)arg1, (str)arg2, (bool)arg3) -> None

class entities.BaseEntityHandle

Bases: Boost.Python.instance

__init__((object)arg1) → None

__init__( (object)arg1, (BaseEntityHandle)arg2) -> None

__init__( (object)arg1, (int)arg2) -> None

__init__( (object)arg1, (Channel)arg2, (Channel)arg3) -> None

init((BaseEntityHandle)arg1, (Channel)entry, (Channel)serial_number) → None
is_valid((BaseEntityHandle)arg1) → bool :

Returns whether the handle has been initted with any values.

set((BaseEntityHandle)arg1, (HandleEntity)entity) → BaseEntityHandle :

Assigns a value to the handle.

term((BaseEntityHandle)arg1) → None
to_int((BaseEntityHandle)arg1) → int
entry_index
serial_number
class entities.CheckTransmitInfo

Bases: Boost.Python.instance

__init__((object)arg1) → None
areas_networked

Number of networked areas.

client
map_areas

Number of map areas.

pvs_size

PVS size in bytes.

class entities.Collideable

Bases: Boost.Python.instance

__init__()

Raises an exception This class cannot be instantiated from Python

entity_handle
class entities.Edict

Bases: _entities._BaseEdict

__init__((object)arg1) → None
collideable

Returns its Collideable instance.

class entities.EntityGenerator

Bases: Boost.Python.instance

__init__((object)arg1) → None

__init__( (object)arg1, (str)arg2) -> None

__init__( (object)arg1, (str)arg2, (bool)arg3) -> None

class entities.EntityListener

Bases: Boost.Python.instance

__init__((object)arg1) → None
class entities.GlobalEntityList

Bases: Boost.Python.instance

__init__()

Raises an exception This class cannot be instantiated from Python

add_entity_listener((GlobalEntityList)arg1, (EntityListener)arg2) → None
remove_entity_listener((GlobalEntityList)arg1, (EntityListener)arg2) → None
class entities.HandleEntity

Bases: Boost.Python.instance

__init__()

Raises an exception This class cannot be instantiated from Python

basehandle
class entities.ServerClassGenerator

Bases: Boost.Python.instance

__init__((object)arg1) → None
class entities.ServerEntity

Bases: _entities.ServerUnknown

__init__()

Raises an exception This class cannot be instantiated from Python

lookup_attachment((ServerEntity)arg1, (str)arg2) → int :

Return the attachment index matching the given name.

Parameters:name (str) – The name of the attachment.
Return type:int
lookup_bone((ServerEntity)arg1, (str)arg2) → int :

Return the bone index matching the given name.

Parameters:name (str) – The name of the bone.
Return type:int
model_handle

Return the handle of the entity’s model.

Return type:int
model_header

Return the entity’s model header.

Return type:ModelHeader
model_index

Returns the model index for this entity.

Return type:int
model_name

Return the name of the model this entity is using.

Return type:str
class entities.ServerNetworkable

Bases: Boost.Python.instance

__init__()

Raises an exception This class cannot be instantiated from Python

area_num((ServerNetworkable)arg1) → int
release((ServerNetworkable)arg1) → None
base_entity
classname

Returns the class name of this entity.

edict

Returns the edict_t instance of this entity.

entity_handle

Returns the HandleEntity instance of this entity.

pvs_info

Returns the current visible data.

server_class

Returns the ServerClass instance of this entity.

class entities.ServerUnknown

Bases: _entities.HandleEntity

__init__()

Raises an exception This class cannot be instantiated from Python

is_networked((ServerUnknown)arg1) → bool :

Return True if the entity is networked.

base_entity

Returns the CBasEntity pointer for this entity.

class_name

Return the entity’s classname.

classname

Return the entity’s classname.

collideable

Returns the Collideable object for this entity.

networkable

Returns the ServerNetworkable object for this entity.

class entities.TakeDamageInfo

Bases: Boost.Python.instance

__init__((object)arg1) → None

__init__( (object)arg1) -> object

ammo
attacker
base_damage
bullet

Not implemented on this engine.

damage
damaged_other_players
force
inflictor
penetrated
position
radius

Not implemented on this engine.

recoil

Not implemented on this engine.

reported_position
stats
type
weapon