Raised This Month: $ Target: $400
 0% 

func_breakable animation


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
grankee
Member
Join Date: Jun 2008
Old 05-16-2010 , 08:22   func_breakable animation
Reply With Quote #1

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
}
grankee is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode