Renamed zr_shield command to zshield so it's more chat command friendly.

This commit is contained in:
Richard Helgeby 2013-01-11 10:16:48 +01:00
parent 5b7d1b2ff3
commit 7f6b1fb938
4 changed files with 4 additions and 3 deletions

View File

@ -39,7 +39,7 @@
// "infect" - Humans are immune to infections until HP go below a threshold. Threshold at zero enable stabbing to death.
// "damage" - Zombies are immune to damage from humans/grenades, but still vulnerable to knock back.
// "delay" - Delay infection for a certain number of seconds.
// "shield" - Shield against infections (humans) or knock back (zombies) for a certain amount of seconds (similar to TF2's übercharge).
// "shield" - Shield against infections (humans) or knock back (zombies) for a certain amount of seconds (similar to TF2's übercharge). Deploy with "zshield" command.
// immunity_amount number Immunity data value (humans only). Depends on the immunity mode above:
// "infect" - HP threshold. Infection will be allowed when HP go below this value. Zero will enable stabbing to death.
// "delay" - Number of seconds the infection is delayed since first hit by a zombie.

View File

@ -1297,7 +1297,7 @@ the admin-only flag in the <span class="code">flags</span> attribute.</p>
<tr>
<td class="valueoption">shield</td>
<td>This is a temporary immunity mode which is activated by the player with
the <code>zr_shield</code> command. It will give a shield against infections (humans) or
the <code>zshield</code> command. It will give a shield against infections (humans) or
knock back (zombies) for a certain amount of seconds (immunity_amount value).
<br/><br/>
It also has a cooldown delay before the shield can be deployed again.

View File

@ -67,7 +67,7 @@ new bool:PlayerImmunityThresholdPassed[MAXPLAYERS + 1] = {false, ...};
*/
ImmunityOnCommandsCreate()
{
RegConsoleCmd("zr_shield", Command_DeployShield, "Deploy the shield, if available.");
RegConsoleCmd(SAYHOOKS_KEYWORD_ZSHIELD, Command_DeployShield, "Deploy the shield, if available.");
}
/*____________________________________________________________________________*/

View File

@ -50,6 +50,7 @@
#define SAYHOOKS_KEYWORD_ZTELE "ztele"
#define SAYHOOKS_KEYWORD_ZHP "zhp"
#define SAYHOOKS_KEYWORD_ZMARKET "zmarket"
#define SAYHOOKS_KEYWORD_ZSHIELD "zshield"
/**
* @endsection
*/