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
"ZHP enable"
"ZSpawn double spawn"
{
"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}"
"en" "ZSpawn can only be used if you joined late during a round in progress."
}
// ===========================
@ -427,6 +410,32 @@
"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"

View File

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

View File

@ -4,7 +4,8 @@
* Zombie:Reloaded
*
* 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
*
* File: antistick.inc
* Author: Greyscale
* ====================
* Type: Module
* Description: Antistick system.
*
* ============================================================================
*/
/**

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,7 +3,8 @@
*
* Zombie:Reloaded
*
* File: (Module) zspawn.inc
* File: zspawn.inc
* Type: Module
* 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.
new bool:zspawn = GetConVarBool(g_hCvarsList[CVAR_ZSPAWN]);
if (!zspawn)
{
ZR_PrintToChat(client, "Feature is disabled");
return;
}
// If client isn't on a team, then stop.
if (!ZRIsClientOnTeam(client))
{
return;
return false;
}
// If client is alive, then stop.
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.
new serial = GetClientSerial(client);
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.
RespawnSpawnClient(client);
return true;
}

View File

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