Formatted all config files to be consistent, and made the base config file.

* Added cvar to enable/disable napalm ignition.
This commit is contained in:
Greyscale 2009-06-11 22:36:22 -07:00
parent 07cb7bd94e
commit 2f87a49a43
9 changed files with 668 additions and 128 deletions

View File

@ -1,13 +1,15 @@
// ====================
// Zombie:Reloaded
// File: downloads.txt
// Author: Greyscale
// ====================
// ============================================================================
//
// Add files you want clients to download here
// ** DEFAULTS **
// ZOMBIE:RELOADED
// Downloads configuration
//
// Check the downloads configuration section in the manual for detailed info.
//
// ============================================================================
// * Each uncommented line will be used as a file path for clients to download.
// ----------------------------------------------------------------------------
// Defaults:
// ----------------------------------------------------------------------------
materials/models/player/zh/Zombie_Classic_sheet.vmt
materials/models/player/zh/corpse1.vmt
materials/models/player/zh/Charple1_sheet.vmt
@ -28,5 +30,3 @@ materials/overlays/zr/humans_win.vmt
// zvision
materials/overlays/zr/zvision.vtf
materials/overlays/zr/zvision.vmt
// ** END DEFAULTS **

View File

@ -1,22 +1,7 @@
// Hitgroups
//
// Format
//
// "hitgroup index" // Index of the hitgroup (listed below)
// {
// "index" "name of hitgroup" // Redundant as of now, used for readability.
// "knockback" "1.0" (default) // The knockback multiplier for the hitgroup.
// "damage" "yes" (default // Toggle damage on and off for this hitgroup.
// }
//
// Notes:
//
// A missing config setting will be assumed to be its default value (documented above).
// ============================================================================
//
// ZOMBIE:RELOADED
// Hitgroup configurations
// Hitgroup configuration
//
// Check the hitgroup configuration section in the manual for detailed info.
//
@ -26,7 +11,7 @@
//
// Attribute: Values: Description:
// ----------------------------------------------------------------------------
// index number The hitgroup index
// index number The hitgroup index.
// damage yes/no Allow damage to be done on this hitgroup for zombies.
// knockback decimal The knockback multiplier for this hitgroup.

View File

@ -1,17 +1,17 @@
// ====================
// Zombie:Reloaded
// File: models.txt
// Author: Greyscale
// ====================
// ============================================================================
//
// Add paths to models here
// They will automatically be downloaded to the client
// ** DEFAULTS
// ZOMBIE:RELOADED
// Model configuration
//
// Check the weapon configuration section in the manual for detailed info.
//
// ============================================================================
// * Each uncommented line will be used as a model path for clients to download,
// and classes to utilize.
// ----------------------------------------------------------------------------
// Defaults:
// ----------------------------------------------------------------------------
models/player/zh/zh_charple001
models/player/zh/zh_zombie003
models/player/zh/zh_corpse002
models/player/ics/hellknight_red/t_guerilla
// ** END DEFAULTS **

View File

@ -1,7 +1,7 @@
// ============================================================================
//
// ZOMBIE:RELOADED
// Class configurations
// Class configuration
//
// Check the class configuration section in the manual for detailed info.
//
@ -26,6 +26,7 @@
// overlay_path text Overlay displayed at the player.
// nvgs 0/1 Give night vision.
// fov number Field of view value. 90 is default.
// napalm_time decimal Napalm burn duration. Zombies only.
// immunity_mode number Sets the immunity mode.
// immunity_amount decimal Sets the immunity value.
// no_fall_damage 0/1 Disables fall damage.

View File

@ -1,7 +1,7 @@
// ============================================================================
//
// ZOMBIE:RELOADED
// Weapon configurations
// Weapon configuration
//
// Check the weapon configuration section in the manual for detailed info.
//

View File

