Updated all file headlines, and added phrases for zspawn abuse.

This commit is contained in:
Greyscale 2009-05-06 02:28:09 +02:00
parent 476eface23
commit 2ac56b1969
46 changed files with 216 additions and 139 deletions

View File

@ -360,29 +360,12 @@
} }
// =========================== // ===========================
// ZHP // ZSpawn
// =========================== // ===========================
// General "ZSpawn double spawn"
"ZHP enable"
{ {
"en" "HP display enabled, your real HP will be displayed after infection." "en" "ZSpawn can only be used if you joined late during a round in progress."
}
"ZHP disable"
{
"en" "HP display disabled."
"ru" "Отображение здоровья включено."
}
// HUD
"Display HP"
{
"#format" "{1:d}"
"en" "HP: {1}"
"ru" "Здоровье: {1}"
} }
// =========================== // ===========================
@ -427,6 +410,32 @@
"en" "Teleported back to spawn. (Count: {1}/{2})" "en" "Teleported back to spawn. (Count: {1}/{2})"
} }
// ===========================
// ZHP
// ===========================
// General
"ZHP enable"
{
"en" "HP display enabled, your real HP will be displayed after infection."
}
"ZHP disable"
{
"en" "HP display disabled."
"ru" "Отображение здоровья включено."
}
// HUD
"Display HP"
{
"#format" "{1:d}"
"en" "HP: {1}"
"ru" "Здоровье: {1}"
}
"Unfair camping" "Unfair camping"

View File

@ -3,7 +3,8 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: (base) zombiereloaded.sp * File: zombiereloaded.sp
* Type: Base
* Description: Plugins base file. * Description: Plugins base file.
* *
* ============================================================================ * ============================================================================

View File

