AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP-ZP] I cant find it. (https://forums.alliedmods.net/showthread.php?t=240342)

adamCSzombie1 05-13-2014 08:35

[HELP-ZP] I cant find it.
 
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.:)

.Dare Devil. 05-13-2014 08:38

Re: [HELP-ZP] I cant find it.
 
My eyes! My head hurts again, thank you!

Take your zp.sma, search the place where pev_armorvalue is checked add !g_firstzombie[attacker]

adamCSzombie1 05-13-2014 09:27

Re: [HELP-ZP] I cant find it.
 
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)

.Dare Devil. 05-13-2014 10:13

Re: [HELP-ZP] I cant find it.
 
PHP Code:

if (get_pcvar_num(cvar_humanarmor) && !g_firstzombie[attacker] ) 

You have no idea how scripting works do you?

fysiks 05-13-2014 12:41

Re: [HELP-ZP] I cant find it.
 
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.

adamCSzombie1 05-13-2014 13:31

Re: [HELP-ZP] I cant find it.
 
Quote:

Originally Posted by .Dare Devil. (Post 2137184)
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 :)


All times are GMT -4. The time now is 09:46.

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