Increased max class HP to 100,000. Added a few game mode configs.

This commit is contained in:
Richard Helgeby 2013-01-11 12:14:43 +01:00
parent 3cdebf55b4
commit 5c980b5edc
10 changed files with 364 additions and 14 deletions

View File

@ -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"
}
}

View File

@ -0,0 +1,4 @@
// Place this in cfg/sourcemod/zombiereloaded to use it.
// Use survivor mode in cs_italy.
exec sourcemod/zombiereloaded/survivor.cfg

View File

@ -0,0 +1,4 @@
// Place this in cfg/sourcemod/zombiereloaded to use it.
// Use swarm mode in de_dust.
exec sourcemod/zombiereloaded/swarm.cfg

View File

@ -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

View File

@ -0,0 +1,4 @@
// Place this in cfg/sourcemod/zombiereloaded to use it.
// Use nemesis mode in de_dust2.
exec sourcemod/zombiereloaded/nemesis.cfg

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1375,7 +1375,7 @@ the admin-only flag in the <span class="code">flags</span> attribute.</p>
<tr>
<td class="commandheader">health</td>
<td class="commandheader">number</td>
<td class="commandheader">0 - 20000</td>
<td class="commandheader">0 - 100000</td>
</tr>
<tr>
<td class="indent" colspan="3">

View File

@ -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