Инфо из ham_const.inc:
/**
* Description: Whether or not the entity is a player.
* Forward params: function(this);
* Return type: Integer (boolean) .
* Execute params: ExecuteHam(Ham_IsPlayer, this);
*/
« Сентябрь 2024 » | ||||||
---|---|---|---|---|---|---|
Пн | Вт | Ср | Чт | Пт | Сб | Вс |
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 |
Adguard Ключ Рабочий Adguard Ключ Бесплатно keysok.ru |
/**
* Description: Whether or not the entity is a player.
* Forward params: function(this);
* Return type: Integer (boolean) .
* Execute params: ExecuteHam(Ham_IsPlayer, this);
*/
/**
* Description: Gives ammo to the entity.
* This function is not supported for the following mods:
* Earth's Special Forces.
* Sven-Coop 4.8+, see Ham_SC_GiveAmmo instead.
* Team Fortress Classic, see Ham_TFC_GiveAmmo instead.
* Forward params: function(this, Amount, const Name[], Max)
* Return type: Integer.
* Execute params: ExecuteHam(Ham_GiveAmmo, this, amount, "type", max);
*/
/**
* Description: Adds the item to the player.
* Forward params: function(this, idPlayer);
* Return type: Integer (boolean).
* Execute params: ExecuteHam(Ham_Item_AddToPlayer, this, idPlayer);
*/
Ham_Item_AddToPlayer
/**
* Starts a ham forward back up.
* Use the return value from RegisterHam as the parameter here!
*
* @param fwd The forward to re-enable.
*/
native EnableHamForward(HamHook:fwd);
/**
* Hooks the virtual table for the specified entity's class.
* An example would be: RegisterHam(Ham_TakeDamage, id, "player_hurt");
* Look at the Ham enum for parameter lists.
* Note: This will cause hooks for the entire internal class that the entity is
* not exclusively for the provided entity.
*
* @param function The function to hook.
* @param EntityId The entity classname to hook.
* @param callback The forward to call.
* @param post Whether or not to forward this in post.
* @return Returns a handle to the forward. Use EnableHamForward/DisableHamForward to toggle the forward on or off.
*/
native HamHook:RegisterHamFromEntity(Ham:function, EntityId, const Callback[], Post=0);