Ive already tried that
I have Two bots-entities.
look at the log
1st hit produce TWO lines instead of ONE , for EACH entity in the world
L 11/12/2014 - 13:28:09: [soccer.amxx] damage 65.00 victim health 35.00
L 11/12/2014 - 13:28:09: [soccer.amxx] damage 65.00 victim health 35.00
second hit also 2 lines
L 11/12/2014 - 13:28:12: [soccer.amxx] damage 65.00 victim health -30.00
L 11/12/2014 - 13:28:12: [soccer.amxx] damage 65.00 victim health -30.00
So condition below makes TWO entities instead of "killed" one
PHP Code:
public fw_takedamage_ent(victim, inflictor, attacker, Float:damage, damage_type)
{
if(damage >= entity_get_float(victim,EV_FL_health))
{
emit_sound(victim, CHAN_AUTO, death_sound[random_num(0, sizeof death_sound - 1)], 1.0, ATTN_NORM, 0, PITCH_NORM)
switch(entity_get_int(victim, EV_INT_team))
{
case 1:create_bott()
case 2:create_botct()
}
}
}
After killing entity I have 4 bots instead of 1
2 calls of forward multiply 2 entities = 4
If I have 4 bots-entities. killing just ONE makes over 8 new bots....
I need to filter just one ent being damaged to prevent multiple fwd calls
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc