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.BaseEntityOutput

Bases: Boost.Python.instance

__init__()

Raises an exception This class cannot be instantiated from Python

event_action

Linked list of registered event actions for this output.

event_actions

Returns a generator iterating over registered event actions for this output.

fire_output = <_memory.Function object>
variant

Current variant value for this output.

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.EventAction

Bases: Boost.Python.instance

__init__()

Raises an exception This class cannot be instantiated from Python

delay

The number of seconds to wait before firing the action.

id_stamp

Unique identifier stamp.

next

The next action in the linked list.

parameter

Parameter to send, 0 if none.

target

Name of the entity(s) to cause the action in.

target_input

The name of the action to fire.

times_to_fire

The number of times to fire this event, or EVENT_FIRE_ALWAYS.

class entities.EventActionGenerator

Bases: Boost.Python.instance

__init__((object)arg1, (EventAction)arg2) → 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