/*================================================================================
-----------------------------------
-*- [ZP] Default Zombie Classes -*-
-----------------------------------
================================================================================
Addapted for Zombie Apocalypse
=================================================================================
~~~~~~~~~~~~~~~
- 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 <zombieapocalypse>
/*================================================================================
[Plugin Customization]
=================================================================================*/
// Classic Zombie Attributes
new const zclass1_name[] = { "Zombie Clasico" }
new const zclass1_info[] = { "-->Balanceado--<" }
new const zclass1_model[] = { "zombie_source" }
new const zclass1_clawmodel[] = { "v_knife_zombie.mdl" }
const zclass1_level = 0
const zclass1_health = 8000
const zclass1_speed = 260
const Float:zclass1_gravity = 1.0
const Float:zclass1_knockback = 1.0
// Raptor Zombie Attributes
new const zclass2_name[] = { "Zombie Cazador" }
new const zclass2_info[] = { "Velocidad++ Knockback++" }
new const zclass2_model[] = { "za_hunter" }
new const zclass2_clawmodel[] = { "v_hunterz.mdl" }
const zclass2_level = 10
const zclass2_health = 9000
const zclass2_speed = 300
const Float:zclass2_gravity = 1.0
const Float:zclass2_knockback = 1.5
// Poison Zombie Attributes
new const zclass3_name[] = { "Zombie Esqueleto" }
new const zclass3_info[] = { "Velocidad- Salto++" }
new const zclass3_model[] = { "mummya" }
new const zclass3_clawmodel[] = { "v_mummya.mdl" }
const zclass3_level = 30
const zclass3_health = 10000
const zclass3_speed = 240
const Float:zclass3_gravity = 0.75
const Float:zclass3_knockback = 1.0
// Big Zombie Attributes
new const zclass4_name[] = { "Zombie Gordo" }
new const zclass4_info[] = { "Vida++ Velocidad- Knockback+" }
new const zclass4_model[] = { "bigzombie" }
new const zclass4_clawmodel[] = { "v_bigzombie.mdl" }
const zclass4_level = 40
const zclass4_health = 11000
const zclass4_speed = 240
const Float:zclass4_gravity = 1.0
const Float:zclass4_knockback = 1.25
// Leech Zombie Attributes
new const zclass5_name[] = { "Zombie DiaBlo" }
new const zclass5_info[] = { "Vida-- Salto+ \rConsigue vida extra al infectar" }
new const zclass5_model[] = { "diablo" }
new const zclass5_clawmodel[] = { "v_knife_hand_fireZombie.mdl" }
const zclass5_level = 50
const zclass5_health = 7000
const zclass5_speed = 260
const Float:zclass5_gravity = 0.75
const Float:zclass5_knockback = 1.0
const zclass5_infecthp = 200 // extra hp for infections
// Crysis Zombie Furien
new const zclass6_name[] = { "Zombie LusTy" }
new const zclass6_info[] = { "Vida++ Velocidad++ Salto++" }
new const zclass6_model[] = { "Lusty" }
new const zclass6_clawmodel[] = { "v_knife_ghost.mdl" }
const zclass6_level = 65
const zclass6_health = 14000
const zclass6_speed = 260
const Float:zclass6_gravity = 0.80
const Float:zclass6_knockback = 1.25
/*============================================================================*/
// 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", "MeRcyLeZZ")
// Register all classes
za_register_zombie_class(zclass1_name, zclass1_info, zclass1_model, zclass1_clawmodel, zclass1_level, zclass1_health, zclass1_speed, zclass1_gravity, zclass1_knockback)
za_register_zombie_class(zclass2_name, zclass2_info, zclass2_model, zclass2_clawmodel, zclass2_level, zclass2_health, zclass2_speed, zclass2_gravity, zclass2_knockback)
za_register_zombie_class(zclass3_name, zclass3_info, zclass3_model, zclass3_clawmodel, zclass3_level, zclass3_health, zclass3_speed, zclass3_gravity, zclass3_knockback)
za_register_zombie_class(zclass4_name, zclass4_info, zclass4_model, zclass4_clawmodel, zclass4_level, zclass4_health, zclass4_speed, zclass4_gravity, zclass4_knockback)
za_register_zombie_class(zclass5_name, zclass5_info, zclass5_model, zclass5_clawmodel, zclass5_level, zclass5_health, zclass5_speed, zclass5_gravity, zclass5_knockback)
za_register_zombie_class(zclass6_name, zclass6_info, zclass6_model, zclass6_clawmodel, zclass6_level, zclass6_health, zclass6_speed, zclass6_gravity, zclass6_knockback)
}
// User Infected forward
public zp_user_infected_post(id, infector)
{
// If attacker is a leech zombie, gets extra hp
if (infector)
{
if (zp_get_user_zombie_class(infector) == g_zclass_leech)
set_pev(infector, pev_health, float(pev(infector, pev_health) + zclass5_infecthp))
}
}