Updated all file headlines, and added phrases for zspawn abuse.
This commit is contained in:
parent
476eface23
commit
2ac56b1969
@ -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"
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: (base) zombiereloaded.sp
|
||||
* Description: Plugins base file.
|
||||
* File: zombiereloaded.sp
|
||||
* Type: Base
|
||||
* Description: Plugins base file.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: account.inc
|
||||
* Description: (Module) Handles client's accounts. (cash)
|
||||
* File: account.inc
|
||||
* Type: Module
|
||||
* Description: Handles client's accounts. (cash)
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -1,9 +1,13 @@
|
||||
/**
|
||||
* ====================
|
||||
/*
|
||||
* ============================================================================
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
* File: antistick.inc
|
||||
* Author: Greyscale
|
||||
* ====================
|
||||
*
|
||||
* File: antistick.inc
|
||||
* Type: Module
|
||||
* Description: Antistick system.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: config.inc
|
||||
* Description: Config API and executing.
|
||||
* File: config.inc
|
||||
* Type: Core
|
||||
* Description: Config API and executing.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: cvars.inc
|
||||
* Description: Config creation and cvar control.
|
||||
* File: cvars.inc
|
||||
* Type: Core
|
||||
* Description: Config creation and cvar control.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: damage.inc
|
||||
* Description: (Core) Modify damage stuff here.
|
||||
* File: damage.inc
|
||||
* Type: Core
|
||||
* Description: Modify damage stuff here.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: (Core) event.inc
|
||||
* Description: Event hooking and forwarding.
|
||||
* File: event.inc
|
||||
* Type: Core
|
||||
* Description: Event hooking and forwarding.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: (Core) global.inc
|
||||
* Description: External API.
|
||||
* File: global.inc
|
||||
* Type: Core
|
||||
* Description: External API.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: hitgroup.inc
|
||||
* Description: API for loading hitgroup specific settings.
|
||||
* File: hitgroup.inc
|
||||
* Type: Core
|
||||
* Description: API for loading hitgroup specific settings.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: infect.inc
|
||||
* Description: Client infection functions.
|
||||
* File: infect.inc
|
||||
* Type: Core
|
||||
* Description: Client infection functions.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: jumpboost.inc
|
||||
* Description: Modified jump vector magnitudes.
|
||||
* File: jumpboost.inc
|
||||
* Type: Module
|
||||
* Description: Modified jump vector magnitudes.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -1,9 +1,13 @@
|
||||
/**
|
||||
* ====================
|
||||
/*
|
||||
* ============================================================================
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
* File: knockback.inc
|
||||
* Author: Greyscale
|
||||
* ====================
|
||||
*
|
||||
* File: knockback.inc
|
||||
* Type: Module
|
||||
* Description: Handles knockback on clients.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
||||
/** Client has been hurt.
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: log.inc
|
||||
* Description: Logging API.
|
||||
* File: log.inc
|
||||
* Type: Core
|
||||
* Description: Logging API.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: menu.inc
|
||||
* Description: Base menu functions for the plugin.
|
||||
* File: menu.inc
|
||||
* Type: Core
|
||||
* Description: Base menu functions for the plugin.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: models.inc
|
||||
* Description: Model validation and API
|
||||
* File: models.inc
|
||||
* Type: Core
|
||||
* Description: Model validation and API
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: napalm.inc
|
||||
* Description: Grenades burn zombies when damaged by them.
|
||||
* File: napalm.inc
|
||||
* Type: Module
|
||||
* Description: Grenades burn zombies when damaged by them.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: apply.inc
|
||||
* Description: Functions for applying attributes and effects on a client.
|
||||
* File: apply.inc
|
||||
* Type: Core
|
||||
* Description: Functions for applying attributes and effects on a client.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: attributes.inc
|
||||
* Description: Retrieving class attributes from certain caches.
|
||||
* File: attributes.inc
|
||||
* Type: Core
|
||||
* Description: Retrieving class attributes from certain caches.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: classevents.inc
|
||||
* Description: Functions for handling class related events.
|
||||
* File: classevents.inc
|
||||
* Type: Core
|
||||
* Description: Functions for handling class related events.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: classmenus.inc
|
||||
* Description: Provides functions for managing class menus.
|
||||
* File: classmenus.inc
|
||||
* Type: Core
|
||||
* Description: Provides functions for managing class menus.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: clientalpha.inc
|
||||
* Description: Handles transparency on clients.
|
||||
* File: clientalpha.inc
|
||||
* Type: Core
|
||||
* Description: Handles transparency on clients.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: clientoverlays.inc
|
||||
* Description: Handles overlays on clients, as a part of class attributes.
|
||||
* File: clientoverlays.inc
|
||||
* Type: Core
|
||||
* Description: Handles overlays on clients, as a part of class attributes.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: filtertools.inc
|
||||
* Description: Class system tools; validating, getting indexes or lists
|
||||
* File: filtertools.inc
|
||||
* Type: Core
|
||||
* Description: Class system tools; validating, getting indexes or lists
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: healthregen.inc
|
||||
* Description: Functions for managing health regeneration on a client.
|
||||
* File: healthregen.inc
|
||||
* Type: Core
|
||||
* Description: Functions for managing health regeneration on a client.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: playerclasses.inc
|
||||
* Description: Provides functions for managing classes.
|
||||
* File: playerclasses.inc
|
||||
* Type: Core
|
||||
* Description: Provides functions for managing classes.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: respawn.inc
|
||||
* Description: Players come back to life
|
||||
* File: respawn.inc
|
||||
* Type: Module
|
||||
* Description: Players come back to life
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: roundend.inc
|
||||
* Description: (Core) Handles round end actions.
|
||||
* File: roundend.inc
|
||||
* Type: Core
|
||||
* Description: Handles round end actions.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: sayhooks.inc
|
||||
* Description: Hook plugin say commands and redirect to their handling module.
|
||||
* File: sayhooks.inc
|
||||
* Type: Core
|
||||
* Description: Hook plugin say commands and redirect to their handling module.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: ambientsounds.inc
|
||||
* Description: Plays ambient sounds to clients.
|
||||
* File: ambientsounds.inc
|
||||
* Type: Core
|
||||
* Description: Plays ambient sounds to clients.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: soundeffects.inc
|
||||
* Description: Basic sound-management API.
|
||||
* File: soundeffects.inc
|
||||
* Type: Core
|
||||
* Description: Basic sound-management API.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: zombiesounds.inc
|
||||
* Description: Zombie sound effects.
|
||||
* File: zombiesounds.inc
|
||||
* Type: Core
|
||||
* Description: Zombie sound effects.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: spawnprotect.inc
|
||||
* Description: Protects late-joining players from zombies for x seconds.
|
||||
* File: spawnprotect.inc
|
||||
* Type: Module
|
||||
* Description: Protects late-joining players from zombies for x seconds.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: tools.inc
|
||||
* Description: Find offsets and signatures.
|
||||
* File: tools.inc
|
||||
* Type: Core
|
||||
* Description: Find offsets and signatures.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: tools_functions.inc
|
||||
* Description: API for offsets/signatures exposed in tools.inc
|
||||
* File: tools_functions.inc
|
||||
* Type: Core
|
||||
* Description: API for offsets/signatures exposed in tools.inc
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -1,9 +1,13 @@
|
||||
/**
|
||||
* ====================
|
||||
/*
|
||||
* ============================================================================
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
* File: translations.inc
|
||||
* Author: Greyscale
|
||||
* ====================
|
||||
*
|
||||
* File: translation.inc
|
||||
* Type: Core
|
||||
* Description: Translation parsing functions.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
||||
FormatTextString(String:text[], maxlen)
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: visualeffects.inc
|
||||
* Description: Visual effects such as map darkening, fog, etc..
|
||||
* File: visualeffects.inc
|
||||
* Type: Module
|
||||
* Description: Visual effects such as map darkening, fog, etc..
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: markethandler.inc
|
||||
* Description: Handles market (optional plugin) API, natives, and forwards.
|
||||
* File: markethandler.inc
|
||||
* Type: Core
|
||||
* Description: Handles market (optional plugin) API, natives, and forwards.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -1,9 +1,13 @@
|
||||
/**
|
||||
* ====================
|
||||
/*
|
||||
* ============================================================================
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
* File: menu_weapons.inc
|
||||
* Author: Greyscale
|
||||
* ====================
|
||||
*
|
||||
* File: menu_weapons.inc
|
||||
* Type: Core
|
||||
* Description: Handles weapons management menu.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -1,9 +1,13 @@
|
||||
/**
|
||||
* ====================
|
||||
/*
|
||||
* ============================================================================
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
* File: restriction.inc
|
||||
* Author: Greyscale
|
||||
* ====================
|
||||
*
|
||||
* File: restrict.inc
|
||||
* Type: Core
|
||||
* Description: Weapon restriction system.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: weapons.inc
|
||||
* Description: API for all weapon-related functions.
|
||||
* File: weapons.inc
|
||||
* Type: Core
|
||||
* Description: API for all weapon-related functions.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -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"
|
||||
|
@ -3,9 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: zhp.inc
|
||||
* Description: Displays HP to zombies.
|
||||
* Author: Greyscale, Richard Helgeby
|
||||
* File: zhp.inc
|
||||
* Type: Module
|
||||
* Description: Displays HP to zombies.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: zombiereloaded.inc
|
||||
* Description: General plugin functions and defines.
|
||||
* File: zombiereloaded.inc
|
||||
* Type: Core
|
||||
* Description: General plugin functions and defines.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: (Module) zspawn.inc
|
||||
* Description: Handles zspawn command, spawns late-joining clients into the game.
|
||||
* 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;
|
||||
}
|
||||
|
@ -3,8 +3,9 @@
|
||||
*
|
||||
* Zombie:Reloaded
|
||||
*
|
||||
* File: ztele.inc
|
||||
* Description: ZTele handle functions.
|
||||
* File: ztele.inc
|
||||
* Type: Module
|
||||
* Description: ZTele handle functions.
|
||||
*
|
||||
* ============================================================================
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user