From 9af3fec7381ca6f86dd9b23277b42e3050af1b2e Mon Sep 17 00:00:00 2001 From: Greyscale Date: Thu, 11 Jun 2009 20:51:26 -0700 Subject: [PATCH] Changed ragdoll.inc to LF, removed anticamp.inc, and added copywrite notice to all files. --- .../addons/sourcemod/configs/zr/downloads.txt | 2 +- .../addons/sourcemod/configs/zr/models.txt | 2 +- .../zombiereloaded/zombiereloaded.base.cfg | 13 - src/include/market.inc | 2 +- src/zombiereloaded.sp | 21 +- src/zr/account.inc | 21 +- src/zr/anticamp.inc | 448 ------------------ src/zr/antistick.inc | 21 +- src/zr/commands.inc | 21 +- src/zr/config.inc | 21 +- src/zr/cvars.inc | 25 +- src/zr/damage.inc | 21 +- src/zr/downloads.inc | 21 +- src/zr/event.inc | 21 +- src/zr/global.inc | 21 +- src/zr/hitgroups.inc | 21 +- src/zr/infect.inc | 21 +- src/zr/jumpboost.inc | 21 +- src/zr/knockback.inc | 21 +- src/zr/log.h.inc | 21 +- src/zr/log.inc | 21 +- src/zr/menu.inc | 21 +- src/zr/models.inc | 21 +- src/zr/napalm.inc | 21 +- src/zr/overlays.inc | 21 +- src/zr/playerclasses/apply.inc | 21 +- src/zr/playerclasses/attributes.inc | 21 +- src/zr/playerclasses/classcommands.inc | 20 +- src/zr/playerclasses/classevents.inc | 6 +- src/zr/playerclasses/classmenus.inc | 21 +- src/zr/playerclasses/clientalpha.inc | 21 +- src/zr/playerclasses/clientoverlays.inc | 21 +- src/zr/playerclasses/filtertools.inc | 21 +- src/zr/playerclasses/healthregen.inc | 21 +- src/zr/playerclasses/playerclasses.inc | 21 +- src/zr/respawn.inc | 21 +- src/zr/roundend.inc | 21 +- src/zr/roundstart.inc | 21 +- src/zr/sayhooks.inc | 21 +- src/zr/serial.inc | 21 +- src/zr/soundeffects/ambientsounds.inc | 21 +- src/zr/soundeffects/soundeffects.inc | 21 +- src/zr/soundeffects/zombiesounds.inc | 21 +- src/zr/spawnprotect.inc | 21 +- src/zr/tools.inc | 21 +- src/zr/tools_functions.inc | 21 +- src/zr/translation.inc | 21 +- src/zr/visualeffects/ragdoll.inc | 295 ++++++------ src/zr/visualeffects/visualambience.inc | 21 +- src/zr/visualeffects/visualeffects.inc | 21 +- src/zr/weapons/restrict.inc | 21 +- src/zr/weapons/weaponalpha.inc | 21 +- src/zr/weapons/weaponammo.inc | 21 +- src/zr/weapons/weapons.inc | 21 +- src/zr/weapons/zmarket.inc | 6 +- src/zr/zadmin.inc | 21 +- src/zr/zhp.inc | 21 +- src/zr/zombiereloaded.inc | 21 +- src/zr/zspawn.inc | 21 +- src/zr/ztele.inc | 21 +- 60 files changed, 1105 insertions(+), 764 deletions(-) delete mode 100644 src/zr/anticamp.inc diff --git a/cstrike/addons/sourcemod/configs/zr/downloads.txt b/cstrike/addons/sourcemod/configs/zr/downloads.txt index d4ba86a..6c18b32 100644 --- a/cstrike/addons/sourcemod/configs/zr/downloads.txt +++ b/cstrike/addons/sourcemod/configs/zr/downloads.txt @@ -1,6 +1,6 @@ // ==================== // Zombie:Reloaded -// File: downloads.txt +// File: downloads.txt // Author: Greyscale // ==================== // diff --git a/cstrike/addons/sourcemod/configs/zr/models.txt b/cstrike/addons/sourcemod/configs/zr/models.txt index 3dd5387..4e2fc0b 100644 --- a/cstrike/addons/sourcemod/configs/zr/models.txt +++ b/cstrike/addons/sourcemod/configs/zr/models.txt @@ -1,6 +1,6 @@ // ==================== // Zombie:Reloaded -// File: models.txt +// File: models.txt // Author: Greyscale // ==================== // diff --git a/cstrike/cfg/sourcemod/zombiereloaded/zombiereloaded.base.cfg b/cstrike/cfg/sourcemod/zombiereloaded/zombiereloaded.base.cfg index 249e294..c8c6e6e 100644 --- a/cstrike/cfg/sourcemod/zombiereloaded/zombiereloaded.base.cfg +++ b/cstrike/cfg/sourcemod/zombiereloaded/zombiereloaded.base.cfg @@ -1,16 +1,3 @@ -// /* -// * ============================================================================ -// * -// * Zombie:Reloaded -// * -// * File: zombiereloaded.cfg -// * Type: Config -// * Description: Plugin cvar configuration. -// * -// * ============================================================================ -// */ -// -// // Notes // --------------------------------------------------------------------------- // All notes are generalities, exceptions will be noted in appropriate place. diff --git a/src/include/market.inc b/src/include/market.inc index 64eeff0..6c0dd08 100644 --- a/src/include/market.inc +++ b/src/include/market.inc @@ -1,7 +1,7 @@ /** * ==================== * Market - * File: market.inc + * File: market.inc * Version: 1.2 * Author: Greyscale * ==================== diff --git a/src/zombiereloaded.sp b/src/zombiereloaded.sp index 0eb54e9..d362ea6 100644 --- a/src/zombiereloaded.sp +++ b/src/zombiereloaded.sp @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: zombiereloaded.sp - * Type: Base - * Description: Plugin's base file. + * File: zombiereloaded.sp + * Type: Base + * Description: Plugin's base file. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/account.inc b/src/zr/account.inc index ec6b068..4c1ae65 100644 --- a/src/zr/account.inc +++ b/src/zr/account.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: account.inc - * Type: Module - * Description: Handles client's accounts. (cash) + * File: account.inc + * Type: Module + * Description: Handles client's accounts. (cash) + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/anticamp.inc b/src/zr/anticamp.inc deleted file mode 100644 index a126164..0000000 --- a/src/zr/anticamp.inc +++ /dev/null @@ -1,448 +0,0 @@ -/** - * ==================== - * Zombie:Reloaded - * File: anticamp.inc - * Authors: Richard Helgeby - * ==================== - */ - -#define MAX_VOLUMES 32 - -enum volume -{ - Float:x_min, - Float:x_max, - Float:y_min, - Float:y_max, - Float:z_min, - Float:z_max, - volume_damage, - Float:volume_interval, - Handle:volume_timer, - bool:volume_in_use -} - -new volumes[MAX_VOLUMES][volume]; -new volume_count; - -new Float:player_loc[MAXPLAYERS + 1][3]; - -new Handle:hUpdateTimer; - -Anticamp_Startup(bool:no_reset = false) -{ - new Float:interval = GetConVarFloat(g_hCvarsList[CVAR_ANTICAMP_UPDATE_INTERVAL]); - - // Create timer for updating player locations. - if (hUpdateTimer != INVALID_HANDLE) - { - KillTimer(hUpdateTimer); - hUpdateTimer = INVALID_HANDLE; - } - - if (interval > 0.0) - { - hUpdateTimer = CreateTimer(interval, Event_UpdatePlayerLocations, 0, TIMER_REPEAT); - } - - if (no_reset) - { - // Start existing hurt timers. - for (new vol_index = 0; vol_index < MAX_VOLUMES; vol_index++) - { - if (volumes[vol_index][volume_in_use]) - { - if (volumes[vol_index][volume_timer] != INVALID_HANDLE) - { - KillTimer(volumes[vol_index][volume_timer]); - } - volumes[vol_index][volume_timer] = CreateTimer(volumes[vol_index][volume_interval], Event_HurtPlayers, vol_index, TIMER_REPEAT); - } - } - } - else - { - ResetVolumes(); - } -} - -Anticamp_Disable() -{ - // Kill update timer. - if (hUpdateTimer != INVALID_HANDLE) - { - KillTimer(hUpdateTimer); - hUpdateTimer = INVALID_HANDLE; - } - - // Kill hurt timers. - for (new vol = 0; vol < MAX_VOLUMES; vol++) - { - if (volumes[vol][volume_timer] != INVALID_HANDLE) - { - KillTimer(volumes[vol][volume_timer]); - volumes[vol][volume_timer] = INVALID_HANDLE; - } - } -} - -public UpdateIntervalHook(Handle:convar, const String:oldValue[], const String:newValue[]) -{ - new Float:interval = StringToFloat(newValue); - if (hUpdateTimer != INVALID_HANDLE) - { - KillTimer(hUpdateTimer); - hUpdateTimer = INVALID_HANDLE; - } - - if (interval > 0.0) - { - hUpdateTimer = CreateTimer(interval, Event_UpdatePlayerLocations, 0, TIMER_REPEAT); - } -} - -public AnticampHook(Handle:convar, const String:oldValue[], const String:newValue[]) -{ - new anticamp_enabled = StringToInt(newValue); - if (anticamp_enabled) - { - Anticamp_Startup(true); - } - else - { - Anticamp_Disable(); - } -} - -public Action:Command_AnticampCreateVolume(client, argc) -{ - // Get a unused volume index. - new vol_index = GetFreeVolumeIndex(); - if (vol_index == -1) - { - ReplyToCommand(client, "Maximum volumes reached. Max: %d", MAX_VOLUMES); - return Plugin_Handled; - } - - // Check arguments. - if (argc < 8) - { - ReplyToCommand(client, "Too few parameters specified. Usage: zr_anticamp_create_volume "); - return Plugin_Handled; - } - - decl String:arg_buffer[32]; - - new vol_damage; - new Float:vol_interval; - new Float:x1; - new Float:y1; - new Float:z1; - new Float:x2; - new Float:y2; - new Float:z2; - - // Get arguments. - GetCmdArg(1, arg_buffer, sizeof(arg_buffer)); - vol_damage = StringToInt(arg_buffer); - - GetCmdArg(2, arg_buffer, sizeof(arg_buffer)); - vol_interval = StringToFloat(arg_buffer); - - GetCmdArg(3, arg_buffer, sizeof(arg_buffer)); - x1 = StringToFloat(arg_buffer); - - GetCmdArg(4, arg_buffer, sizeof(arg_buffer)); - y1 = StringToFloat(arg_buffer); - - GetCmdArg(5, arg_buffer, sizeof(arg_buffer)); - z1 = StringToFloat(arg_buffer); - - GetCmdArg(6, arg_buffer, sizeof(arg_buffer)); - x2 = StringToFloat(arg_buffer); - - GetCmdArg(7, arg_buffer, sizeof(arg_buffer)); - y2 = StringToFloat(arg_buffer); - - GetCmdArg(8, arg_buffer, sizeof(arg_buffer)); - z2 = StringToFloat(arg_buffer); - - // Check damage. - if (vol_damage == 0) - { - ReplyToCommand(client, "The damage specified is zero or invalid."); - return Plugin_Handled; - } - - // Check interval. - if (vol_interval <= 0.0) - { - ReplyToCommand(client, "The interval specified is zero or invalid."); - return Plugin_Handled; - } - - // Check if both locations are equal. - if (FloatCompare(x1, x2) == 0) - { - if (FloatCompare(y1, y2) == 0) - { - if (FloatCompare(z1, z2) == 0) - { - ReplyToCommand(client, "Cannot add hurt volume. Both locations are equal."); - return Plugin_Handled; - } - } - } - - // Sort out max and min values. - if (FloatCompare(x1, x2) == 1) - { - volumes[vol_index][x_max] = x1; - volumes[vol_index][x_min] = x2; - } - else - { - volumes[vol_index][x_max] = x2; - volumes[vol_index][x_min] = x1; - } - - if (FloatCompare(y1, y2) == 1) - { - volumes[vol_index][y_max] = y1; - volumes[vol_index][y_min] = y2; - } - else - { - volumes[vol_index][y_max] = y2; - volumes[vol_index][y_min] = y1; - } - - if (FloatCompare(z1, z2) == 1) - { - volumes[vol_index][z_max] = z1; - volumes[vol_index][z_min] = z2; - } - else - { - volumes[vol_index][z_max] = z2; - volumes[vol_index][z_min] = z1; - } - - volumes[vol_index][volume_damage] = vol_damage; - volumes[vol_index][volume_interval] = vol_interval; - volumes[vol_index][volume_timer] = CreateTimer(vol_interval, Event_HurtPlayers, vol_index, TIMER_REPEAT); - volumes[vol_index][volume_in_use] = true; - - ReplyToCommand(client, "Volume created:\nid: %d\nx min:%f\ny min:%f\nz min:%f\nx max:%f\ny max:%f\nz max:%f", - vol_index, - volumes[vol_index][x_min], - volumes[vol_index][y_min], - volumes[vol_index][z_min], - volumes[vol_index][x_max], - volumes[vol_index][y_max], - volumes[vol_index][z_max]); - - volume_count++; - - return Plugin_Handled; -} - -public Action:Command_AnticampRemoveVolume(client, argc) -{ - new vol_index; - decl String:arg_buffer[32]; - //decl String:client_name[192]; - new Handle:vol_timer; - - if (argc < 1) - { - ReplyToCommand(client, "Volume ID not specified. Usage: zr_anticamp_remove_volume "); - return Plugin_Handled; - } - - GetCmdArg(1, arg_buffer, sizeof(arg_buffer)); - vol_index = StringToInt(arg_buffer); - - if (IsValidVolume(vol_index)) - { - vol_timer = volumes[vol_index][volume_timer]; - if (vol_timer != INVALID_HANDLE) - { - KillTimer(vol_timer); - volumes[vol_index][volume_timer] = INVALID_HANDLE; - } - volumes[vol_index][volume_in_use] = false; - ReplyToCommand(client, "Removed volume %d.", vol_index); - - if (LogCheckFlag(LOG_GAME_EVENTS, LOG_MODULE_ANTICAMP)) - { - LogMessageFormatted(client, "anticamp", "remove volume", "\"%L\" removed volume %d.", true, client, vol_index); - } - } - else - { - ReplyToCommand(client, "Invalid volume ID."); - return Plugin_Handled; - } - - return Plugin_Handled; -} - -public Action:Command_AnticampList(client, argc) -{ - decl String:buffer[2048]; - decl String:line[192]; - buffer[0] = 0; - -/* -id damage interval x_min y_min z_min x_max y_max z_max -0 5 1 73 -535 28 -251 -732 76 -*/ - StrCat(buffer, sizeof(buffer), "id damage interval x_min y_min z_min x_max y_max z_max\n"); - - for (new vol_index = 0; vol_index < MAX_VOLUMES; vol_index++) - { - if (volumes[vol_index][volume_in_use]) - { - Format(line, sizeof(line), "%-3d %-7d %-11.1f %-7.1f %-7.1f %-7.1f %-7.1f %-7.1f %-7.1f\n", - vol_index, - volumes[vol_index][volume_damage], - volumes[vol_index][volume_interval], - volumes[vol_index][x_min], - volumes[vol_index][y_min], - volumes[vol_index][z_min], - volumes[vol_index][x_max], - volumes[vol_index][y_max], - volumes[vol_index][y_max]); - StrCat(buffer, sizeof(buffer), line); - } - } - - ReplyToCommand(client, buffer); - return Plugin_Handled; -} - -UpdatePlayerLocations() -{ - // x = client index. - for (new x = 1; x <= MaxClients; x++) - { - // If client isn't in-game, then stop. - if (!IsClientInGame(x)) - { - return; - } - - GetClientAbsOrigin(x, player_loc[x]); - } -} - -HurtPlayersInVolume(volume_index) -{ - new client_health; - decl String:client_name[64]; - decl String:buffer[192]; - - // x = client index. - for (new x = 1; x <= MaxClients; x++) - { - if (IsClientInGame(x) && - IsPlayerAlive(x) && - InfectIsClientHuman(x)) - { - if (IsPlayerInVolume(x, volume_index)) - { - TranslationPrintToChat(x, "Unfair camping"); - client_health = GetClientHealth(x) - volumes[volume_index][volume_damage]; - if (client_health > 0) - { - SetEntityHealth(x, client_health); - } - else - { - ForcePlayerSuicide(x); - - GetClientName(x, client_name, sizeof(client_name)); - SetGlobalTransTarget(x); - Format(buffer, sizeof(buffer), "%T", "Unfair camper slayed", LANG_SERVER, client_name, volume_index); - - if (LogCheckFlag(LOG_GAME_EVENTS, LOG_MODULE_ANTICAMP)) - { - LogMessageFormatted(x, "anticamp", "kill", "%s", true, buffer); - } - } - } - } - } -} - -bool:IsPlayerInVolume(client, volume_index) -{ - new Float:player_loc_x = player_loc[client][0]; - new Float:player_loc_y = player_loc[client][1]; - new Float:player_loc_z = player_loc[client][2]; - new log; - log = LogCheckFlag(LOG_DEBUG_MAX_DETAIL, LOG_MODULE_ANTICAMP); - - if ((player_loc_x >= volumes[volume_index][x_min]) && (player_loc_x <= volumes[volume_index][x_max])) - { - if (log) LogMessageFormatted(client, "anticamp", "IsPlayerInVolume", "Client %d matches X values.", true, client); - if ((player_loc_y >= volumes[volume_index][y_min]) && (player_loc_y <= volumes[volume_index][y_max])) - { - if (log) LogMessageFormatted(client, "anticamp", "IsPlayerInVolume", "Client %d matches Y values.", true, client); - if ((player_loc_z >= volumes[volume_index][z_min]) && (player_loc_z <= volumes[volume_index][z_max])) - { - if (log) LogMessageFormatted(client, "anticamp", "IsPlayerInVolume", "Client %d matches Z values.", true, client); - return true; - } - } - } - return false; -} - -GetFreeVolumeIndex() -{ - for(new vol_index = 0; vol_index < MAX_VOLUMES; vol_index++) - { - if (!volumes[vol_index][volume_in_use]) - { - return vol_index; - } - } - return -1; -} - -bool:IsValidVolume(vol_index) -{ - if (vol_index >= 0 && vol_index < MAX_VOLUMES) - { - return true; - } - else - { - return false; - } -} - -ResetVolumes() -{ - for (new vol_index = 0; vol_index < MAX_VOLUMES; vol_index++) - { - volumes[vol_index][volume_in_use] = false; - if (volumes[vol_index][volume_timer] != INVALID_HANDLE) - { - KillTimer(volumes[vol_index][volume_timer]); - volumes[vol_index][volume_timer] = INVALID_HANDLE; - } - } -} - -public Action:Event_UpdatePlayerLocations(Handle:Timer) -{ - UpdatePlayerLocations(); -} - -public Action:Event_HurtPlayers(Handle:Timer, any:volume_index) -{ - HurtPlayersInVolume(volume_index); -} diff --git a/src/zr/antistick.inc b/src/zr/antistick.inc index cdaef06..bf37fbc 100644 --- a/src/zr/antistick.inc +++ b/src/zr/antistick.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: antistick.inc - * Type: Module - * Description: Antistick system. + * File: antistick.inc + * Type: Module + * Description: Antistick system. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/commands.inc b/src/zr/commands.inc index 0ec2709..617adac 100644 --- a/src/zr/commands.inc +++ b/src/zr/commands.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: commands.inc - * Type: Core - * Description: Console command creation and hooking. + * File: commands.inc + * Type: Core + * Description: Console command creation and hooking. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/config.inc b/src/zr/config.inc index 12fc7d4..b37bdf0 100644 --- a/src/zr/config.inc +++ b/src/zr/config.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: config.inc - * Type: Core - * Description: Config API and executing. + * File: config.inc + * Type: Core + * Description: Config API and executing. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/cvars.inc b/src/zr/cvars.inc index c5ea460..0e39bbd 100644 --- a/src/zr/cvars.inc +++ b/src/zr/cvars.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: cvars.inc - * Type: Core - * Description: Config creation and cvar control. + * File: cvars.inc + * Type: Core + * Description: Config creation and cvar control. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ @@ -434,8 +449,8 @@ CvarsCreate() // Jump Boost (module) // =========================== g_hCvarsList[CVAR_JUMPBOOST_BUNNYHOP_PROTECT] = CreateConVar("zr_jumpboost_bunnyhop_protect", "1", "Prevent players from using forward jump boost multipliers to bunny hop."); - g_hCvarsList[CVAR_JUMPBOOST_BUNNYHOP_MAX] = CreateConVar("zr_jumpboost_bunnyhop_max", "275", "The maximum horizontal velocity a player can have for any additional push to be applied, when bunny hop prevention is enabled."); - g_hCvarsList[CVAR_JUMPBOOST_BUNNYHOP_RESET] = CreateConVar("zr_jumpboost_bunnyhop_reset", "1", "Specifies whether the speed should be reset, or limited to maximum when the limit is reached."); + g_hCvarsList[CVAR_JUMPBOOST_BUNNYHOP_MAX] = CreateConVar("zr_jumpboost_bunnyhop_max", "275", "The maximum horizontal velocity a player can have for any additional push to be applied. [Dependency: zr_jumpboost_bunnyhop_protect]"); + g_hCvarsList[CVAR_JUMPBOOST_BUNNYHOP_RESET] = CreateConVar("zr_jumpboost_bunnyhop_reset", "1", "Specifies whether the speed should be reset, or limited to maximum when the limit is reached. [Dependency: zr_jumpboost_bunnyhop_protect&zr_jumpboost_bunnyhop_max]"); // =========================== diff --git a/src/zr/damage.inc b/src/zr/damage.inc index 411afbc..0c5e650 100644 --- a/src/zr/damage.inc +++ b/src/zr/damage.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: damage.inc - * Type: Core - * Description: Modify damage stuff here. + * File: damage.inc + * Type: Core + * Description: Modify damage stuff here. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/downloads.inc b/src/zr/downloads.inc index 34ed29f..b61b206 100644 --- a/src/zr/downloads.inc +++ b/src/zr/downloads.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: downloads.inc - * Type: Core - * Description: Download validation. + * File: downloads.inc + * Type: Core + * Description: Download validation. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/event.inc b/src/zr/event.inc index 2474aa9..921efa3 100644 --- a/src/zr/event.inc +++ b/src/zr/event.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: event.inc - * Type: Core - * Description: Event hooking and forwarding. + * File: event.inc + * Type: Core + * Description: Event hooking and forwarding. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/global.inc b/src/zr/global.inc index 8d6d9b3..5fe306c 100644 --- a/src/zr/global.inc +++ b/src/zr/global.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: global.inc - * Type: Core - * Description: External API. + * File: global.inc + * Type: Core + * Description: External API. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/hitgroups.inc b/src/zr/hitgroups.inc index 403801d..115a17a 100644 --- a/src/zr/hitgroups.inc +++ b/src/zr/hitgroups.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: hitgroup.inc - * Type: Core - * Description: API for loading hitgroup specific settings. + * File: hitgroup.inc + * Type: Core + * Description: API for loading hitgroup specific settings. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/infect.inc b/src/zr/infect.inc index a51e1bd..cbdb4a4 100644 --- a/src/zr/infect.inc +++ b/src/zr/infect.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: infect.inc - * Type: Core - * Description: Client infection functions. + * File: infect.inc + * Type: Core + * Description: Client infection functions. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/jumpboost.inc b/src/zr/jumpboost.inc index dc8c716..689af7a 100644 --- a/src/zr/jumpboost.inc +++ b/src/zr/jumpboost.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: jumpboost.inc - * Type: Module - * Description: Modified jump vector magnitudes. + * File: jumpboost.inc + * Type: Module + * Description: Modified jump vector magnitudes. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/knockback.inc b/src/zr/knockback.inc index 3f9be69..0cf2edd 100644 --- a/src/zr/knockback.inc +++ b/src/zr/knockback.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: knockback.inc - * Type: Module - * Description: Handles knockback on clients. + * File: knockback.inc + * Type: Module + * Description: Handles knockback on clients. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/log.h.inc b/src/zr/log.h.inc index 6b7b04c..c363d11 100644 --- a/src/zr/log.h.inc +++ b/src/zr/log.h.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: log.h.inc - * Type: Core - * Description: Log header. Types and defines. + * File: log.h.inc + * Type: Core + * Description: Log header. Types and defines. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/log.inc b/src/zr/log.inc index 16938f5..600fefa 100644 --- a/src/zr/log.inc +++ b/src/zr/log.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: log.inc - * Type: Core - * Description: Logging API. + * File: log.inc + * Type: Core + * Description: Logging API. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/menu.inc b/src/zr/menu.inc index 58daedf..be40ccb 100644 --- a/src/zr/menu.inc +++ b/src/zr/menu.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: menu.inc - * Type: Core - * Description: Base menu functions for the plugin. + * File: menu.inc + * Type: Core + * Description: Base menu functions for the plugin. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/models.inc b/src/zr/models.inc index c97b63d..648a87c 100644 --- a/src/zr/models.inc +++ b/src/zr/models.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: models.inc - * Type: Core - * Description: Model validation. + * File: models.inc + * Type: Core + * Description: Model validation. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/napalm.inc b/src/zr/napalm.inc index dbd95b1..5b03d05 100644 --- a/src/zr/napalm.inc +++ b/src/zr/napalm.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: napalm.inc - * Type: Module - * Description: Grenades burn zombies when damaged by them. + * File: napalm.inc + * Type: Module + * Description: Grenades burn zombies when damaged by them. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/overlays.inc b/src/zr/overlays.inc index e39a901..6a5a7a6 100644 --- a/src/zr/overlays.inc +++ b/src/zr/overlays.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: overlays.inc - * Type: Core - * Description: Overlay system, separating different types into "overlay channels." + * File: overlays.inc + * Type: Core + * Description: Overlay system, separating different types into "overlay channels." + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/playerclasses/apply.inc b/src/zr/playerclasses/apply.inc index 7efb185..9489113 100644 --- a/src/zr/playerclasses/apply.inc +++ b/src/zr/playerclasses/apply.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: apply.inc - * Type: Core - * 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. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/playerclasses/attributes.inc b/src/zr/playerclasses/attributes.inc index e37efbf..468160f 100644 --- a/src/zr/playerclasses/attributes.inc +++ b/src/zr/playerclasses/attributes.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: attributes.inc - * Type: Core - * Description: Retrieving class attributes from certain caches. + * File: attributes.inc + * Type: Core + * Description: Retrieving class attributes from certain caches. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/playerclasses/classcommands.inc b/src/zr/playerclasses/classcommands.inc index 7c6520e..d221cf4 100644 --- a/src/zr/playerclasses/classcommands.inc +++ b/src/zr/playerclasses/classcommands.inc @@ -3,8 +3,24 @@ * * Zombie:Reloaded * - * File: classcommands.inc - * Description: Console commands for working with classes. + * File: classcommands.inc + * Type: Core + * Description: Console commands for working with classes. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/playerclasses/classevents.inc b/src/zr/playerclasses/classevents.inc index e033469..1ce1058 100644 --- a/src/zr/playerclasses/classevents.inc +++ b/src/zr/playerclasses/classevents.inc @@ -3,9 +3,9 @@ * * Zombie:Reloaded * - * File: classevents.inc - * Type: Core - * Description: Functions for handling class related events. + * File: classevents.inc + * Type: Core + * Description: Functions for handling class related events. * * ============================================================================ */ diff --git a/src/zr/playerclasses/classmenus.inc b/src/zr/playerclasses/classmenus.inc index af5343c..515072b 100644 --- a/src/zr/playerclasses/classmenus.inc +++ b/src/zr/playerclasses/classmenus.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: classmenus.inc - * Type: Core - * Description: Provides functions for managing class menus. + * File: classmenus.inc + * Type: Core + * Description: Provides functions for managing class menus. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/playerclasses/clientalpha.inc b/src/zr/playerclasses/clientalpha.inc index b744385..e55aef2 100644 --- a/src/zr/playerclasses/clientalpha.inc +++ b/src/zr/playerclasses/clientalpha.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: clientalpha.inc - * Type: Core - * Description: Handles transparency on clients. + * File: clientalpha.inc + * Type: Core + * Description: Handles transparency on clients. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/playerclasses/clientoverlays.inc b/src/zr/playerclasses/clientoverlays.inc index df9f726..1605fce 100644 --- a/src/zr/playerclasses/clientoverlays.inc +++ b/src/zr/playerclasses/clientoverlays.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: clientoverlays.inc - * Type: Core - * 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. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/playerclasses/filtertools.inc b/src/zr/playerclasses/filtertools.inc index 41a121a..cbc03e1 100644 --- a/src/zr/playerclasses/filtertools.inc +++ b/src/zr/playerclasses/filtertools.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: filtertools.inc - * Type: Core - * Description: Class system tools; validating, getting indexes or lists + * File: filtertools.inc + * Type: Core + * Description: Class system tools; validating, getting indexes or lists + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/playerclasses/healthregen.inc b/src/zr/playerclasses/healthregen.inc index f66d003..fca0c40 100644 --- a/src/zr/playerclasses/healthregen.inc +++ b/src/zr/playerclasses/healthregen.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: healthregen.inc - * Type: Core - * Description: Functions for managing health regeneration on a client. + * File: healthregen.inc + * Type: Core + * Description: Functions for managing health regeneration on a client. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/playerclasses/playerclasses.inc b/src/zr/playerclasses/playerclasses.inc index 1c8c44d..cef3f74 100644 --- a/src/zr/playerclasses/playerclasses.inc +++ b/src/zr/playerclasses/playerclasses.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: playerclasses.inc - * Type: Core - * Description: Provides functions for managing classes. + * File: playerclasses.inc + * Type: Core + * Description: Provides functions for managing classes. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/respawn.inc b/src/zr/respawn.inc index 375399e..3e22c53 100644 --- a/src/zr/respawn.inc +++ b/src/zr/respawn.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: respawn.inc - * Type: Module - * Description: Players come back to life + * File: respawn.inc + * Type: Module + * Description: Players come back to life + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/roundend.inc b/src/zr/roundend.inc index 081b275..1fbe7c3 100644 --- a/src/zr/roundend.inc +++ b/src/zr/roundend.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: roundend.inc - * Type: Core - * Description: Handles round end actions. + * File: roundend.inc + * Type: Core + * Description: Handles round end actions. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/roundstart.inc b/src/zr/roundstart.inc index 2b49d40..9bd438d 100644 --- a/src/zr/roundstart.inc +++ b/src/zr/roundstart.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: roundstart.inc - * Type: Core - * Description: Handles round start actions. + * File: roundstart.inc + * Type: Core + * Description: Handles round start actions. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/sayhooks.inc b/src/zr/sayhooks.inc index 1252b2a..3c97414 100644 --- a/src/zr/sayhooks.inc +++ b/src/zr/sayhooks.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: sayhooks.inc - * Type: Core - * 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. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/serial.inc b/src/zr/serial.inc index 9e347ef..f018329 100644 --- a/src/zr/serial.inc +++ b/src/zr/serial.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: serial.inc - * Type: Core - * Description: Client serial number tracking API. + * File: serial.inc + * Type: Core + * Description: Client serial number tracking API. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/soundeffects/ambientsounds.inc b/src/zr/soundeffects/ambientsounds.inc index 3cd6024..0b90e3b 100644 --- a/src/zr/soundeffects/ambientsounds.inc +++ b/src/zr/soundeffects/ambientsounds.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: ambientsounds.inc - * Type: Core - * Description: Plays ambient sounds to clients. + * File: ambientsounds.inc + * Type: Core + * Description: Plays ambient sounds to clients. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/soundeffects/soundeffects.inc b/src/zr/soundeffects/soundeffects.inc index 71aa2bf..78b9252 100644 --- a/src/zr/soundeffects/soundeffects.inc +++ b/src/zr/soundeffects/soundeffects.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: soundeffects.inc - * Type: Core - * Description: Basic sound-management API. + * File: soundeffects.inc + * Type: Core + * Description: Basic sound-management API. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/soundeffects/zombiesounds.inc b/src/zr/soundeffects/zombiesounds.inc index d4c8719..fbf50a0 100644 --- a/src/zr/soundeffects/zombiesounds.inc +++ b/src/zr/soundeffects/zombiesounds.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: zombiesounds.inc - * Type: Core - * Description: Zombie sound effects. + * File: zombiesounds.inc + * Type: Core + * Description: Zombie sound effects. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/spawnprotect.inc b/src/zr/spawnprotect.inc index 8a7bd14..98c5e1a 100644 --- a/src/zr/spawnprotect.inc +++ b/src/zr/spawnprotect.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: spawnprotect.inc - * Type: Module - * 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. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/tools.inc b/src/zr/tools.inc index ec54118..b339daf 100644 --- a/src/zr/tools.inc +++ b/src/zr/tools.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: tools.inc - * Type: Core - * Description: Find offsets and signatures. + * File: tools.inc + * Type: Core + * Description: Find offsets and signatures. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/tools_functions.inc b/src/zr/tools_functions.inc index 2662dbd..928c0c3 100644 --- a/src/zr/tools_functions.inc +++ b/src/zr/tools_functions.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: tools_functions.inc - * Type: Core - * Description: API for offsets/signatures exposed in tools.inc + * File: tools_functions.inc + * Type: Core + * Description: API for offsets/signatures exposed in tools.inc + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/translation.inc b/src/zr/translation.inc index 0b4c9bc..3d0333d 100644 --- a/src/zr/translation.inc +++ b/src/zr/translation.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: translation.inc - * Type: Core - * Description: Translation parsing functions. + * File: translation.inc + * Type: Core + * Description: Translation parsing functions. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/visualeffects/ragdoll.inc b/src/zr/visualeffects/ragdoll.inc index b5c732d..e132238 100644 --- a/src/zr/visualeffects/ragdoll.inc +++ b/src/zr/visualeffects/ragdoll.inc @@ -1,138 +1,159 @@ -/* - * ============================================================================ - * - * Zombie:Reloaded - * - * File: ragdoll.inc - * Type: Module - * Description: Remove ragdolls with optional effects. - * - * ============================================================================ - */ - -#define VEFFECTS_RAGDOLL_DISSOLVE_EFFECTLESS -1 -#define VEFFECTS_RAGDOLL_DISSOLVE_ENERGY 0 -#define VEFFECTS_RAGDOLL_DISSOLVE_ELECTRICALH 1 -#define VEFFECTS_RAGDOLL_DISSOLVE_ELECTRICALL 2 -#define VEFFECTS_RAGDOLL_DISSOLVE_CORE 3 - -/** - * Variable to store ragdoll offset value. - */ -new g_iToolsRagdoll; - -/** - * Find VAmbience-specific offsets here. - */ -RagdollOnOffsetsFound() -{ - // If offset "m_iAccount" can't be found, then stop the plugin. - g_iToolsRagdoll = FindSendPropInfo("CCSPlayer", "m_hRagdoll"); - if (g_iToolsRagdoll == -1) - { - LogEvent(false, LogType_Fatal, LOG_CORE_EVENTS, LogModule_VEffects, "Offsets", "Offset \"CCSPlayer::m_hRagdoll\" was not found."); - } -} - -/** - * Client has been killed. - * - * @param client The client index. - */ -RagdollOnClientDeath(client) -{ - new ragdoll = RagdollGetClientRagdoll(client); - - // If the ragdoll is invalid, then stop. - if (ragdoll == -1) - { - return; - } - - // Get the delay. - new Float:dissolvedelay = GetConVarFloat(g_hCvarsList[CVAR_VEFFECTS_RAGDOLL_DELAY]); - - // If the delay is 0 or less, then remove right now. - if (dissolvedelay <= 0) - { - RagdollTimer(INVALID_HANDLE, ragdoll); - return; - } - - // Create a timer to remove/dissolve ragdoll. - CreateTimer(dissolvedelay, RagdollTimer, ragdoll, TIMER_FLAG_NO_MAPCHANGE); -} - -/** - * Removed a ragdoll from the game following plugin settings. - * - * @param ragdoll The ragdoll index. - */ -RagdollRemove(ragdoll) -{ - // Get the dissolve type. - new dissolve = GetConVarInt(g_hCvarsList[CVAR_VEFFECTS_RAGDOLL_DISSOLVE]); - - if (dissolve == VEFFECTS_RAGDOLL_DISSOLVE_EFFECTLESS) - { - // Remove entity from world. - RemoveEdict(ragdoll); - return; - } - - // Prep the ragdoll for dissolving. - decl String:targetname[64]; - Format(targetname, sizeof(targetname), "zr_dissolve_%d", ragdoll); - DispatchKeyValue(ragdoll, "targetname", targetname); - - // Prep the dissolve entity. - new dissolver = CreateEntityByName("env_entity_dissolver"); - - // Set the target to the ragdoll. - DispatchKeyValue(dissolver, "target", targetname); - - // Set the dissolve type. - decl String:dissolvetype[16]; - Format(dissolvetype, sizeof(dissolvetype), "%d", dissolve); - DispatchKeyValue(dissolver, "dissolvetype", dissolvetype); - - // Tell the entity to dissolve the ragdoll. - AcceptEntityInput(dissolver, "Dissolve"); - - // Remove the dissolver. - RemoveEdict(dissolver); -} - -/** - * Timer callback. Removed a client's ragdoll. - * - * @param timer The timer handle. - * @param ragdoll The ragdoll index. - */ -public Action:RagdollTimer(Handle:timer, any:ragdoll) -{ - // If ragdoll removal is disabled, then stop. - new bool:ragdollremove = GetConVarBool(g_hCvarsList[CVAR_VEFFECTS_RAGDOLL_REMOVE]); - if (!ragdollremove) - { - return; - } - - // If the ragdoll is already gone, then stop. - if (!IsValidEdict(ragdoll)) - { - return; - } - - // Remove the ragdoll. - RagdollRemove(ragdoll); -} - -/** Finds the ragdoll entity of a client. - * @param client The client index. - * @return The entity index of the client's ragdoll, -1 if none exists. - */ -RagdollGetClientRagdoll(client) -{ - return GetEntDataEnt2(client, g_iToolsRagdoll); +/* + * ============================================================================ + * + * Zombie:Reloaded + * + * File: ragdoll.inc + * Type: Module + * Description: Remove ragdolls with optional effects. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + * ============================================================================ + */ + +/** + * @section Different dissolve types. + */ +#define VEFFECTS_RAGDOLL_DISSOLVE_EFFECTLESS -1 +#define VEFFECTS_RAGDOLL_DISSOLVE_ENERGY 0 +#define VEFFECTS_RAGDOLL_DISSOLVE_ELECTRICALH 1 +#define VEFFECTS_RAGDOLL_DISSOLVE_ELECTRICALL 2 +#define VEFFECTS_RAGDOLL_DISSOLVE_CORE 3 +/** + * @endsection + */ + +/** + * Variable to store ragdoll offset value. + */ +new g_iToolsRagdoll; + +/** + * Find VAmbience-specific offsets here. + */ +RagdollOnOffsetsFound() +{ + // If offset "m_iAccount" can't be found, then stop the plugin. + g_iToolsRagdoll = FindSendPropInfo("CCSPlayer", "m_hRagdoll"); + if (g_iToolsRagdoll == -1) + { + LogEvent(false, LogType_Fatal, LOG_CORE_EVENTS, LogModule_VEffects, "Offsets", "Offset \"CCSPlayer::m_hRagdoll\" was not found."); + } +} + +/** + * Client has been killed. + * + * @param client The client index. + */ +RagdollOnClientDeath(client) +{ + new ragdoll = RagdollGetClientRagdoll(client); + + // If the ragdoll is invalid, then stop. + if (ragdoll == -1) + { + return; + } + + // Get the delay. + new Float:dissolvedelay = GetConVarFloat(g_hCvarsList[CVAR_VEFFECTS_RAGDOLL_DELAY]); + + // If the delay is 0 or less, then remove right now. + if (dissolvedelay <= 0) + { + RagdollTimer(INVALID_HANDLE, ragdoll); + return; + } + + // Create a timer to remove/dissolve ragdoll. + CreateTimer(dissolvedelay, RagdollTimer, ragdoll, TIMER_FLAG_NO_MAPCHANGE); +} + +/** + * Removed a ragdoll from the game following plugin settings. + * + * @param ragdoll The ragdoll index. + */ +RagdollRemove(ragdoll) +{ + // Get the dissolve type. + new dissolve = GetConVarInt(g_hCvarsList[CVAR_VEFFECTS_RAGDOLL_DISSOLVE]); + + if (dissolve == VEFFECTS_RAGDOLL_DISSOLVE_EFFECTLESS) + { + // Remove entity from world. + RemoveEdict(ragdoll); + return; + } + + // Prep the ragdoll for dissolving. + decl String:targetname[64]; + Format(targetname, sizeof(targetname), "zr_dissolve_%d", ragdoll); + DispatchKeyValue(ragdoll, "targetname", targetname); + + // Prep the dissolve entity. + new dissolver = CreateEntityByName("env_entity_dissolver"); + + // Set the target to the ragdoll. + DispatchKeyValue(dissolver, "target", targetname); + + // Set the dissolve type. + decl String:dissolvetype[16]; + Format(dissolvetype, sizeof(dissolvetype), "%d", dissolve); + DispatchKeyValue(dissolver, "dissolvetype", dissolvetype); + + // Tell the entity to dissolve the ragdoll. + AcceptEntityInput(dissolver, "Dissolve"); + + // Remove the dissolver. + RemoveEdict(dissolver); +} + +/** + * Timer callback. Removed a client's ragdoll. + * + * @param timer The timer handle. + * @param ragdoll The ragdoll index. + */ +public Action:RagdollTimer(Handle:timer, any:ragdoll) +{ + // If ragdoll removal is disabled, then stop. + new bool:ragdollremove = GetConVarBool(g_hCvarsList[CVAR_VEFFECTS_RAGDOLL_REMOVE]); + if (!ragdollremove) + { + return; + } + + // If the ragdoll is already gone, then stop. + if (!IsValidEdict(ragdoll)) + { + return; + } + + // Remove the ragdoll. + RagdollRemove(ragdoll); +} + +/** Finds the ragdoll entity of a client. + * @param client The client index. + * @return The entity index of the client's ragdoll, -1 if none exists. + */ +RagdollGetClientRagdoll(client) +{ + return GetEntDataEnt2(client, g_iToolsRagdoll); } \ No newline at end of file diff --git a/src/zr/visualeffects/visualambience.inc b/src/zr/visualeffects/visualambience.inc index 2d21cef..eed590b 100644 --- a/src/zr/visualeffects/visualambience.inc +++ b/src/zr/visualeffects/visualambience.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: visualambience.inc - * Type: Module - * Description: Fog, light style, sky, sun rendering, etc + * File: visualambience.inc + * Type: Module + * Description: Fog, light style, sky, sun rendering, etc + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/visualeffects/visualeffects.inc b/src/zr/visualeffects/visualeffects.inc index 069010f..7792f37 100644 --- a/src/zr/visualeffects/visualeffects.inc +++ b/src/zr/visualeffects/visualeffects.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: visualeffects.inc - * Type: Module - * Description: Visual effects API. + * File: visualeffects.inc + * Type: Module + * Description: Visual effects API. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/weapons/restrict.inc b/src/zr/weapons/restrict.inc index 7874dd0..0603eaf 100644 --- a/src/zr/weapons/restrict.inc +++ b/src/zr/weapons/restrict.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: restrict.inc - * Type: Core - * Description: Weapon restriction system. + * File: restrict.inc + * Type: Core + * Description: Weapon restriction system. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/weapons/weaponalpha.inc b/src/zr/weapons/weaponalpha.inc index 0856f0a..6206fa7 100644 --- a/src/zr/weapons/weaponalpha.inc +++ b/src/zr/weapons/weaponalpha.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: weaponalpha.inc - * Type: Core - * Description: Weapon alpha functions, and alpha updating on drop/pickup. + * File: weaponalpha.inc + * Type: Core + * Description: Weapon alpha functions, and alpha updating on drop/pickup. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/weapons/weaponammo.inc b/src/zr/weapons/weaponammo.inc index d9dab3d..987d0f3 100644 --- a/src/zr/weapons/weaponammo.inc +++ b/src/zr/weapons/weaponammo.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: weaponammo.inc - * Type: Core - * Description: API for all weaponammo-related functions. + * File: weaponammo.inc + * Type: Core + * Description: API for all weaponammo-related functions. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/weapons/weapons.inc b/src/zr/weapons/weapons.inc index 198b742..0009dd6 100644 --- a/src/zr/weapons/weapons.inc +++ b/src/zr/weapons/weapons.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: weapons.inc - * Type: Core - * Description: API for all weapon-related functions. + * File: weapons.inc + * Type: Core + * Description: API for all weapon-related functions. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/weapons/zmarket.inc b/src/zr/weapons/zmarket.inc index a10940f..f953d65 100644 --- a/src/zr/weapons/zmarket.inc +++ b/src/zr/weapons/zmarket.inc @@ -3,9 +3,9 @@ * * Zombie:Reloaded * - * File: zmarket.inc - * Type: Module - * Description: ZMarket module, provides menu of weapons to buy from. + * File: zmarket.inc + * Type: Module + * Description: ZMarket module, provides menu of weapons to buy from. * * Copyright (C) 2009 Greyscale, Richard Helgeby * diff --git a/src/zr/zadmin.inc b/src/zr/zadmin.inc index 29521d6..051f716 100644 --- a/src/zr/zadmin.inc +++ b/src/zr/zadmin.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: zadmin.inc - * Type: Core - * Description: Handle admin functions and menus. + * File: zadmin.inc + * Type: Core + * Description: Handle admin functions and menus. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/zhp.inc b/src/zr/zhp.inc index 52a9cd2..1870cd4 100644 --- a/src/zr/zhp.inc +++ b/src/zr/zhp.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: zhp.inc - * Type: Module - * Description: Displays HP to zombies. + * File: zhp.inc + * Type: Module + * Description: Displays HP to zombies. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/zombiereloaded.inc b/src/zr/zombiereloaded.inc index 3ce6ca9..ce5688b 100644 --- a/src/zr/zombiereloaded.inc +++ b/src/zr/zombiereloaded.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: zombiereloaded.inc - * Type: Core - * Description: General plugin functions and defines. + * File: zombiereloaded.inc + * Type: Core + * Description: General plugin functions and defines. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/zspawn.inc b/src/zr/zspawn.inc index 3360e59..de3e2ca 100644 --- a/src/zr/zspawn.inc +++ b/src/zr/zspawn.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: zspawn.inc - * Type: Module - * 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. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */ diff --git a/src/zr/ztele.inc b/src/zr/ztele.inc index c9c860f..fcde8d6 100644 --- a/src/zr/ztele.inc +++ b/src/zr/ztele.inc @@ -3,9 +3,24 @@ * * Zombie:Reloaded * - * File: ztele.inc - * Type: Module - * Description: ZTele handle functions. + * File: ztele.inc + * Type: Module + * Description: ZTele handle functions. + * + * Copyright (C) 2009 Greyscale, Richard Helgeby + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . * * ============================================================================ */