http://wiki.sourcepython.com/index.php/entities#get_server_entity
Also, you might try using the example I just posted in the News forums. However, once the entities_changes updates are finalized, you will also be able to use:
Syntax: Select all
from engines.precache import Model
from events import Event
from filters.players import PlayerIter
my_model = Model('models/characters/hostage_02.mdl')
@Event
def player_say(game_event):
for player in PlayerIter(return_types='player'):
start_color = player.color
player.set_model(my_model)
player.color = start_color
set_model will likely be added to the virtual_functions for CBaseEntity:
https://github.com/Source-Python-Dev-Team/Source.Python/blob/entities_changes/addons/source-python/data/source-python/virtuals/cstrike/CBaseEntity.ini#L126
That offset will likely be used in this file:
https://github.com/Source-Python-Dev-Team/Source.Python/blob/entities_changes/addons/source-python/data/source-python/entities/managers/engines/orangebox/CBaseEntity.ini