@ -1,37 +0,0 @@
// Notes
// ---------------------------------------------------------------------------
// All notes are generalities, exceptions will be noted in appropriate place.
// ---------------------------------------------------------------------------
// * All units of time are read in seconds.
// * ...
// ---------------------------------------------------------------------------
// Format:
// <Cvar description>
// Default: "<Default value>"
// <Cvar> "<Value>"
// ---------------------------------------------------------------------------
// Description:
// "<Simple description> [<Specification> = '<Meaning>' | ...]"
// OR
// "<Simple description> [<Flag>: <Value> | ...]"
//
// Specifications:
// These are specific values that the cvar can be set to. Used to illustrate
// the scale of a cvar, min/max values, etc.
//
// Meaning:
// The description of what the specification does.
//
// Flag:
// Includes any of the following:
// * "Dependency" - Means this cvar relies on another cvar to be enabled.
// E.G. Has no effect until its dependencies are enabled.
// * "Delimiter" - Separate each item by this given character.
// * "Override" - Means this cvar overrides another if enabled.
// * "Recommended" - Means another cvar is recommended to be enabled if this
// one is.
// ...
//
// Value:
// The value of the flag. Usually a referenced cvar.
// ---------------------------------------------------------------------------

View File

@ -0,0 +1,620 @@
// ============================================================================
//
// ZOMBIE:RELOADED
// Plugin configuration
//
// Check the plugin configuration section in the manual for detailed info.
//
// ============================================================================
// Zombie-Related Server Variables
// ----------------------------------------------------------------------------
// Amount of time, in minutes, zombies have to infect all humans.
// Default: "5"
mp_roundtime 5
// Allows players to move items with their 'use' key.
// Default: "1"
sv_turbophysics 1
// Multiplier for how easy props are moved ['1' = No push]
// Default: "3"
phys_pushscale 3
// ----------------------------------------------------------------------------
// Ammo Reserve Settings
// ----------------------------------------------------------------------------
ammo_50AE_max 500 // deagle
ammo_762mm_max 300 // scout, ak47, g3sg1, aug
ammo_556mm_box_max 300 // m249
ammo_556mm_max 300 // galil, sg552, famas, m4a1, sg550
ammo_338mag_max 100 // awp
ammo_9mm_max 500 // mp5navy, tmp, glock, elite
ammo_buckshot_max 64 // m3, xm1014
ammo_45acp_max 500 // ump45, mac10, usp
ammo_357sig_max 500 // P228
ammo_57mm_max 500 // p90, fiveseven
// ----------------------------------------------------------------------------
// Notes
// ----------------------------------------------------------------------------
// All notes are generalities, exceptions will be noted in appropriate place.
// --------------------------------------------------------------------------
// * All units of time are assumed to be in seconds.
// * ...
// ----------------------------------------------------------------------------
// Format:
// <Cvar description>
// Default: "<Default value>"
// <Cvar> "<Value>"
// ----------------------------------------------------------------------------
// Description:
// "<Simple description> [<Specification> = '<Meaning>' | ...]"
// OR
// "<Simple description> [<Flag>: <Value> | ...]"
//
// Specifications:
// These are specific values that the cvar can be set to. Used to illustrate
// the scale of a cvar, min/max values, etc.
//
// Meaning:
// The description of what the specification does.
//
// Flag:
// Includes any of the following:
// * "Dependency" - Means this cvar relies on another cvar to be enabled.
// E.G. Has no effect until its dependencies are enabled.
// * "Delimiter" - Separate each item by this given character.
// * "Override" - Means this cvar overrides another if enabled.
// * "Recommended" - Means another cvar is recommended to be enabled if this
// one is.
// ...
//
// Value:
// The value of the flag. Usually a referenced cvar.
// ----------------------------------------------------------------------------
// Log (core)
// ----------------------------------------------------------------------------
// Enable logging of events in the plugin. Fatal errors are logged independent on this setting.
// Default: "1"
zr_log "1"
// A bit field that specify what event types to log. See logging section (3.3) in manual for details.
// Default: "3"
zr_log_flags "3"
// Enable module filtering. Only log events from listed modules will be logged.
// Default: "0"
zr_log_module_filter "0"
// Don't log events triggered by console commands that are executed by the console itself, like commands in configs. Enable this command to avoid spamming logs with events like weapon restrictions.
// Default: "1"
zr_log_ignore_console "1"
// Print log events to admin chat in addition to the log file.
// Default: "0"
zr_log_print_admins "0"
// Print log events to public chat in addition to the log file.
// Default: "0"
zr_log_print_chat "0"
// ----------------------------------------------------------------------------
// Config (core)
// ----------------------------------------------------------------------------
// Path, relative to root sourcemod directory, to models config file.
// Default: "configs/zr/models.txt"
zr_config_path_models "configs/zr/models.txt"
// Path, relative to root sourcemod directory, to downloads file.
// Default: "configs/zr/downloads.txt"
zr_config_path_downloads "configs/zr/downloads.txt"
// Path, relative to root sourcemod directory, to playerclasses config file.
// Default: "configs/zr/playerclasses.txt"
zr_config_path_playerclasses "configs/zr/playerclasses.txt"
// Path, relative to root sourcemod directory, to weapons config file.
// Default: "configs/zr/weapons.txt"
zr_config_path_weapons "configs/zr/weapons.txt"
// Path, relative to root sourcemod directory, to hitgroups config file.
// Default: "configs/zr/hitgroups.txt"
zr_config_path_hitgroups "configs/zr/hitgroups.txt"
// ----------------------------------------------------------------------------
// Classes (core)
// ----------------------------------------------------------------------------
// General
// Re-display class selection menu every spawn.
// Default: "0"
zr_classes_spawn "0"
// Player is assigned a random class every spawn. [Override: zr_classes_spawn&zr_classes_default_*]
// Default: "0"
zr_classes_random "0"
// Admin class assigned to admins on connect. ['random' = Random class | '""' = Class config default]
// Default: "random"
zr_classes_default_admin "random"
// Human class assigned to players on connect. ['random' = Random class | '""' = Class config default]
// Default: "random"
zr_classes_default_human "random"
// Zombie class assigned to players on connect. ['random' = Random class | '""' = Class config default]
// Default: "random"
zr_classes_default_zombie "random"
// Menu
// Automatically close class selection menu.
// Default: "0"
zr_classes_menu_autoclose "0"
// Overlay
// Allow players to toggle class overlay.
// Default: "1"
zr_classes_overlay_toggle "1"
// List of commands to hook that players can use to toggle class overlay. [Dependency: zr_classes_overlay_toggle | Delimiter: ", "]
// Default: "nightvision"
zr_classes_overlay_togglecmds "nightvision"
// Default class overlay toggle state set on connecting player. [Dependency: zr_classes_overlay_toggle]
// Default: "0"
zr_classes_overlay_default "0"
// ----------------------------------------------------------------------------
// Weapons (core)
// ----------------------------------------------------------------------------
// General
// Enable weapons module, disabling this will disable any weapons-related features. (weapon restrictions, weapon knockback multipliers, etc)
// Default: "1"
zr_weapons "1"
// Restrict
// Enable weapon restriction module, disabling this will disable weapon restriction commands.
// Default: "1"
zr_weapons_restrict "1"
// ZMarket
// Allow player to buy from a list of weapons in the weapons config.
// Default: "1"
zr_weapons_zmarket "1"
// Requires player to be inside a buyzone to use ZMarket. [Dependency: zr_weapons_zmarket]
// Default: "1"
zr_weapons_zmarket_buyzone "1"
// Allow players to rebuy their previous weapons. [Dependency: zr_weapons_zmarket]
// Default: "1"
zr_weapons_zmarket_rebuy "1"
// Allow players to automatically rebuy their previous weapons. [Dependency: zr_weapons_zmarket&zr_weapons_zmarket_rebuy]
// Default: "1"
zr_weapons_zmarket_rebuy_auto "1"
// ----------------------------------------------------------------------------
// Hitgroups (core)
// ----------------------------------------------------------------------------
// Enable hitgroups module, disabling this will disable hitgroup-related features. (hitgroup knockback multipliers, hitgroup damage control)
// Default: "1"
zr_hitgroups "1"
// ----------------------------------------------------------------------------
// Infect (core)
// ----------------------------------------------------------------------------
// General
// Number of mother zombies to infect (when infect timer is up) in proportion to number of humans on the server.
// Default: "5"
zr_infect_mzombie_ratio "5"
// Teleport mother zombies back to spawn on infect.
// Default: "0"
zr_infect_mzombie_respawn "0"
// Maximum time from the start of the round until picking the mother zombie(s).
// Default: "50.0"
zr_infect_spawntime_max "50.0"
// Minimum time from the start of the round until picking the mother zombie(s).
// Default: "30.0"
zr_infect_spawntime_min "30.0"
// Prevent a player from being chosen as mother zombie two rounds in a row.
// Default: "1"
zr_infect_consecutive_block "1"
// Force player to drop all weapons on infect, disabling this will strip weapons instead.
// Default: "1"
zr_infect_weapons_drop "1"
// Effects
// Spawn a fireball effect around player on infection.
// Default: "1"
zr_infect_fireball "1"
// Spawn a smoke cloud effect around player on infection.
// Default: "1"
zr_infect_smoke "1"
// Emit sparks from player on infection.
// Default: "1"
zr_infect_sparks "1"
// Sound, relative to "sounds" folder, to play from player on infection. ['""' = No sound]
// Default: "npc/fast_zombie/fz_scream1.wav"
zr_infect_sound "npc/fast_zombie/fz_scream1.wav"
// Emit an energy splash from player on infection.
// Default: "1"
zr_infect_esplash "1"
// Shake player's view on infect.
// Default: "1"
zr_infect_shake "1"
// Amplitude of shaking effect. [Dependency: zr_infect_shake]
// Default: "15.0"
zr_infect_shake_amp "15.0"
// Frequency of shaking effect. [Dependency: zr_infect_shake]
// Default: "1.0"
zr_infect_shake_frequency "1.0"
// Duration of shaking effect. [Dependency: zr_infect_shake]
// Default: "5.0"
zr_infect_shake_duration "5.0"
// ----------------------------------------------------------------------------
// Damage (core)
// ----------------------------------------------------------------------------
// Hitgroup damage
// Read hitgroup damage control from hitgroup config file, disabling this allows all zombie hitgroups to be shot.
// Default: "1"
zr_damage_hitgroups "1"
// Block Damage Types
// Block friendly fire.
// Default: "1"
zr_damage_block_ff "1"
// Block blast damage inflicted on self or teammates.
// Default: "1"
zr_damage_block_blast "1"
// Suicide Intercept
// Intercept suicide commands attempted by zombies.
// Default: "1"
zr_damage_suicide_zombie "1"
// Intercept suicide commands attempted by humans.
// Default: "1"
zr_damage_suicide_human "1"
// List of client commands to intercept as suicide attempts. [Delimiter: ", "]
// Default: "kill, spectate, jointeam"
zr_damage_suicide_cmds "kill, spectate, jointeam"
// ----------------------------------------------------------------------------
// Say Hooks (core)
// ----------------------------------------------------------------------------
// Stop certain in-game commands from appearing in chat. [See zr_sayhooks_quiet_filter&zr_sayhooks_quiet_flags]
// Default: "1"
zr_sayhooks_quiet "1"
// Stops any failed in-game command from showing in chat. Ex: Typing !zspawn while alive. [Dependency: zr_sayhooks_quiet]
// Default: "1"
zr_sayhooks_quiet_filter "1"
// Flag separate in-game commands to always hide from chat. [Dependency: zr_sayhooks_quiet]
// In-Game Command Flags:
// * Add numbers of desired flags together to produce final flag value.
// --------------------------------------------------------------------
// 1: !zmenu []
// 2: !zadmin [X]
// 4: !zclass []
// 8: !zspawn [X]
// 16: !ztele [X]
// 32: !zhp [X]
// 64: !zmarket []
//
// Default: "58" (Have [X] at the end)
zr_sayhooks_quiet_flags "58"
// ----------------------------------------------------------------------------
// Overlays (core)
// ----------------------------------------------------------------------------
// How often to update overlays on players. [0.0 = Disabled]
// Default: "1.0"
zr_overlays_update_time "1.0"
// ----------------------------------------------------------------------------
// Round End (core)
// ----------------------------------------------------------------------------
// Show specified overlay to players depending on winner when the round ends.
// Default: "1"
zr_roundend_overlay "1"
// Overlay, relative to "materials" folder, to display when zombies win the round. [Dependency: zr_roundend_overlay]
// Default: "overlays/zr/zombies_win"
zr_roundend_overlays_zombie "overlays/zr/zombies_win"
// Overlay, relative to "materials" folder, to display when humans win the round. [Dependency: zr_roundend_overlay]
// Default: "overlays/zr/humans_win"
zr_roundend_overlays_human "overlays/zr/humans_win"
// ----------------------------------------------------------------------------
// Account (module)
// ----------------------------------------------------------------------------
// Reset player's cash each spawn.
// Default: "1"
zr_account_cashfill "1"
// Amount of cash to set player's account to. [Dependency: zr_account_cashfill]
// Default: "12000"
zr_account_cashfill_value "12000"
// ----------------------------------------------------------------------------
// Visual Effects (module)
// ----------------------------------------------------------------------------
// Lightstyle
// Change lightstyle (brightness) of the map.
// Default: "1"
zr_veffects_lightstyle "1"
// Lightstyle value. ['a' = Darkest | 'z' = Brightest | Dependency: zr_veffects_lightstyle]
// Default: "b"
zr_veffects_lightstyle_value "b"
// Sky
// Change map skybox.
// Default: "1"
zr_veffects_sky "1"
// Skybox file, relative to "materials/skybox" folder, to change map skybox to. [Dependency: zr_veffects_sky]
// Default: "sky_borealis01up.vmt"
zr_veffects_sky_path "sky_borealis01up.vmt"
// Sun
// Disable sun rendering on map.
// Default: "1"
zr_veffects_sun_disable "1"
// Fog (UNSUPPORTED) SourceMod currently doesn't support this feature.
// (UNSUPPORTED) Enable fog rendering on the map.
// Default: "0"
zr_veffects_fog "0"
// (UNSUPPORTED) If fog exists already on the map, then replace with new modified fog. [Dependency: zr_veffects_fog]
// Default: "0"
zr_veffects_fog_override "0"
// (UNSUPPORTED) Primary color of the fog. [Dependency: zr_veffects_fog]
// Default: "255 255 255"
zr_veffects_fog_pcolor "255 255 255"
// (UNSUPPORTED) Secondary color of the fog. [Dependency: zr_veffects_fog]
// Default: "255 255 255"
zr_veffects_fog_scolor "255 255 255"
// (UNSUPPORTED) Density (thickness) of the fog. [Dependency: zr_veffects_fog]
// Default: "0.8"
zr_veffects_fog_density "0.8"
// (UNSUPPORTED) Distance from player to start rendering foremost fog. [Dependency: zr_veffects_fog]
// Default: "0"
zr_veffects_fog_startdist "0"
// (UNSUPPORTED) Distance from player to stop rendering fog. [Dependency: zr_veffects_fog]
// Default: "400"
zr_veffects_fog_enddist "400"
// (UNSUPPORTED) Vertical clipping plane.
// Default: "2000"
zr_veffects_fog_farz "2000"
// Ragdoll
// Remove players' ragdolls from the game after a delay.
// Default: "1"
zr_veffects_ragdoll_remove "1"
// The ragdoll removal effect. [-1: Effectless removal | 0: Energy dissolve | 1: Heavy electrical dissolve | 2: Light electrical dissolve | 3: Core dissolve | Dependency: zr_veffects_ragdoll_remove]
// Default: "1"
zr_veffects_ragdoll_dissolve "1"
// Time to wait before removing the ragdoll. [Dependency: zr_veffects_ragdoll_remove]
// Default: "0.5"
zr_veffects_ragdoll_delay "0.5"
// ----------------------------------------------------------------------------
// Sound Effects (module)
// ----------------------------------------------------------------------------
// Zombie Sounds
// Time between emission of a moan sound from a zombie.
// Default: "30.0"
zr_seffects_moan "30.0"
// The probability that a groan sound will be emitted from a zombie when shot. ['100' = 1% chance | '50' = 2% chance | '1' = 100% chance]
// Default: "5"
zr_seffects_groan "5"
// Emit a death sound when a zombie dies.
// Default: "1"
zr_seffects_death "1"
// Ambient Sounds
// Play an ambient sound to all players during gameplay.
// Default: "1"
zr_ambientsounds "1"
// Sound file, relative to "sounds" folder, to play as ambience. [Dependency: zr_ambientsounds]
// Default: "ambient/zr/zr_ambience.mp3"
zr_ambientsounds_file "ambient/zr/zr_ambience.mp3"
// Length of the ambient sound. [Dependency: zr_ambientsounds]
// Default: "60.0"
zr_ambientsounds_length "60.0"
// Volume of the ambient sound. [1.0 = Max volume | 0.0001 = Not audible | Dependency: zr_ambientsounds]
// Default: "0.8"
zr_ambientsounds_volume "0.8"
// ----------------------------------------------------------------------------
// Anti-Stick (module)
// ----------------------------------------------------------------------------
// Automatically unstick players when stuck within each others' collision hull.
// Default: "1"
zr_antistick "1"
// Time between each check for stuck players. [Dependency: zr_antistick]
// Default: "0.5"
zr_antistick_interval "0.5"
// ----------------------------------------------------------------------------
// Spawn Protect (module)
// ----------------------------------------------------------------------------
// Player will be protected from infection when spawning into the game late.
// Default: "1"
zr_spawnprotect "1"
// Amount of time to protect player. [Dependency: zr_spawnprotect]
// Default: "10"
zr_spawnprotect_time "10"
// Speed of the player during protection. ['300.0' = Normal | '600.0' = Double speed | Dependency: zr_spawnprotect]
// Default: "600.0"
zr_spawnprotect_speed "600.0"
// Alpha of the player during protection. ['255' = Fully visible | '0' = Completely invisible | Dependency: zr_spawnprotect]
// Default: "0"
zr_spawnprotect_alpha "0"
// ----------------------------------------------------------------------------
// Respawn (module)
// ----------------------------------------------------------------------------
// Respawn players after death. [Recommended: (Enable) zr_zspawn*]
// Default: "0"
zr_respawn "0"
// Time after death to delay player respawn. [Dependency: zr_respawn]
// Default: "1"
zr_respawn_delay "1"
// Respawn player as a zombie. [Dependency: zr_respawn]
// Default: "1"
zr_respawn_team_zombie "1"
// Respawn player as a zombie if player was killed by the world. [Override: zr_respawn_team_zombie]
// Default: "1"
zr_respawn_team_zombie_world "1"
// ----------------------------------------------------------------------------
// Napalm (module)
// ----------------------------------------------------------------------------
// Ignite grenade in mid-air after player throws it. [Dependency: Human Attribute 'napalm']
// Default: "1"
zr_napalm_ignite "1"
// ----------------------------------------------------------------------------
// Jump Boost (module)
// ----------------------------------------------------------------------------
// Prevent players from using forward jump boost multipliers to bunny hop.
// Default: "1"
zr_jumpboost_bunnyhop_protect "1"
// The maximum horizontal velocity a player can have for any additional push to be applied, when bunny hop prevention is enabled.
// Default: "275"
zr_jumpboost_bunnyhop_max "275"
// Specifies whether the speed should be reset, or limited to maximum when the limit is reached.
// Default: "1"
zr_jumpboost_bunnyhop_reset "1"
// ----------------------------------------------------------------------------
// Volumetric Features (module)
// ----------------------------------------------------------------------------
// Enables volumetric features.
// Default: "1"
zr_vol "1"
// How often to update player positions and trigger events, in seconds.
// Default: "1.0"
zr_vol_update_interval "1.0"
// How often to check for delayed events, in seconds. Use lower values for more precise delays.
// Default: "1.0"
zr_vol_trigger_interval "1.0"
// ----------------------------------------------------------------------------
// ZSpawn (module)
// ----------------------------------------------------------------------------
// Allow players to spawn into the game late.
// Default: "1"
zr_zspawn "1"
// Override spawn team when spawning by means of ZSpawn.
// Default: "1"
zr_zspawn_team_override "1"
// Spawn player on zombie team when spawning by means of ZSpawn. [Dependency: zr_zspawn_team_override | Override: zr_respawn_zombie]
// Default: "0"
zr_zspawn_team_zombie "0"
// Put a time limit on the use of ZSpawn.
// Default: "1"
zr_zspawn_timelimit "1"
// Time from the start of the round to allow ZSpawn. [Dependency: zr_zspawn_timelimit]
// Default: "120.0"
zr_zspawn_timelimit_time "120.0"
// ----------------------------------------------------------------------------
// ZTele (module)
// ----------------------------------------------------------------------------
// Allow zombies to use ZTele.
// Default: "1"
zr_ztele_zombie "1"
// Allow humans to use ZTele before the mother zombie has spawned.
// Default: "1"
zr_ztele_human_before "1"
// Allow humans to use ZTele after the mother zombie has spawned.
// Default: "0"
zr_ztele_human_after "0"
// Time between using ZTele command and teleportation for zombies. [Dependency: zr_ztele_zombie]
// Default: "3.0"
zr_ztele_delay_zombie "3.0"
// Time between using ZTele command and teleportation for humans. [Dependency: zr_ztele_human_(before)/(after)]
// Default: "3.0"
zr_ztele_delay_human "3.0"
// Max number of times a zombie is allowed to use ZTele per round. [Dependency: zr_ztele_zombie]
// Default: "3"
zr_ztele_max_zombie "3"
// Max number of times a human is allowed to use ZTele per round. [Dependency: zr_ztele_human_(before)/(after)]
// Default: "1"
zr_ztele_max_human "1"
// Automatically cancel ZTele if player moves out of a set boundary. [Dependency: zr_ztele_(zombie)/(human)[_(before)/(after)]]
// Default: "1"
zr_ztele_autocancel "1"
// Maximum distance, in feet, player is allowed to travel before teleport is cancelled. [Dependency: zr_ztele_autocancel]
// Default: "20"
zr_ztele_autocancel_distance "20"
// ----------------------------------------------------------------------------
// ZHP (module)
// ----------------------------------------------------------------------------
// Allow player to toggle real HP display as a zombie.
// Default: "1"
zr_zhp "1"
// Default ZHP toggle state set on connecting player. [Dependency: zr_zhp]
// Default: "1"
zr_zhp_default "1"