@ -4,7 +4,8 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: account.inc * File: account.inc
* Description: (Module) Handles client's accounts. (cash) * Type: Module
* Description: Handles client's accounts. (cash)
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -1,9 +1,13 @@
/** /*
* ==================== * ============================================================================
*
* Zombie:Reloaded * Zombie:Reloaded
*
* File: antistick.inc * File: antistick.inc
* Author: Greyscale * Type: Module
* ==================== * Description: Antistick system.
*
* ============================================================================
*/ */
/** /**

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: config.inc * File: config.inc
* Type: Core
* Description: Config API and executing. * Description: Config API and executing.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: cvars.inc * File: cvars.inc
* Type: Core
* Description: Config creation and cvar control. * Description: Config creation and cvar control.
* *
* ============================================================================ * ============================================================================

View File

@ -4,7 +4,8 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: damage.inc * File: damage.inc
* Description: (Core) Modify damage stuff here. * Type: Core
* Description: Modify damage stuff here.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -3,7 +3,8 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: (Core) event.inc * File: event.inc
* Type: Core
* Description: Event hooking and forwarding. * Description: Event hooking and forwarding.
* *
* ============================================================================ * ============================================================================

View File

@ -3,7 +3,8 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: (Core) global.inc * File: global.inc
* Type: Core
* Description: External API. * Description: External API.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: hitgroup.inc * File: hitgroup.inc
* Type: Core
* Description: API for loading hitgroup specific settings. * Description: API for loading hitgroup specific settings.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: infect.inc * File: infect.inc
* Type: Core
* Description: Client infection functions. * Description: Client infection functions.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: jumpboost.inc * File: jumpboost.inc
* Type: Module
* Description: Modified jump vector magnitudes. * Description: Modified jump vector magnitudes.
* *
* ============================================================================ * ============================================================================

View File

@ -1,9 +1,13 @@
/** /*
* ==================== * ============================================================================
*
* Zombie:Reloaded * Zombie:Reloaded
*
* File: knockback.inc * File: knockback.inc
* Author: Greyscale * Type: Module
* ==================== * Description: Handles knockback on clients.
*
* ============================================================================
*/ */
/** Client has been hurt. /** Client has been hurt.

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: log.inc * File: log.inc
* Type: Core
* Description: Logging API. * Description: Logging API.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: menu.inc * File: menu.inc
* Type: Core
* Description: Base menu functions for the plugin. * Description: Base menu functions for the plugin.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: models.inc * File: models.inc
* Type: Core
* Description: Model validation and API * Description: Model validation and API
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: napalm.inc * File: napalm.inc
* Type: Module
* Description: Grenades burn zombies when damaged by them. * Description: Grenades burn zombies when damaged by them.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: apply.inc * File: apply.inc
* Type: Core
* Description: Functions for applying attributes and effects on a client. * Description: Functions for applying attributes and effects on a client.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: attributes.inc * File: attributes.inc
* Type: Core
* Description: Retrieving class attributes from certain caches. * Description: Retrieving class attributes from certain caches.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: classevents.inc * File: classevents.inc
* Type: Core
* Description: Functions for handling class related events. * Description: Functions for handling class related events.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: classmenus.inc * File: classmenus.inc
* Type: Core
* Description: Provides functions for managing class menus. * Description: Provides functions for managing class menus.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: clientalpha.inc * File: clientalpha.inc
* Type: Core
* Description: Handles transparency on clients. * Description: Handles transparency on clients.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: clientoverlays.inc * File: clientoverlays.inc
* Type: Core
* Description: Handles overlays on clients, as a part of class attributes. * Description: Handles overlays on clients, as a part of class attributes.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: filtertools.inc * File: filtertools.inc
* Type: Core
* Description: Class system tools; validating, getting indexes or lists * Description: Class system tools; validating, getting indexes or lists
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: healthregen.inc * File: healthregen.inc
* Type: Core
* Description: Functions for managing health regeneration on a client. * Description: Functions for managing health regeneration on a client.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: playerclasses.inc * File: playerclasses.inc
* Type: Core
* Description: Provides functions for managing classes. * Description: Provides functions for managing classes.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: respawn.inc * File: respawn.inc
* Type: Module
* Description: Players come back to life * Description: Players come back to life
* *
* ============================================================================ * ============================================================================

View File

@ -4,7 +4,8 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: roundend.inc * File: roundend.inc
* Description: (Core) Handles round end actions. * Type: Core
* Description: Handles round end actions.
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: sayhooks.inc * File: sayhooks.inc
* Type: Core
* Description: Hook plugin say commands and redirect to their handling module. * Description: Hook plugin say commands and redirect to their handling module.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: ambientsounds.inc * File: ambientsounds.inc
* Type: Core
* Description: Plays ambient sounds to clients. * Description: Plays ambient sounds to clients.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: soundeffects.inc * File: soundeffects.inc
* Type: Core
* Description: Basic sound-management API. * Description: Basic sound-management API.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: zombiesounds.inc * File: zombiesounds.inc
* Type: Core
* Description: Zombie sound effects. * Description: Zombie sound effects.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: spawnprotect.inc * File: spawnprotect.inc
* Type: Module
* Description: Protects late-joining players from zombies for x seconds. * Description: Protects late-joining players from zombies for x seconds.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: tools.inc * File: tools.inc
* Type: Core
* Description: Find offsets and signatures. * Description: Find offsets and signatures.
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: tools_functions.inc * File: tools_functions.inc
* Type: Core
* Description: API for offsets/signatures exposed in tools.inc * Description: API for offsets/signatures exposed in tools.inc
* *
* ============================================================================ * ============================================================================

View File

@ -1,9 +1,13 @@
/** /*
* ==================== * ============================================================================
*
* Zombie:Reloaded * Zombie:Reloaded
* File: translations.inc *
* Author: Greyscale * File: translation.inc
* ==================== * Type: Core
* Description: Translation parsing functions.
*
* ============================================================================
*/ */
FormatTextString(String:text[], maxlen) FormatTextString(String:text[], maxlen)

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: visualeffects.inc * File: visualeffects.inc
* Type: Module
* Description: Visual effects such as map darkening, fog, etc.. * Description: Visual effects such as map darkening, fog, etc..
* *
* ============================================================================ * ============================================================================

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: markethandler.inc * File: markethandler.inc
* Type: Core
* Description: Handles market (optional plugin) API, natives, and forwards. * Description: Handles market (optional plugin) API, natives, and forwards.
* *
* ============================================================================ * ============================================================================

