From 5c980b5edc5776cc578f1adc588383032f486e3b Mon Sep 17 00:00:00 2001 From: Richard Helgeby Date: Fri, 11 Jan 2013 12:14:43 +0100 Subject: [PATCH] Increased max class HP to 100,000. Added a few game mode configs. --- .../configs/zr/playerclasses-nemesis.txt | 298 ++++++++++++++++++ .../gamemode-examples/cs_italy.cfg | 4 + .../gamemode-examples/de_dust.cfg | 4 + .../gamemode-examples/de_dust.post.cfg | 5 + .../gamemode-examples/de_dust2.cfg | 4 + .../cfg/sourcemod/zombiereloaded/nemesis.cfg | 25 ++ .../cfg/sourcemod/zombiereloaded/survivor.cfg | 15 +- .../cfg/sourcemod/zombiereloaded/swarm.cfg | 19 +- docs/zr_manual.htm | 2 +- src/zr/playerclasses/playerclasses.inc | 2 +- 10 files changed, 364 insertions(+), 14 deletions(-) create mode 100644 cstrike/addons/sourcemod/configs/zr/playerclasses-nemesis.txt create mode 100644 cstrike/cfg/sourcemod/zombiereloaded/gamemode-examples/cs_italy.cfg create mode 100644 cstrike/cfg/sourcemod/zombiereloaded/gamemode-examples/de_dust.cfg create mode 100644 cstrike/cfg/sourcemod/zombiereloaded/gamemode-examples/de_dust.post.cfg create mode 100644 cstrike/cfg/sourcemod/zombiereloaded/gamemode-examples/de_dust2.cfg create mode 100644 cstrike/cfg/sourcemod/zombiereloaded/nemesis.cfg diff --git a/cstrike/addons/sourcemod/configs/zr/playerclasses-nemesis.txt b/cstrike/addons/sourcemod/configs/zr/playerclasses-nemesis.txt new file mode 100644 index 0000000..a735afa --- /dev/null +++ b/cstrike/addons/sourcemod/configs/zr/playerclasses-nemesis.txt @@ -0,0 +1,298 @@ +// ============================================================================ +// +// Zombie:Reloaded Class configuration +// +// See Class Configuration (3.7) in the manual for detailed info. +// +// ============================================================================ +// +// SHORT DESCRIPTIONS +// +// Attribute: Values: Description: +// ---------------------------------------------------------------------------- +// enabled yes/no Enables or disables a class. +// team number Specifies what team the class belongs to: +// 0 - Zombies +// 1 - Humans +// 2 - Admin mode classes (incomplete feautre!) +// team_default yes/no Marks the class as the default class in the team. +// flags number Special class flags (bit field). To combine multiple flags +// use a sum of the flag values. Available flags: +// 1 - Admins only +// 2 - Mother zombies only +// group text Restrict class to member of this SourceMod group. Leave blank for no restriction. +// name text The class name used in class menu. +// description text The class description used in class menu. +// model_path text Path to model to use. Relative to cstrike folder. +// alpha_initial number Initial transparency setting. +// alpha_damaged number Transparency when damaged. +// alpha_damage number How much damage to do before switching alpha. +// overlay_path text Overlay displayed at the player. +// nvgs yes/no Give and turn on night vision. +// fov number Field of view value. 90 is default. +// has_napalm yes/no Allows player to throw napalm grenades. Humans only. +// napalm_time decimal Napalm burn duration. Zombies only. +// immunity_mode text Special immunity modes. Some modes only works on humans or zombies: +// "none" - Instant infection. +// "kill" - Humans are instantly killed instead of turning zombies when attacked by zombies. +// "full" - Completely immune. Humans can't be infected, zombies don't receive damage or knock back. Careful with this, it might not be that fun. +// "infect" - Humans are immune to infections until HP go below a threshold. Threshold at zero enable stabbing to death. +// "damage" - Zombies are immune to damage from humans/grenades, but still vulnerable to knock back. +// "delay" - Delay infection for a certain number of seconds. +// "shield" - Shield against infections (humans) or knock back (zombies) for a certain amount of seconds (similar to TF2's übercharge). Deploy with "zshield" command. +// immunity_amount number Immunity data value (humans only). Depends on the immunity mode above: +// "infect" - HP threshold. Infection will be allowed when HP go below this value. Zero will enable stabbing to death. +// "delay" - Number of seconds the infection is delayed since first hit by a zombie. +// "shield" - Number of seconds the shield is active. +// immunity_cooldown number Number of seconds of cooldown for temporary immunity actions, depending on mode. +// "delay" - Number of seconds the delay is reduced every time a zombie attack, while a delayed infection is in progress. +// "shield" - Number of seconds the player has to wait before the shield can be used again. +// no_fall_damage on/off Disables fall damage. +// health number How many health points to give. +// health_regen_interval decimal Sets the regeneration interval. 0 to disable. +// health_regen_amount number How much HP to give per interval. +// health_infect_gain number How much HP to give when the player infects someone. Zombies only. +// kill_bonus number How many points to give per kill. Zombies only. +// speed decimal The player speed. +// knockback decimal Force of the knockback when shot at. Zombies only. +// jump_height decimal Multiplier of the players jump height. 0.0 means no jump boost, 1.0 is normal. +// jump_distance decimal Multiplier of the players jump distance. 0.0 means no forward jump boost, 1.0 is normal. + +"classes" +{ + // ------------------------------------------ + // + // Zombie classes + // + // ------------------------------------------ + "zombie_nemesis" + { + // General + "enabled" "yes" + "team" "0" + "team_default" "yes" + "flags" "0" + "group" "" + + "name" "Nemesis" + "description" "+++ Everything!" + + // Model + "model_path" "models/player/ics/hellknight_red/t_guerilla.mdl" + "alpha_initial" "255" + "alpha_damaged" "255" + "alpha_damage" "0" + + // Hud + "overlay_path" "overlays/zr/zvision" + "nvgs" "no" + "fov" "120" + + // Effects + "has_napalm" "no" + "napalm_time" "15.0" + + // Player behavior + "immunity_mode" "none" + "immunity_amount" "1" + "immunity_cooldown" "60" + "no_fall_damage" "yes" + + "health" "64000" + "health_regen_interval" "0.0" + "health_regen_amount" "0" + "health_infect_gain" "100" + "kill_bonus" "2" + + "speed" "400" + "knockback" "1.8" + "jump_height" "1.3" + "jump_distance" "1.6" + } + + // ------------------------------------------ + // + // Human classes + // + // ------------------------------------------ + + "human_normal" + { + // General + "enabled" "yes" + "team" "1" + "team_default" "yes" + "flags" "0" + "group" "" + + "name" "Normal Human" + "description" "Default Counter-Strike settings" + + // Model + "model_path" "default" + "alpha_initial" "255" + "alpha_damaged" "255" + "alpha_damage" "0" + + // Hud + "overlay_path" "" + "nvgs" "no" + "fov" "90" + + // Effects + "has_napalm" "yes" + "napalm_time" "0.0" + + // Player behavior + "immunity_mode" "kill" + "immunity_amount" "1" + "immunity_cooldown" "60" + "no_fall_damage" "no" + + "health" "100" + "health_regen_interval" "0.0" + "health_regen_amount" "0" + "health_infect_gain" "0" + "kill_bonus" "2" + + "speed" "300" + "knockback" "0" + "jump_height" "1.0" + "jump_distance" "1.0" + } + + "human_speedy" + { + // General + "enabled" "yes" + "team" "1" + "team_default" "no" + "flags" "0" + "group" "" + + "name" "Speedy" + "description" "+Speed" + + // Model + "model_path" "default" + "alpha_initial" "255" + "alpha_damaged" "255" + "alpha_damage" "0" + + // Hud + "overlay_path" "" + "nvgs" "no" + "fov" "90" + + // Effects + "has_napalm" "no" + "napalm_time" "0.0" + + // Player behavior + "immunity_mode" "kill" + "immunity_amount" "1" + "immunity_cooldown" "60" + "no_fall_damage" "0" + + "health" "100" + "health_regen_interval" "0.0" + "health_regen_amount" "0" + "health_infect_gain" "0" + "kill_bonus" "1" + + "speed" "360" + "knockback" "0" + "jump_height" "1.0" + "jump_distance" "1.0" + } + + "human_light" + { + // General + "enabled" "yes" + "team" "1" + "team_default" "no" + "flags" "0" + "group" "" + + "name" "Light" + "description" "-Speed | +Jump | +Immunity" + + // Model + "model_path" "default" + "alpha_initial" "255" + "alpha_damaged" "255" + "alpha_damage" "0" + + // Hud + "overlay_path" "" + "nvgs" "no" + "fov" "90" + + // Effects + "has_napalm" "yes" + "napalm_time" "0.0" + + // Player behavior + "immunity_mode" "kill" + "immunity_amount" "1" + "immunity_cooldown" "60" + "no_fall_damage" "yes" + + "health" "100" + "health_regen_interval" "0.0" + "health_regen_amount" "0" + "health_infect_gain" "0" + "kill_bonus" "1" + + "speed" "260" + "knockback" "0" + "jump_height" "1.4" + "jump_distance" "1.4" + } + + "human_stealth" + { + // General + "enabled" "yes" + "team" "1" + "team_default" "no" + "flags" "0" + "group" "" + + "name" "Stealth" + "description" "Slow, but almost invisible" + + // Model + "model_path" "default" + "alpha_initial" "15" + "alpha_damaged" "15" + "alpha_damage" "0" + + // Hud + "overlay_path" "" + "nvgs" "no" + "fov" "90" + + // Effects + "has_napalm" "yes" + "napalm_time" "0.0" + + // Player behavior + "immunity_mode" "kill" + "immunity_amount" "1" + "immunity_cooldown" "60" + "no_fall_damage" "yes" + + "health" "100" + "health_regen_interval" "0.0" + "health_regen_amount" "0" + "health_infect_gain" "0" + "kill_bonus" "1" + + "speed" "260" + "knockback" "0" + "jump_height" "1.4" + "jump_distance" "1.4" + } +} diff --git a/cstrike/cfg/sourcemod/zombiereloaded/gamemode-examples/cs_italy.cfg b/cstrike/cfg/sourcemod/zombiereloaded/gamemode-examples/cs_italy.cfg new file mode 100644 index 0000000..f3ff255 --- /dev/null +++ b/cstrike/cfg/sourcemod/zombiereloaded/gamemode-examples/cs_italy.cfg @@ -0,0 +1,4 @@ +// Place this in cfg/sourcemod/zombiereloaded to use it. + +// Use survivor mode in cs_italy. +exec sourcemod/zombiereloaded/survivor.cfg diff --git a/cstrike/cfg/sourcemod/zombiereloaded/gamemode-examples/de_dust.cfg b/cstrike/cfg/sourcemod/zombiereloaded/gamemode-examples/de_dust.cfg new file mode 100644 index 0000000..b493c71 --- /dev/null +++ b/cstrike/cfg/sourcemod/zombiereloaded/gamemode-examples/de_dust.cfg @@ -0,0 +1,4 @@ +// Place this in cfg/sourcemod/zombiereloaded to use it. + +// Use swarm mode in de_dust. +exec sourcemod/zombiereloaded/swarm.cfg diff --git a/cstrike/cfg/sourcemod/zombiereloaded/gamemode-examples/de_dust.post.cfg b/cstrike/cfg/sourcemod/zombiereloaded/gamemode-examples/de_dust.post.cfg new file mode 100644 index 0000000..3b2379e --- /dev/null +++ b/cstrike/cfg/sourcemod/zombiereloaded/gamemode-examples/de_dust.post.cfg @@ -0,0 +1,5 @@ +// Place this in cfg/sourcemod/zombiereloaded to use it. + +// Use swarm mode in de_dust. Swarm mode also has a post map config that must +// be executed. +exec sourcemod/zombiereloaded/swarm.post.cfg diff --git a/cstrike/cfg/sourcemod/zombiereloaded/gamemode-examples/de_dust2.cfg b/cstrike/cfg/sourcemod/zombiereloaded/gamemode-examples/de_dust2.cfg new file mode 100644 index 0000000..61b832a --- /dev/null +++ b/cstrike/cfg/sourcemod/zombiereloaded/gamemode-examples/de_dust2.cfg @@ -0,0 +1,4 @@ +// Place this in cfg/sourcemod/zombiereloaded to use it. + +// Use nemesis mode in de_dust2. +exec sourcemod/zombiereloaded/nemesis.cfg diff --git a/cstrike/cfg/sourcemod/zombiereloaded/nemesis.cfg b/cstrike/cfg/sourcemod/zombiereloaded/nemesis.cfg new file mode 100644 index 0000000..1ca20de --- /dev/null +++ b/cstrike/cfg/sourcemod/zombiereloaded/nemesis.cfg @@ -0,0 +1,25 @@ +// Configures ZR in nemesis mode. Everyone but a small group of humans are +// infected. Execute this config from a pre map config file. + +// Using a custom class set with the nemesis class. All human classes are +// instantly killed when attacked by the zombie. +zr_config_path_playerclasses "configs/zr/playerclasses-nemesis.txt" + +// Set default zombie to the nemesis class. +zr_classes_default_zombie "Nemesis" + +// Use absolute infection mode. +zr_infect_mzombie_mode absolute + +// One mother zombie. +zr_infect_mzombie_ratio 1 + +// Zombies must be teleported to spawn on mother zombie infect, or the humans +// will be doomed. +zr_infect_mzombie_respawn 1 + +// Disable respawning of dead players. +zr_respawn 0 + +// Disable zspawn command. +zr_zspawn 0 diff --git a/cstrike/cfg/sourcemod/zombiereloaded/survivor.cfg b/cstrike/cfg/sourcemod/zombiereloaded/survivor.cfg index 844a9eb..7e78c9a 100644 --- a/cstrike/cfg/sourcemod/zombiereloaded/survivor.cfg +++ b/cstrike/cfg/sourcemod/zombiereloaded/survivor.cfg @@ -1,10 +1,10 @@ // Configures ZR in survivor mode. Everyone but a small group of humans are // infected. Execute this config from a pre map config file. -// Change to a different set of classes and models here if you want to use -// different classes. For instance: -// zr_config_path_playerclasses "configs/zr/survivorclasses.txt" -// zr_config_path_models "configs/zr/survivormodels.txt" +// Optional. Change to a different set of classes and models here if you want to +// use different classes. For instance: +// zr_config_path_playerclasses "configs/zr/playerclasses-survivor.txt" +// zr_config_path_models "configs/zr/models-survivor.txt" // Use absolute infection mode. zr_infect_mzombie_mode absolute @@ -16,3 +16,10 @@ zr_infect_mzombie_ratio -5 // Zombies must be teleported to spawn on mother zombie infect, or the humans // will be doomed. zr_infect_mzombie_respawn 1 + +// Respawn in zombie team. +zr_respawn 1 +zr_respawn_team_zombie 1 + +// Prevent zombies suiciding to get on human team. +zr_respawn_team_zombie_world 1 diff --git a/cstrike/cfg/sourcemod/zombiereloaded/swarm.cfg b/cstrike/cfg/sourcemod/zombiereloaded/swarm.cfg index c3fc2d9..3d25d65 100644 --- a/cstrike/cfg/sourcemod/zombiereloaded/swarm.cfg +++ b/cstrike/cfg/sourcemod/zombiereloaded/swarm.cfg @@ -4,11 +4,11 @@ // Execute this config from a pre map config file. Remember to also execute // swarm.post.cfg from a post map config file. -// Change to a different set of classes and models here if you want to use -// different classes. Remember to use immunity mode "infect" and amount "0" on -// all human classes. -// zr_config_path_playerclasses "configs/zr/survivorclasses.txt" -// zr_config_path_models "configs/zr/survivormodels.txt" +// Optional. Change to a different set of classes and models here if you want to +// use different classes. Remember to use immunity mode "infect" and amount "0" +// on all human classes. +// zr_config_path_playerclasses "configs/zr/playerclasses-swarm.txt" +// zr_config_path_models "configs/zr/models-swarm.txt" // Use dynamic infection mode. zr_infect_mzombie_mode dynamic @@ -17,6 +17,9 @@ zr_infect_mzombie_mode dynamic // fewer zombies. zr_infect_mzombie_ratio 2 -// Optionally, it might be good to teleport zombies to spawn on mother zombie -// infection. -// zr_infect_mzombie_respawn 1 +// Teleport zombies to spawn on mother zombie infection. +zr_infect_mzombie_respawn 1 + +// Disable respawning. +zr_respawn 0 +zr_zspawn 0 diff --git a/docs/zr_manual.htm b/docs/zr_manual.htm index 59a56b0..8070dbe 100644 --- a/docs/zr_manual.htm +++ b/docs/zr_manual.htm @@ -1375,7 +1375,7 @@ the admin-only flag in the flags attribute.

health number - 0 - 20000 + 0 - 100000 diff --git a/src/zr/playerclasses/playerclasses.inc b/src/zr/playerclasses/playerclasses.inc index 4bf885c..469861b 100644 --- a/src/zr/playerclasses/playerclasses.inc +++ b/src/zr/playerclasses/playerclasses.inc @@ -156,7 +156,7 @@ #define ZR_CLASS_IMMUNITY_COOLDOWN_MIN 0 #define ZR_CLASS_IMMUNITY_COOLDOWN_MAX 600 #define ZR_CLASS_HEALTH_MIN 1 -#define ZR_CLASS_HEALTH_MAX 20000 +#define ZR_CLASS_HEALTH_MAX 100000 #define ZR_CLASS_REGEN_INTERVAL_MIN 0.0 #define ZR_CLASS_REGEN_INTERVAL_MAX 900.0 #define ZR_CLASS_REGEN_AMOUNT_MIN 0