AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   [ZP50] Human Classes Collection (https://forums.alliedmods.net/showthread.php?t=251526)

New.ZM.Life 11-14-2014 16:33

[ZP50] Human Classes Collection
 
Hi all
I want to put here some human classes,for zp5.0
making them is easy,but i will share them here if anyone need them,download and use


by the way,this human classes can be optimized for ZP5.0,i will try to remake this human classes

Quote:

Credits
Wicho,to learn me how to use some natives
zmd94,for his plugins,some of my codes just a copy paste from his plugins :D
if you see any bug,just tell me here.


Human Classes List

1-Eagle Eyes Human >> Free Nightvision,Press N
2-Madness Human >> Get Zombie Madness when infected
3-Leaper Human >> Can Leap/LongJump
4-Power Knife Human >> His Knife has multiplier damage
5-MultiGunner Human >> has some Extra Weapons when Spawn(Powerful Class)
6-Last Human! >> If become Last Human,become SURVIVOR
7-Multijumper Human >> has Extra Multijumps(can edit by cvar)
8-Invisible Human >> Press [R] to become Invisible(by zmd94)
9-BunnyHop Human >> BunnyHop Ability
10-Mutant Human >> when infected,become nemesis for 10 seconds,then turn in to zombie
11-Equipped Human >> 5x Frost,Fire Nades
12-Armored Human >> 100 Additional Armor
13-Teleporter Human >> Teleport Ability,can be Teleport X time in a Round
14-Inflictor Human >> His Knife has Knockback Power to shoot Zombies away + Thunder Effect for his Knife :)
15-Fast Runner Human >> Press [R] to Fast Running


I will accept any new idea to create new Human Classes

New.ZM.Life 11-20-2014 07:44

Re: [ZP 5.0] Human Classes
 
1 Attachment(s)
New Human Class
Eagle Eyes Human

this human class has free nightvision,even your server disable nightvision to humans
just press N to use nightvision



New.ZM.Life 11-20-2014 08:21

Re: [ZP 5.0] Human Classes
 
1 Attachment(s)
New Human Class
Madness Human
this human class gets free zombie madness after infection ;)

New.ZM.Life 11-21-2014 10:49

Re: [ZP 5.0] Human Classes
 
1 Attachment(s)
New Human Class
Leaper Human
this human class can do leap every X seconds(by cvar)

what can you edit: default values)
zp_leaper_human_cooldown 10
zp_leap_height 300
zp_leap_force 500

New.ZM.Life 11-21-2014 10:53

Re: [ZP 5.0] Human Classes
 
1 Attachment(s)
New Human Class
Power Knife Human
this Human Class use a powerful knife,which can damage zombies multiplier
to edit multiplier damage,just edit this cvar (default value = 5)

zp_powerknife_dmg_multi 5



zmd94 11-21-2014 10:58

Re: [ZP 5.0] Human Classes
 
It is better if you make a list in the first thread about all of the human classes. Then, there will be more easier for anybody to find which human class that they want. ;)

New.ZM.Life 11-21-2014 10:59

Re: [ZP 5.0] Human Classes
 
1 Attachment(s)
New Human Class
MultiGunner Human
this human class has 3 primary and 1 secondary guns,and also one smokegrenade(flare),one frost nade,and one HEgrenade(napalm nade)

default guns:
1-M249 Para Machine Gun
2-XM1014 Shotgun
3-G3SG1 Auto Sniper
4-Deagle

NOTE:
1-this human class is powerful,so i suggest you to use it for only vip or admin or special players in your server
2-i used humanpack code to create this class

New.ZM.Life 11-21-2014 11:00

Re: [ZP 5.0] Human Classes
 
Quote:

Originally Posted by zmd94 (Post 2226709)
It is better if you make a list in the first thread about all of the human classes. Then, there will be more easier for anybody to find which human class that they want. ;)


Yes,i will do it after making 2-3 more classes :D

zmd94 11-21-2014 12:10

Re: [ZP 5.0] Human Classes
 
This is the better way for the last human code:
PHP Code:

