Raised This Month: $ Target: $400
 0% 

[HELP-ZP] I cant find it.


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
adamCSzombie1
Junior Member
Join Date: May 2014
Location: Slovakia Košice
Old 05-13-2014 , 08:35   [HELP-ZP] I cant find it.
#1

Hi All AlliedModders.
I from Slovakia and i have not got english lang.
I do not know how to make it to the first zombies infecting humans one hit.
I seen this in one of the server.
And I also tried takedamage but it also is not as good. I do not know how to do that first zombie infected human to one shot and eased him at least 100Anti-Infect Armor and unable to infect example Soilder Uqz for me it's called Terminator and even that did not infect my Hannibal Lector.
Thank you for your help.
AdamCSzombie.

Last edited by fysiks; 05-13-2014 at 12:43. Reason: Removed annoying font.
adamCSzombie1 is offline
Send a message via Skype™ to adamCSzombie1
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-13-2014 , 08:38   Re: [HELP-ZP] I cant find it.
#2

My eyes! My head hurts again, thank you!

Take your zp.sma, search the place where pev_armorvalue is checked add !g_firstzombie[attacker]
.Dare Devil. is offline
adamCSzombie1
Junior Member
Join Date: May 2014
Location: Slovakia Košice
Old 05-13-2014 , 09:27   Re: [HELP-ZP] I cant find it.
#3

Like this?
}

return HAM_IGNORED;
}

// Attacker is zombie...

// Prevent infection/damage by HE grenade (bugfix)
if (damage_type & DMG_HEGRENADE)
return HAM_SUPERCEDE;

// Nemesis?
if (g_nemesis[attacker])
{
// Ignore nemesis damage override if damage comes from a 3rd party entity
// (to prevent this from affecting a sub-plugin's rockets e.g.)
if (inflictor == attacker)
{
// Set nemesis damage
SetHamParamFloat(4, get_pcvar_float(cvar_nemdamage))
}

return HAM_IGNORED;
}

// Last human or not an infection round
if (g_survround || g_nemround || g_swarmround || g_plagueround || fnGetHumans() == 1)
return HAM_IGNORED; // human is killed

// Does human armor need to be reduced before infecting?
if (get_pcvar_num(cvar_humanarmor))
{
// Get victim armor
static Float:armor
pev(victim, pev_armorvalue, armor ,g_firstzombie[attacker])

// Block the attack if he has some
if (armor > 0.0)
adamCSzombie1 is offline
Send a message via Skype™ to adamCSzombie1
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-13-2014 , 10:13   Re: [HELP-ZP] I cant find it.
#4

PHP Code:
if (get_pcvar_num(cvar_humanarmor) && !g_firstzombie[attacker] ) 
You have no idea how scripting works do you?
.Dare Devil. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-13-2014 , 12:41   Re: [HELP-ZP] I cant find it.
#5

The forum rules require that your topic title be descriptive. Please change your title to describe your issue or question. If you fail to do so, you risk your topics being trashed.

Also, do not make posts in all bold font.
__________________
fysiks is offline
adamCSzombie1
Junior Member
Join Date: May 2014
Location: Slovakia Košice
Old 05-13-2014 , 13:31   Re: [HELP-ZP] I cant find it.
#6

Quote:
Originally Posted by .Dare Devil. View Post
PHP Code:
if (get_pcvar_num(cvar_humanarmor) && !g_firstzombie[attacker] ) 
You have no idea how scripting works do you?
Im Newbie with this and thanks all work on my server and servery is full thanks
adamCSzombie1 is offline
Send a message via Skype™ to adamCSzombie1
Closed Thread


Thread Tools
Display Modes

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 09:46.


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