Normalny kod wyglada tak:
public add_bonus_darksteel(attacker,id,damage)
{
if (player_b_darksteel[attacker] > 0)
{
if (UTIL_In_FOV(attacker,id) && !UTIL_In_FOV(id,attacker))
{
[size="2"]new dam = floatround[/size] (15+player_strength[id]*2*player_b_darksteel[id]/10.0)
Effect_Bleed(id,248)
change_health(id,-dam,attacker,"world")
}
}
}A ja zrobilem tak i nie wiem czy zadziala:
public add_bonus_darksteel(attacker,id,damage)
{
if (player_b_darksteel[attacker] > 0)
{
if (UTIL_In_FOV(attacker,id) && !UTIL_In_FOV(id,attacker))
{
[size="2"] [size="2"]new dam = 50[/size][/size]
Effect_Bleed(id,248)
change_health(id,-dam,attacker,"world")
}
}
}PS:
Komplikuje sie bez zarzutu ale nie wiem czy dziala;)
Z gory thx...


Dodatki SourceMod



Temat jest zamknięty









