A co do 3 to mi się wydaje, że tak (lecz głowy nie dam):
Znajdź i usuń poniższe linijki:
register_touch("throwing_knife", "func_breakable", "touchbreakable")
register_touch("func_breakable", "throwing_knife", "touchbreakable")
register_touch("xbow_arrow", "func_breakable", "touchbreakable")
register_touch("func_breakable", "xbow_arrow", "touchbreakable")
public touchbreakable(ent1, ent2)
{
new name[32],breakable,ent
entity_get_string(ent1,EV_SZ_classname,name,31)
if(equali(name,"func_breakable"))
{
breakable=ent1
ent=ent2
}
else
{
breakable=ent2
ent=ent1
}
new Float: b_hp = entity_get_float(breakable,EV_FL_health)
if(b_hp>80) entity_set_float(breakable,EV_FL_health,b_hp-50.0)
else dllfunc(DLLFunc_Use,breakable,ent)
entity_get_string(ent,EV_SZ_classname,name,31)
if(equali(name,"throwing_knife"))
{
emit_sound(ent, CHAN_ITEM, "weapons/knife_hitwall1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
}
else remove_entity(ent)
}