/*================================================================================
    
    ----------------------------------
    -*- [ZP] Human Class: Last Human -*-
    ----------------------------------
    
    This plugin is part of Zombie Plague Mod and is distributed under the
    terms of the GNU General Public License. Check ZP_ReadMe.txt for details.
    
================================================================================*/

#include <amxmodx>
#include <fun>
#include <zp50_core>
#include <zp50_class_human>
#include <zp50_class_survivor>

// Last Human Attributes
new const humanclass1_name[] = "Last Human"
new const humanclass1_info[] = "Free Survivor"
new const humanclass1_models[][] = { "leet" }
const 
humanclass1_health 150
const Float:humanclass1_speed 1.0
const Float:humanclass1_gravity 1.0

new g_iLast
new g_iHealth

public plugin_init()
{
    
g_iHealth register_cvar("last_human_health""500"// The amount of health for the survivor
}

public 
plugin_precache()
{
    
register_plugin("[ZP] Human Class: Last Human""1.0""ZP Dev Team")
    
    
g_iLast zp_class_human_register(humanclass1_namehumanclass1_infohumanclass1_healthhumanclass1_speedhumanclass1_gravity)
    
    new 
index
    
for (index 0index sizeof humanclass1_modelsindex++)
        
zp_class_human_register_model(g_iLasthumanclass1_models[index])
}

public 
zp_fw_core_last_human(id)
{
    if(
zp_class_survivor_get(id))
        return
    
    if(
zp_class_human_get_current(id) == g_iLast)
    {
        
zp_class_survivor_set(id)
        
set_user_health(idget_pcvar_num(g_iHealth)) 
    }


No need to set_task.

Next, no need to add #include that you don't use it for the code. Please check again all of your codes. ;)

#include <zp50_colorchat> if only if you use ZP custom chat.
#include <zmvip> if only if you have ZM_VIP forward or native in your code.
etc.

New.ZM.Life 11-21-2014 13:46

Re: [ZP 5.0] Human Classes
 
Quote:

Originally Posted by zmd94 (Post 2226738)
This is the better way for the last human code:
PHP Code:

/*================================================================================
    
    ----------------------------------
    -*- [ZP] Human Class: Last Human -*-
    ----------------------------------
    
    This plugin is part of Zombie Plague Mod and is distributed under the
    terms of the GNU General Public License. Check ZP_ReadMe.txt for details.
    
================================================================================*/

#include <amxmodx>
#include <fun>
#include <zp50_core>
#include <zp50_class_human>
#include <zp50_class_survivor>

// Last Human Attributes
new const humanclass1_name[] = "Last Human"
new const humanclass1_info[] = "Free Survivor"
new const humanclass1_models[][] = { "leet" }
const 
humanclass1_health 150
const Float:humanclass1_speed 1.0
const Float:humanclass1_gravity 1.0

new g_iLast
new g_iHealth

public plugin_init()
{
    
g_iHealth register_cvar("last_human_health""500"// The amount of health for the survivor
}

public 
plugin_precache()
{
    
register_plugin("[ZP] Human Class: Last Human""1.0""ZP Dev Team")
    
    
g_iLast zp_class_human_register(humanclass1_namehumanclass1_infohumanclass1_healthhumanclass1_speedhumanclass1_gravity)
    
    new 
index
    
for (index 0index sizeof humanclass1_modelsindex++)
        
zp_class_human_register_model(g_iLasthumanclass1_models[index])
}

public 
zp_fw_core_last_human(id)
{
    if(
zp_class_survivor_get(id))
        return
    
    if(
zp_class_human_get_current(id) == g_iLast)
    {
        
zp_class_survivor_set(id)
        
set_user_health(idget_pcvar_num(g_iHealth)) 
    }


No need to set_task.

Next, no need to add #include that you don't use it for the code. Please check again all of your codes. ;)

#include <zp50_colorchat> if only if you use ZP custom chat.
#include <zmvip> if only if you have ZM_VIP forward or native in your code.
etc.


oh yeah i didnt see that we have that forward.thank you for telling

this additional includes,i just forgot to remove them,they are not important,ok i will update all codes and remove additional includes and codes


All times are GMT -4. The time now is 14:56.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.