sm-plugins/includes/zr_grenade_effects.inc

48 lines
1.7 KiB
PHP
Raw Normal View History

/**
* Called when a player is about to be freezed by a grenade
*
* @param client The victim index
* @param attacker The client index who threw the grenade
* @param duration The freeze duration, set by reference
* @return Plugin_Changed to apply new values, Plugin_Contninue to allow as is and >= Plugin_Handled to block
*/
forward Action:ZR_OnClientFreeze(client, attacker, &Float:duration);
2018-08-07 22:34:59 +02:00
/**
* Called when a player has been freezed by a grenade
*
* @param client The victim index
* @param attacker The client index who threw the grenade
* @param duration The freeze duration
* @noreturn
*/
forward ZR_OnClientFreezed(client, attacker, Float:duration);
2018-08-07 22:34:59 +02:00
/**
* Called when a player is about to be ignited by a grenade
*
* @param client The victim index
* @param attacker The client index who threw the grenade
* @param duration The ignite duration, set by reference
* @return Plugin_Changed to apply new values, Plugin_Contninue to allow as is and >= Plugin_Handled to block
*/
forward Action:ZR_OnClientIgnite(client, attacker, &Float:duration);
2018-08-07 22:34:59 +02:00
/**
* Called when a player has been ignited by a grenade
*
* @param client The victim index
* @param attacker The client index who threw the grenade
* @param duration The freeze duration
* @noreturn
*/
forward ZR_OnClientIgnited(client, attacker, Float:duration);
2018-08-07 22:34:59 +02:00
/**
2018-08-07 22:34:59 +02:00
* Called when a grenade will get his effect
*
2018-08-07 22:34:59 +02:00
* @param client Client that throw the grenade
* @param grenade Grenade index
* @return Plugin_Continue to allow as is and Plugin_Handled to block effect in the grenade
*/
forward Action:ZR_OnGrenadeEffect(client, grenade);