forward pfn_touch(ptr, ptd);
Called when two entities touch.
- ptr — Index of entity being touched
- ptd — Index of entity touching
PLUGIN_CONTINUE to ignore, PLUGIN_HANDLED or higher to block
forward server_frame();
Called at the start of every server frame.
-
Using his forward can easily become performance-critical. More specific
hooks and forwards should be used whenever possible.
forward client_kill(id);
Called when a client types kill in console.
- id — Client index
PLUGIN_CONTINUE to ignore, PLUGIN_HANDLED or higher to block
forward client_PreThink(id);
Called at the start of each client think.
-
Using his forward can easily become performance-critical. More specific
hooks and forwards should be used whenever possible.
- id — Client index
forward client_PostThink(id);
Called after each client think.
-
Using his forward can easily become performance-critical. More specific
hooks and forwards should be used whenever possible.
- id — Client index
forward client_impulse(id, impulse);
Called when a client triggers an impulse.
- id — Client index
- impulse — Impulse triggered by client
-
PLUGIN_CONTINUE
—
to ignore, PLUGIN_HANDLED or higher to
nullify impulse (CmdStart() is not blocked)
forward client_cmdStart(id);
Called for CmdStart() on a client.
-
Use [get|set]_usercmd() to read and modify information in the usercmd
struct.
- id — Client index
PLUGIN_CONTINUE to ignore, PLUGIN_HANDLED or higher to block
forward pfn_think(entid);
Called when an entity thinks.
- entid — Entity index
PLUGIN_CONTINUE to ignore, PLUGIN_HANDLED or higher to block
forward pfn_playbackevent(flags, entid, eventid, Float:delay, Float:Origin[3], Float:Angles[3], Float:fparam1, Float:fparam2, iparam1, iparam2, bparam1, bparam2);
Called when an event is played.
- flags — Event flags
- entid — Index of entity to invoke event on
- eventid — Index of event in the precache table
- delay — Time until the event is played
- Origin — Origin to play event from
- Angles — Angles to play event with
- fparam1 — Float parameter 1 to pass along into/with the event
- fparam2 — Float parameter 2 to pass along into/with the event
- iparam1 — Integer parameter 1 to pass along into/with the event
- iparam2 — Integer parameter 2 to pass along into/with the event
- bparam1 — Boolean parameter 1 to pass along into/with the event
- bparam2 — Boolean parameter 2 to pass along into/with the event
PLUGIN_CONTINUE to ignore, PLUGIN_HANDLED or higher to block
forward pfn_keyvalue(entid);
Called when a keyvalue pair is sent to an entity.
-
Use copy_keyvalue() to retrieve the keyvalue information, and
DispatchKeyVaue() to modify it.
- entid — Entity index
PLUGIN_CONTINUE to ignore, PLUGIN_HANDLED or higher to block
forward pfn_spawn(entid);
Called when an entity is spawned.
- entid — Entity index
PLUGIN_CONTINUE to ignore, PLUGIN_HANDLED or higher to block