zp_zclasses40.sma
Код за потвърждение: Избери целия код
*================================================================================
-----------------------------------
-*- [ZP] Default Zombie Classes -*-
-----------------------------------
~~~~~~~~~~~~~~~
- Description -
~~~~~~~~~~~~~~~
This plugin adds the default zombie classes to Zombie Plague.
Feel free to modify their attributes to your liking.
Note: If zombie classes are disabled, the first registered class
will be used for all players (by default, Classic Zombie).
================================================================================*/
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
/*================================================================================
[Plugin Customization]
=================================================================================*/
// Classic Zombie Attributes
new const zclass1_name[] = { "Classic Zombie" }
new const zclass1_info[] = { "=Balanced=" }
new const zclass1_model[] = { "zombie_source" }
new const zclass1_clawmodel[] = { "v_knife_zombie.mdl" }
const zclass1_health = 6500
const zclass1_speed = 350
const Float:zclass1_gravity = 1.0
const Float:zclass1_knockback = 1.0
// Raptor Zombie Attributes
new const zclass2_name[] = { "Raptor Zombie" }
new const zclass2_info[] = { "HP-- Speed++ Knockback++" }
new const zclass2_model[] = { "zombie_source" }
new const zclass2_clawmodel[] = { "v_knife_zombie.mdl" }
const zclass2_health = 8000
const zclass2_speed = 350
const Float:zclass2_gravity = 1.0
const Float:zclass2_knockback = 1.5
// Poison Zombie Attributes
new const zclass3_name[] = { "Poison Zombie" }
new const zclass3_info[] = { "HP- Jump+ Knockback+" }
new const zclass3_model[] = { "zombie_source" }
new const zclass3_clawmodel[] = { "v_knife_zombie.mdl" }
const zclass3_health = 9500
const zclass3_speed = 350
const Float:zclass3_gravity = 0.75
const Float:zclass3_knockback = 1.25
// Big Zombie Attributes
new const zclass4_name[] = { "Big Zombie" }
new const zclass4_info[] = { "HP++ Speed- Knockback--" }
new const zclass4_model[] = { "zombie_source" }
new const zclass4_clawmodel[] = { "v_knife_zombie.mdl" }
const zclass4_health = 10000
const zclass4_speed = 350
const Float:zclass4_gravity = 1.0
const Float:zclass4_knockback = 0.5
// Leech Zombie Attributes
new const zclass5_name[] = { "Leech Zombie" }
new const zclass5_info[] = { "HP- Knockback+ Leech++" }
new const zclass5_model[] = { "zombie_source" }
new const zclass5_clawmodel[] = { "v_knife_zombie.mdl" }
const zclass5_health = 7000
const zclass5_speed = 350
const Float:zclass5_gravity = 1.0
const Float:zclass5_knockback = 1.25
const zclass5_infecthp = 200 // extra hp for infections
/*============================================================================*/
// Class IDs
new g_zclass_leech
// Zombie Classes MUST be registered on plugin_precache
public plugin_precache()
{
register_plugin("[ZP] Default Zombie Classes", "4.3 Fix5", "MeRcyLeZZ")
// Register all classes
zp_register_zombie_class(zclass1_name, zclass1_info, zclass1_model, zclass1_clawmodel, zclass1_health, zclass1_speed, zclass1_gravity, zclass1_knockback)
zp_register_zombie_class(zclass2_name, zclass2_info, zclass2_model, zclass2_clawmodel, zclass2_health, zclass2_speed, zclass2_gravity, zclass2_knockback)
zp_register_zombie_class(zclass3_name, zclass3_info, zclass3_model, zclass3_clawmodel, zclass3_health, zclass3_speed, zclass3_gravity, zclass3_knockback)
zp_register_zombie_class(zclass4_name, zclass4_info, zclass4_model, zclass4_clawmodel, zclass4_health, zclass4_speed, zclass4_gravity, zclass4_knockback)
g_zclass_leech = zp_register_zombie_class(zclass5_name, zclass5_info, zclass5_model, zclass5_clawmodel, zclass5_health, zclass5_speed, zclass5_gravity, zclass5_knockback)
}
// User Infected forward
public zp_user_infected_post(id, infector)
{
// If attacker is a leech zombie, gets extra hp
if (is_user_connected(infector) && zp_get_user_zombie_class(infector) == g_zclass_leech)
set_pev(infector, pev_health, float(pev(infector, pev_health) + zclass5_infecthp))
}
zombieplague.cfg
Код за потвърждение: Избери целия код
// ----------------------------------
// Zombie Plague 4.3 Fix5 Config File
// ----------------------------------
// Any changes you make here will be
// automatically loaded at map start
// General
// -------
zp_delay 10 // Time before any game mode starts in seconds
zp_lighting "c" // Map lighting ["a"-darkest // "z"-brightest // ""-default // "0"-disabled]
zp_thunderclap 90 // Thunderclap rate in seconds [0-disabled]
zp_triggered_lights 1 // Allow map triggered lights (e.g. light switches)
zp_remove_doors 0 // Remove doors from maps [0-none // 1-rotating only // 2-all doors]
zp_blockuse_pushables 1 // Block +use on pushables to prevent the speed bug
zp_block_suicide 1 // Prevent players from killing themselves
zp_random_spawn 1 // Enable random spawning (will use CSDM spawns if present)
zp_respawn_on_worldspawn_kill 1 // Respawn players after a worldspawn kill
zp_remove_dropped 0 // Time before removing dropped weapons in seconds [0-disabled]
zp_remove_money 1 // Remove player's money
zp_buy_custom 1 // Enable custom buy menus
zp_buyzone_time 0.0 // Time in seconds humans are allowed to use CS buyzones after spawning
zp_random_weapons 0 // Whether players should get weapons randomly instead of buying them
zp_admin_models_human 1 // Enable admin player models for humans
zp_admin_knife_models_human 0 // Enable admin knife models for humans
zp_admin_models_zombie 1 // Enable admin player models for zombies
zp_admin_knife_models_zombie 0 // Enable admin knife models for zombies
zp_zombie_classes 1 // Enable zombie classes
zp_stats_save 2 // Temporarily save player's ammo packs and zombie class when they disconnect
zp_starting_ammo_packs 100 // Starting amount of ammo packs for new players
zp_prevent_consecutive_modes 1 // Prevent the same game mode from being played two rounds in a row
zp_keep_health_on_disconnect 1 // Whether the health of the Nemesis/Survivor chosen to keep the round going should be set to that of the leaving player's
zp_hud_display 1 // Enable ZP custom HUD display at the bottom
// Deathmatch
// ----------
zp_deathmatch 4 // Deathmatch mode, respawn as: [0-disabled // 1-human // 2-zombie // 3-randomly // 4-balance]
zp_spawn_delay 5 // Delay before respawning on deathmatch mode in seconds
zp_spawn_protection 5 // Spawn protection time for deathmatch in seconds [0-disabled]
zp_respawn_on_suicide 0 // Respawn players if they commited suicide
zp_respawn_after_last_human 1 // Respawn players if only the last human is left
zp_infection_allow_respawn 1 // Allow respawning on infection rounds
zp_nem_allow_respawn 0 // Allow respawning on nemesis rounds
zp_surv_allow_respawn 0 // Allow respawning on survivor rounds
zp_swarm_allow_respawn 0 // Allow respawning on swarm rounds
zp_plague_allow_respawn 0 // Allow respawning on plague rounds
zp_respawn_zombies 9999999999999999 // Whether to respawn killed zombies
zp_respawn_humans 0 // Whether to respawn killed humans
zp_respawn_nemesis 0 // Whether to respawn killed nemesis
zp_respawn_survivors 0 // Whether to respawn killed survivors
// Extra Items
// -----------
zp_extra_items 1 // Enable extra items
zp_extra_weapons 1 // Include weapons
zp_extra_nvision 1 // Include night vision
zp_extra_antidote 1 // Include antidote
zp_extra_antidote_limit 999 // Antidote purchase limit per round
zp_extra_madness 1 // Include zombie madness
zp_extra_madness_limit 999 // Zombie madness purchase limit per round
zp_extra_madness_duration 5.0 // Zombie madness duration
zp_extra_infbomb 1 // Include infection bomb
zp_extra_infbomb_limit 999 // Infection bomb purchase limit per round
// Flashlight & Nightvision
// ------------------------
zp_nvg_give 1 // Give nightvision [0-disabled // 1-enabled // 2-enabled, but no auto turning on]
zp_nvg_custom 1 // Enable custom nightvision
zp_nvg_size 80 // Nightvision size (radius)
zp_nvg_color_R 0 // Zombie custom nightvision color (red)
zp_nvg_color_G 150 // Zombie custom nightvision color (green)
zp_nvg_color_B 0 // Zombie custom nightvision color (blue)
zp_nvg_hum_color_R 0 // Human/Spectator custom nightvision color (red)
zp_nvg_hum_color_G 150 // Human/Spectator custom nightvision color (green)
zp_nvg_hum_color_B 0 // Human/Spectator custom nightvision color (blue)
zp_nvg_nem_color_R 150 // Nemesis custom nightvision color (red)
zp_nvg_nem_color_G 0 // Nemesis custom nightvision color (green)
zp_nvg_nem_color_B 0 // Nemesis custom nightvision color (blue)
zp_flash_custom 0 // Enable custom flashlight
zp_flash_size 10 // Custom flashlight size (radius)
zp_flash_drain 1 // Custom flashlight drain rate [0-unlimited batteries]
zp_flash_charge 5 // Custom flashlight charge rate [0-non chargeable batteries]
zp_flash_distance 1000 // Custom flashlight max distance
zp_flash_color_R 100 // Custom flashlight color (red)
zp_flash_color_G 100 // Custom flashlight color (green)
zp_flash_color_B 100 // Custom flashlight color (blue)
zp_flash_show_all 1 // Let players see each other's flashlights
// Knockback
// ---------
zp_knockback 1 // Enable weapon knockback (note: pain shock free increases knockback effect)
zp_knockback_damage 1 // Use damage on knockback calculation
zp_knockback_power 1 // Use weapon power on knockback calculation
zp_knockback_zvel 0 // Should knockback affect vertical velocity
zp_knockback_ducking 0.25 // Knockback multiplier for crouched zombies [0-knockback disabled when ducking]
zp_knockback_distance 500 // Max distance for knockback to take effect
zp_knockback_nemesis 0.35 // Nemesis knockback multiplier [0-disable knockback for nemesis]
// Longjump
// --------
zp_leap_zombies 1 // Give leap to Zombies [0-disabled // 1-enabled // 2-only first zombie // 3-only last zombie]
zp_leap_zombies_force 500 // Force multiplier
zp_leap_zombies_height 300 // Upwards force
zp_leap_zombies_cooldown 5.0 // Time between leap uses
zp_leap_nemesis 1 // Give leap to Nemesis
zp_leap_nemesis_force 500 // Force multiplier
zp_leap_nemesis_height 300 // Upwards force
zp_leap_nemesis_cooldown 5.0 // Time between leap uses
zp_leap_survivor 0 // Give leap to Survivor
zp_leap_survivor_force 500 // Force multiplier
zp_leap_survivor_height 300 // Upwards force
zp_leap_survivor_cooldown 5.0 // Time between leap uses
// Humans
// ------
zp_human_health 120 // Health
zp_human_last_extrahp 0 // Last human's extra health reward
zp_human_speed 240 // Speed [0 - use CS default weapon speeds]
zp_human_gravity 1.0 // Gravity (0.5 = half)
zp_human_armor_protect 1 // Armor needs to be reduced completely in order to get infected
zp_human_unlimited_ammo 2 // Unlimited ammo [0-disabled // 1-BP ammo // 2-clip ammo]
zp_human_damage_reward 100 // Damage humans must deal on zombies to get an ammo pack [400 - disabled]
zp_human_frags_for_kill 2 // How many frags humans get for killing a zombie
// Custom Grenades
// ---------------
zp_fire_grenades 1 // Enable napalm grenades (overrides HE)
zp_fire_duration 10 // Burning duration in seconds
zp_fire_damage 5 // Burning damage (every 0.2 secs)
zp_fire_slowdown 0.5 // Burning slowdown multiplier (0.5 = reduces velocity by a half) [0-disabled]
zp_frost_grenades 1 // Enable frost grenades (overrides FB)
zp_frost_duration 3 // Freeze duration in seconds
zp_flare_grenades 1 // Enable flare grenades (overrides SG)
zp_flare_duration 60 // Flare lightning duration in seconds
zp_flare_size 25 // Flare lightning size (radius)
zp_flare_color 4 // Flare color [0-white // 1-red // 2-green // 3-blue // 4-full random // 5-random between r,g,b]
// Zombies
// -------
zp_zombie_first_hp 7.0 // First zombie HP multiplier (2.0 = double health)
zp_zombie_armor 0.65 // Armor multiplier (0.75 = zombies take 65% damage only)
zp_zombie_hitzones 0 // Allowed hitzones bitsum (look into fun.inc for body part bits) [0-disabled]
zp_zombie_infect_health 100 // How much health a zombie regains with every infection
zp_zombie_fov 110 // Field of view [0-dont change]
zp_zombie_silent 1 // Enable silent footsteps
zp_zombie_painfree 2 // Zombies are pain shock free [0-disabled // 1-enabled // 2-only last zombie // 3-only first zombie]
zp_zombie_bleeding 1 // Zombies leave footprints/bloodstains on the floor
zp_zombie_infect_reward 1 // Ammo packs given to zombies for infecting/killing a human
zp_zombie_damage_reward 50 // Damage zombies must deal on humans/survivor to get an ammo pack [5 - disabled]
zp_zombie_frags_for_infect 1 // How many frags zombies get for infecting a human
// Special Effects
// ---------------
zp_infection_screenfade 1 // Screen fade for infected player
zp_infection_screenshake 1 // Screen shake for infected player
zp_infection_sparkle 1 // Light sparkle on infection
zp_infection_tracers 1 // Tracers on infection
zp_infection_particles 1 // Particles on infection
zp_hud_icons 1 // Display small HUD icons on infection, burning, and freeze events
// Nemesis
// -------
zp_nem_enabled 1 // Enable nemesis mode
zp_nem_chance 20 // Chance (1 in X)
zp_nem_min_players 0 // Minimum players required
zp_nem_health 0 // Health [0 - human count*base health]
zp_nem_base_health 0 // Base health [0 - use first zombie's health]
zp_nem_speed 250 // Speed
zp_nem_gravity 0.5 // Gravity (0.5 = half)
zp_nem_damage 950 // Damage per hit
zp_nem_glow 1 // Glow effect
zp_nem_aura 1 // Halo effect
zp_nem_painfree 0 // Pain shock free
zp_nem_ignore_frags 1 // Whether to earn frags
zp_nem_ignore_rewards 0 // Whether to earn ammo packs
// Survivor
// -------
zp_surv_enabled 1 // Enable survivor mode
zp_surv_chance 20 // Chance (1 in X)
zp_surv_min_players 0 // Minimum players required
zp_surv_health 0 // Health [0 - zombie count*base health]
zp_surv_base_health 0 // Base health [0 - use human's health]
zp_surv_speed 230 // Speed
zp_surv_gravity 1.25 // Gravity (0.5 = half)
zp_surv_glow 1 // Glow effect
zp_surv_aura 1 // Halo effect
zp_surv_painfree 1 // Pain shock free
zp_surv_ignore_frags 1 // Whether to earn frags
zp_surv_ignore_rewards 2 // Whether to earn ammo packs
zp_surv_weapon "weapon_m249" // Survivor's weapon (given by default)
zp_surv_unlimited_ammo 2 // Unlimited ammo for Survivor [0-disabled // 1-BP ammo // 2-clip ammo]
// Swarm Mode
// ----------
zp_swarm_enabled 1 // Enable swarm mode
zp_swarm_chance 20 // Chance (1 in X)
zp_swarm_min_players 0 // Minimum players required
// Multiple Infection
// ------------------
zp_multi_enabled 1 // Enable multiple infection mode
zp_multi_chance 20 // Chance (1 in X)
zp_multi_min_players 0 // Minimum players required
zp_multi_ratio 0.15 // Infect ratio (zombie count = ratio*humans count)
// Plague Mode
// -----------
zp_plague_enabled 1 // Enable plague mode
zp_plague_chance 30 // Chance (1 in X)
zp_plague_min_players 0 // Minimum players required
zp_plague_ratio 0.5 // Infect ratio (zombie count = ratio*humans count)
zp_plague_nem_number 1 // Nemesis count
zp_plague_nem_hp_multi 0.5 // Nemesis HP multiplier (0.5 = 50% health)
zp_plague_surv_number 1 // Survivor count
zp_plague_surv_hp_multi 0.5 // Survivor HP multiplier (0.5 = 50% health)
// Logging
// -------
zp_logcommands 1 // Log admin commands to "zombieplague.log"
// Additional settings
// -------------------
mp_flashlight 1 // Enables flashlight
mp_footsteps 1 // Enables footsteps
mp_playerid 1 // Prevents seeing enemies in the dark exploit
sv_maxspeed 9999 // Prevents CS from limiting your human/zombie speeds at 320
mp_buytime 99 // Prevents CS buytime messing up ZP buytime cvar