Hello.
I need to change this window [IMG]http://img256.**************/img256/5308/csoffice0000z.png[/IMG]
to window like func_breakable.
It way to fake this, but I need to play animation, when I damage glass. Now it just fade away
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
public plugin_init() {
register_plugin("office remake", "0.1","grankee")
//register_clcmd("usun","usun")
RegisterHam(Ham_TakeDamage,"func_wall","br")
usun()
register_event("HLTV","NewRound","a")
register_forward(FM_EmitSound, "fwEmitSound")
}
public NewRound()
{
entity_set_int(200, EV_INT_effects, 0)
entity_set_int(200, EV_INT_solid, 4)
}
public br(Victim)
{
if(Victim==200)
{
engfunc(EngFunc_EmitSound,Victim, 2, "debris/bustglass2.wav", 1.000000, 0.800000, 0, 116)
entity_set_int(Victim, EV_INT_effects, 128)
entity_set_int(Victim, EV_INT_solid, 0)
}
}
public usun()
{
new ent=200
entity_set_float(ent, EV_FL_health, 10000.0)
entity_set_float(ent, EV_FL_takedamage, 1.0)
return 1
}