View File

@ -130,6 +130,7 @@ enum CvarsList
Handle:CVAR_RESPAWN_DELAY,
Handle:CVAR_RESPAWN_TEAM_ZOMBIE,
Handle:CVAR_RESPAWN_TEAM_ZOMBIE_WORLD,
Handle:CVAR_NAPALM_IGNITE,
Handle:CVAR_JUMPBOOST_BUNNYHOP_PROTECT,
Handle:CVAR_JUMPBOOST_BUNNYHOP_MAX,
Handle:CVAR_JUMPBOOST_BUNNYHOP_RESET,
@ -199,12 +200,6 @@ CvarsInit()
*/
CvarsCreate()
{
// ===========================
// General (Core)
// ===========================
g_hCvarsList[CVAR_ENABLE] = CreateConVar("zr_enable", "1", "");
// ===========================
// Log (core)
// ===========================
@ -215,14 +210,6 @@ CvarsCreate()
g_hCvarsList[CVAR_LOG_PRINT_ADMINS] = CreateConVar("zr_log_print_admins", "0", "Print log events to admin chat in addition to the log file.");
g_hCvarsList[CVAR_LOG_PRINT_CHAT] = CreateConVar("zr_log_print_chat", "0", "Print log events to public chat in addition to the log file.");
// ===========================
// Translations (core)
// ===========================
// (None)
// ===========================
// Config (core)
// ===========================
@ -232,21 +219,6 @@ CvarsCreate()
g_hCvarsList[CVAR_CONFIG_PATH_WEAPONS] = CreateConVar("zr_config_path_weapons", "configs/zr/weapons.txt", "Path, relative to root sourcemod directory, to weapons config file.");
g_hCvarsList[CVAR_CONFIG_PATH_HITGROUPS] = CreateConVar("zr_config_path_hitgroups", "configs/zr/hitgroups.txt", "Path, relative to root sourcemod directory, to hitgroups config file.");
// ===========================
// Tools (core)
// ===========================
// (None)
// ===========================
// Models (core)
// ===========================
// TODO: config file path.
// ===========================
// Classes (core)
// ===========================
@ -289,10 +261,11 @@ CvarsCreate()
// ===========================
g_hCvarsList[CVAR_HITGROUPS] = CreateConVar("zr_hitgroups", "1", "Enable hitgroups module, disabling this will disable hitgroup-related features. (hitgroup knockback multipliers, hitgroup damage control)");
// ===========================
// Infect (core)
// ===========================
// General
g_hCvarsList[CVAR_INFECT_MZOMBIE_RATIO] = CreateConVar("zr_infect_mzombie_ratio", "5", "Number of mother zombies to infect (when infect timer is up) in proportion to number of humans on the server.");
g_hCvarsList[CVAR_INFECT_MZOMBIE_RESPAWN] = CreateConVar("zr_infect_mzombie_respawn", "0", "Teleport mother zombies back to spawn on infect.");
g_hCvarsList[CVAR_INFECT_SPAWNTIME_MIN] = CreateConVar("zr_infect_spawntime_min", "30.0", "Minimum time from the start of the round until picking the mother zombie(s).");
@ -407,26 +380,18 @@ CvarsCreate()
// ===========================
// Antistick (module)
// Anti-Stick (module)
// ===========================
g_hCvarsList[CVAR_ANTISTICK] = CreateConVar("zr_antistick", "1", "Automatically unstick players when stuck within each others' collision hull.");
g_hCvarsList[CVAR_ANTISTICK_INTERVAL] = CreateConVar("zr_antistick_interval", "0.5", "Time between each check for stuck players. [Dependency: zr_antistick]");
// ===========================
// Knockback (module)
// ===========================
// (None)
// ===========================
// Spawn Protect (module)
// ===========================
g_hCvarsList[CVAR_SPAWNPROTECT] = CreateConVar("zr_spawnprotect", "1", "");
g_hCvarsList[CVAR_SPAWNPROTECT_TIME] = CreateConVar("zr_spawnprotect_time", "10", "");
g_hCvarsList[CVAR_SPAWNPROTECT_SPEED] = CreateConVar("zr_spawnprotect_speed", "600.0", "");
g_hCvarsList[CVAR_SPAWNPROTECT_ALPHA] = CreateConVar("zr_spawnprotect_alpha", "0", "");
g_hCvarsList[CVAR_SPAWNPROTECT] = CreateConVar("zr_spawnprotect", "1", "Player will be protected from infection when spawning into the game late.");
g_hCvarsList[CVAR_SPAWNPROTECT_TIME] = CreateConVar("zr_spawnprotect_time", "10", "Amount of time to protect player. [Dependency: zr_spawnprotect]");
g_hCvarsList[CVAR_SPAWNPROTECT_SPEED] = CreateConVar("zr_spawnprotect_speed", "600.0", "Speed of the player during protection. ['300.0' = Normal | '600.0' = Double speed | Dependency: zr_spawnprotect]");
g_hCvarsList[CVAR_SPAWNPROTECT_ALPHA] = CreateConVar("zr_spawnprotect_alpha", "0", "Alpha of the player during protection. ['255' = Fully visible | '0' = Completely invisible | Dependency: zr_spawnprotect]");
// ===========================
@ -442,8 +407,7 @@ CvarsCreate()
// Napalm (module)
// ===========================
// (None)
g_hCvarsList[CVAR_NAPALM_IGNITE] = CreateConVar("zr_napalm_ignite", "1", "Ignite grenade in mid-air after player throws it. [Dependency: Human Attribute 'napalm']");
// ===========================
// Jump Boost (module)
@ -454,7 +418,7 @@ CvarsCreate()
// ===========================
// Volumetric features (module)
// Volumetric Features (module)
// ===========================
g_hCvarsList[CVAR_VOL] = CreateConVar("zr_vol", "1", "Enables volumetric features.");
g_hCvarsList[CVAR_VOL_UPDATE_INTERVAL] = CreateConVar("zr_vol_update_interval", "1.0", "How often to update player positions and trigger events, in seconds.");

View File

@ -80,6 +80,13 @@ NapalmOnClientDeath(client)
*/
NapalmOnWeaponFire(const String:weapon[])
{
// If grenade fire is disabled, then stop.
new bool:napalmignite = GetConVarBool(g_hCvarsList[CVAR_NAPALM_IGNITE]);
if (!napalmignite)
{
return;
}
// If human class can't throw napalm grenades, then stop. (TODO)
/*if ()
{