[ReQ] New Idea (Armor)
[ReQ] New Idea (Armor)
Hi Escapers-Zone DEV team !
I have a nice idea !
Why not add anti-enfection armor ?
Like if a player get armor , the armor must protect him from enfection .
It will be good and help escapers from enfecting by zombies
I have a nice idea !
Why not add anti-enfection armor ?
Like if a player get armor , the armor must protect him from enfection .
It will be good and help escapers from enfecting by zombies
-
- Veteran Member
- Posts: 678
- Joined: 7 years ago
- Location: Paraguay
- Contact:
I already suggested Some Idea like this
But it is a bad idea
Many have requested this
IN Original Ze mod The Ant infection armor does not protect you
Just 1 hit and Boom your infect
So make sure To Fun fast as u can
This idea u suggested will turn the mod to zombie Plague a little
But it is a bad idea
Many have requested this
IN Original Ze mod The Ant infection armor does not protect you
Just 1 hit and Boom your infect
So make sure To Fun fast as u can
This idea u suggested will turn the mod to zombie Plague a little
Nobody Is That Busy If They Make Time
Yes , but anti-infection armor help escapers who have !
I think it's a good idea [mention]Raheem[/mention]
I think it's a good idea [mention]Raheem[/mention]
Hmm, In ZE Mod the armor is useless not like in ZP.
If you like this so much ok no problem it will need me to edit the core and make new forward it's: player_infected_pre()
And then add the armor system, Ok soon i'll release this edits here.
If you like this so much ok no problem it will need me to edit the core and make new forward it's: player_infected_pre()
And then add the armor system, Ok soon i'll release this edits here.
He who fails to plan is planning to fail
Ok Bro <3 !
It's already good idea for help humans escape and protect hem some times !!
It's already good idea for help humans escape and protect hem some times !!
Ok, I do it and there is new plugin for this and a edit in the core. This cvar:
Download:
ze_human_armor_amount 100
tells the amount to be given for all players at round start.Download:
He who fails to plan is planning to fail
-
- Veteran Member
- Posts: 678
- Joined: 7 years ago
- Location: Paraguay
- Contact:
I think it is better if u can make it for VIPs only
Can u ?
Nobody Is That Busy If They Make Time
Ok, Here it's now if player have
Code:
VIP_A
he will get the armor and this plugin will apply for him, Means if he is normal player and get armor for example from ground so it will be useless he should have VIP_A
flag so it can be effective for him.Code:
- #include <ze_vip>
- // Sound
- new const g_szArmorSound[] = "player/bhit_helmet-1.wav"
- // Cvars
- new g_pCvarArmorAmount
- public plugin_init()
- {
- register_plugin("[ZE] Armor","1.0","Raheem")
- // Cvars
- g_pCvarArmorAmount = register_cvar("ze_human_armor_amount", "100")
- }
- public ze_user_humanized(id)
- {
- set_entvar(id, var_armorvalue, get_pcvar_float(g_pCvarArmorAmount))
- }
- public ze_user_infected_pre(iVictim, iInfector, iDamage)
- {
- if (!(ze_get_vip_flags(id) & VIP_A))
- return HC_CONTINUE;
- if (iInfector != 0)
- {
- new iArmor = floatround(get_entvar(iVictim, var_armorvalue))
- if (iArmor > 0)
- {
- emit_sound(iVictim, CHAN_BODY, g_szArmorSound, 1.0, ATTN_NORM, 0, PITCH_NORM)
- if (iArmor - iDamage > 0)
- {
- set_entvar(iVictim, var_armorvalue, float(iArmor - iDamage))
- }
- else
- {
- set_entvar(iVictim, var_armorvalue, 0.0)
- }
- return HC_SUPERCEDE;
- }
- }
- return HC_CONTINUE;
- }
He who fails to plan is planning to fail
Raheem this armor auto for vips or will appear in buy menu ?
-
- Member
- Posts: 12
- Joined: 6 years ago
- Contact:
Hi ZE DEV TEAM i am getting error with this plugin cant compile this plugin for vips only can anyone compile that plugin for me
Take:
just dont forget the plugin includes and vip include.
just dont forget the plugin includes and vip include.
Code: Select all
#include <ze_vip>
// Sound
new const g_szArmorSound[] = "player/bhit_helmet-1.wav"
// Cvars
new g_pCvarArmorAmount
public plugin_init()
{
register_plugin("[ZE] Armor","1.0","Raheem")
// Cvars
g_pCvarArmorAmount = register_cvar("ze_human_armor_amount", "100")
}
public ze_user_humanized(id)
{
set_entvar(id, var_armorvalue, get_pcvar_float(g_pCvarArmorAmount))
}
public ze_select_item_pre(id, itemid)
{
// Player Not VIP?
if (!(ze_get_vip_flags(id) & VIP_A))
return PLUGIN_HANDLED
}
public ze_user_infected_pre(iVictim, iInfector, iDamage)
{
if (iInfector != 0)
{
new iArmor = floatround(get_entvar(iVictim, var_armorvalue))
if (iArmor > 0)
{
emit_sound(iVictim, CHAN_BODY, g_szArmorSound, 1.0, ATTN_NORM, 0, PITCH_NORM)
if (iArmor - iDamage > 0)
{
set_entvar(iVictim, var_armorvalue, float(iArmor - iDamage))
}
else
{
set_entvar(iVictim, var_armorvalue, 0.0)
}
return HC_SUPERCEDE;
}
}
return HC_CONTINUE;
}
-
- Member
- Posts: 12
- Joined: 6 years ago
- Contact:
SORRY BUT ITS NOT WORKING AT ALL ARMOR IS COMING BUT STILL WE GET INFECTED
Then it's not my fault or code.. speak with raheem he created this plugin i just converted it to only vips.
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
Armor wasn't included in the mod. This plugin just adds armor amount but it has no effect. If you want armor to be effective, you need to edit ze_core. If the hit function, before turning the player into zombie, check the victim has any armor value. If the vicitim has, easily decrease it. Then check if there is no armor (armor = 0), INFECT! MOHA..
This forward:Jack GamePlay wrote: ↑6 years ago Armor wasn't included in the mod. This plugin just adds armor amount but it has no effect. If you want armor to be effective, you need to edit ze_core. If the hit function, before turning the player into zombie, check the victim has any armor value. If the vicitim has, easily decrease it. Then check if there is no armor (armor = 0), INFECT! MOHA..
ze_user_infected_pre(iVictim, iInfector, iDamage)
already included in 1.2 version. So you can hook pre infection and know also damage so this is used in this plugin i write... He who fails to plan is planning to fail
hello ZE DEV TEAM we are getting problem with this plugins since we updated the mod to 1.3 players who has armor getting killed any solution
Oh, i forget something. I'll update the V1.3 with 2 fixes soon.
He who fails to plan is planning to fail
Fixed, please update your core with latest one here: viewtopic.php?f=6&t=6
Thank you for reporting this.
He who fails to plan is planning to fail
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute
Sign in
Who is online
Users browsing this forum: Yandex [Bot] and 5 guests