Functions in reapi_engine.inc
List of functions
| Function | Description |
|---|---|
| set_entvar | Sets entvars data for an entity. Use the var_* EntVars enum |
| get_entvar | Returns entvar data from an entity. Use the var_* EntVars enum |
| set_ucmd | Sets usercmd data. Use the ucmd_* UCmd enum |
| get_ucmd | Returns usercmd data from an entity. Use the ucmd_* UCmd enum |
| set_netchan | Sets netchan data. Use the net_* NetChan enum |
| get_netchan | Returns metchan data from an client. Use the net_* NetChan enum |
| set_netadr | Sets a NetAdr var. |
| get_netadr | Returns a NetAdr var |
| get_key_value | Gets value for key in buffer |
| set_key_value | Sets value for key in buffer |
| get_key_value_buffer | Gets an AMXX string buffer from a infobuffer pointer |
| set_key_value_buffer | Sets value string to entire buffer |
| GetBonePosition | Gets the position of the bone |
| GetAttachment | Gets the position of the attachment |
| SetBodygroup | Sets body group value based on entity's model group |
| GetBodygroup | Gets body group value based on entity's model group |
| GetSequenceInfo | Gets sequence information based on entity's model current sequence index |
| CheckVisibilityInOrigin | Test visibility of an entity from a given origin using either PVS or PAS |
| rh_set_mapname | Sets the name of the map. |
| rh_get_mapname | Gets the name of the map. |
| rh_reset_mapname | Reverts back the original map name. |
| rh_emit_sound2 | Emits a sound from an entity from the engine. |
| rh_update_user_info | Forces an userinfo update |
| rh_drop_client | Kicks a client from server with message |
| rh_get_net_from | - |
| rh_get_client_connect_time | Returns client's netchan playing time in seconds. |
| rh_is_entity_fullpacked | Checks if a specific entity is present in the host's outgoing entity table for a given frame, indicating it has passed the visibility check (AddToFullPack) and is ready for client transmission. |
| rh_get_realtime | Get real game time throughout the entire server lifecycle. |
| RegisterMessage | Registers a callback function to be called when a game message with the specified ID is received. |
| UnregisterMessage | Unregisters a game message hook identified by the specified handle. |
| EnableHookMessage | Enables a game message hook identified by the specified handle. |
| DisableHookMessage | Disables a game message hook identified by the specified handle. |
| SetMessageData | Sets the message data in the current game message. |
| GetMessageData | Gets the message data value in the current game message |
| GetMessageOrigData | Gets the message data original value in the current game message. |
| GetMessageArgType | Retrieves the type of the argument at the specified number in the current game message. |
| GetMessageArgsNum | Retrieves the number of argument in the current game message. |
| SetMessageBlock | Sets the block type for the specified message ID. |
| GetMessageBlock | Retrieves the block type for the specified message ID. |
| IsMessageDataModified | Checks if the specified type of message data has been modified This native allows you to check if any part of the message data, such as its destination, type, origin, receiver, or any the specific argument of the message, has been modified |
| ResetModifiedMessageData | Resets a specific type of message data to its original value |