View File

@ -1,9 +1,13 @@
/** /*
* ==================== * ============================================================================
*
* Zombie:Reloaded * Zombie:Reloaded
*
* File: menu_weapons.inc * File: menu_weapons.inc
* Author: Greyscale * Type: Core
* ==================== * Description: Handles weapons management menu.
*
* ============================================================================
*/ */
/** /**

View File

@ -1,9 +1,13 @@
/** /*
* ==================== * ============================================================================
*
* Zombie:Reloaded * Zombie:Reloaded
* File: restriction.inc *
* Author: Greyscale * File: restrict.inc
* ==================== * Type: Core
* Description: Weapon restriction system.
*
* ============================================================================
*/ */
/** /**

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: weapons.inc * File: weapons.inc
* Type: Core
* Description: API for all weapon-related functions. * Description: API for all weapon-related functions.
* *
* ============================================================================ * ============================================================================

View File

@ -1,9 +1,13 @@
/** /*
* ==================== * ============================================================================
*
* Zombie:Reloaded * Zombie:Reloaded
* File: admin.inc *
* Author: Richard H * File: zadmin.inc
* ==================== * Type: Core
* Description: Handle admin functions and menus.
*
* ============================================================================
*/ */
#include "include/adminmenu.inc" #include "include/adminmenu.inc"

View File

@ -4,8 +4,8 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: zhp.inc * File: zhp.inc
* Type: Module
* Description: Displays HP to zombies. * Description: Displays HP to zombies.
* Author: Greyscale, Richard Helgeby
* *
* ============================================================================ * ============================================================================
*/ */

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: zombiereloaded.inc * File: zombiereloaded.inc
* Type: Core
* Description: General plugin functions and defines. * Description: General plugin functions and defines.
* *
* ============================================================================ * ============================================================================

View File

@ -3,7 +3,8 @@
* *
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: (Module) zspawn.inc * File: zspawn.inc
* Type: Module
* Description: Handles zspawn command, spawns late-joining clients into the game. * Description: Handles zspawn command, spawns late-joining clients into the game.
* *
* ============================================================================ * ============================================================================
@ -42,35 +43,41 @@ ZSpawnOnRoundStart()
} }
} }
ZSpawnClient(client) /**
* Spawns a late-joining client into the game.
*
* @param client The client index.
* @return True if successful, false otherwise.
*/
bool:ZSpawnClient(client)
{ {
// If zspawn is disabled, then stop. // If zspawn is disabled, then stop.
new bool:zspawn = GetConVarBool(g_hCvarsList[CVAR_ZSPAWN]); new bool:zspawn = GetConVarBool(g_hCvarsList[CVAR_ZSPAWN]);
if (!zspawn) if (!zspawn)
{ {
ZR_PrintToChat(client, "Feature is disabled"); ZR_PrintToChat(client, "Feature is disabled");
return; return false;
}
// If client isn't on a team, then stop.
if (!ZRIsClientOnTeam(client))
{
return;
} }
// If client is alive, then stop. // If client is alive, then stop.
if (IsPlayerAlive(client)) if (IsPlayerAlive(client))
{ {
return; // Tell client the command may only be used when joining late.
ZR_PrintToChat(client, "Must be alive");
return false;
} }
// Block if client has already played during this round. // Block if client has already played during this round.
new serial = GetClientSerial(client); new serial = GetClientSerial(client);
if (g_bZSpawnBlock[serial]) if (g_bZSpawnBlock[serial])
{ {
return; // Tell client the command may only be used when joining late.
ZR_PrintToChat(client, "ZSpawn double spawn");
return false;
} }
// Tell respawn module to respawn client. // Tell respawn module to respawn client.
RespawnSpawnClient(client); RespawnSpawnClient(client);
return true;
} }

View File

@ -4,6 +4,7 @@
* Zombie:Reloaded * Zombie:Reloaded
* *
* File: ztele.inc * File: ztele.inc
* Type: Module
* Description: ZTele handle functions. * Description: ZTele handle functions.
* *
* ============================================================================ * ============================================================================