Raised This Month: $ Target: $400
 0% 

func_breakable animation


Post New Thread Reply   
 
Thread Tools Display Modes
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
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 05-16-2010 , 08:31   Re: func_breakable animation
Reply With Quote #2

I think you need to specify the type of the entity. ( (material) 0 .

Something like this:

PHP Code:
DispatchKeyValueiEntity"material""0" ); 

Last edited by KadiR; 05-16-2010 at 08:34.
KadiR is offline
grankee
Member
Join Date: Jun 2008
Old 05-16-2010 , 09:17   Re: func_breakable animation
Reply With Quote #3

hmm where I must put this line?
grankee is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 05-16-2010 , 21:10   Re: func_breakable animation
Reply With Quote #4

"Material" must be "glass"?
Mxnn is offline
NiQu
Veteran Member
Join Date: Nov 2009
Old 05-16-2010 , 21:18   Re: func_breakable animation
Reply With Quote #5

Material could be glass or rock or any other material, when i do stuff like this i use VHE to check entity names and materials etc.
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-16-2010 , 21:21   Re: func_breakable animation
Reply With Quote #6

Quote:
Originally Posted by NiQu View Post
Material could be glass or rock
Yes; I, too, am able to break rocks instantaneously with my hands while the majority of mother nature's forces cannot.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
NiQu
Veteran Member
Join Date: Nov 2009
Old 05-16-2010 , 21:24   Re: func_breakable animation
Reply With Quote #7

Hmm, good point wrecked.
However HL1 != Real World.

PHP Code:
if( HL1.Engine == RealWorld )
{
    
client_print(0print_chat"What is going on!?");
    
RealWorld.Shutdown(10.0"WARNING! RealWorld is crashing in 10 seconds!");

__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]

Last edited by NiQu; 05-16-2010 at 21:28.
NiQu is offline
Reply



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