Raised This Month: $ Target: $400
 0% 

Costom Zombie Classes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ArmeniN
Junior Member
Join Date: Oct 2010
Old 10-26-2010 , 08:12   Costom Zombie Classes
Reply With Quote #1

Hi, i have problems with plugin wich i want to edit
I am such a noob in these things! Can you help me?

Code:
// 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 = 2000
const zclass5_speed = 400
const Float:zclass5_gravity = 0.9
const Float:zclass5_knockback = 1.00
const zclass5_infecthp = 1500 // extra hp for infections


/*============================================================================*/

// Class IDs
new g_zclass_leech

    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 (zp_get_user_zombie_class(infector) == g_zclass_leech)
        set_pev(infector, pev_health, float(pev(infector, pev_health) * zclass5_infecthp))
        const user_kill = (infector) = zclass5_infecthp * zclass5_health
}
When i I test it, i infect a human and i fall down and i won't die, but i have 0 hp and i cannot do anything!

And i want to make zombie with given infection bomb when infect.

My english

Last edited by ArmeniN; 10-26-2010 at 08:46.
ArmeniN is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 10-26-2010 , 08:52   Re: Costom Zombie Classes
Reply With Quote #2

Wrong section
Vechta is offline
ArmeniN
Junior Member
Join Date: Oct 2010
Old 10-26-2010 , 18:04   Re: Costom Zombie Classes
Reply With Quote #3

What? I don't underestand...
ArmeniN is offline
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 10-27-2010 , 02:24   Re: Costom Zombie Classes
Reply With Quote #4

You should post it here: http://forums.alliedmods.net/forumdisplay.php?f=11
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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