Raised This Month: $12 Target: $400
 3% 

Create func_breakable with Flesh Material


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 09-12-2018 , 13:06   Create func_breakable with Flesh Material
Reply With Quote #1

PHP Code:
public Create_ItemBox(typeFloat:Origin[3])
{
    new 
entent engfunc(EngFunc_CreateNamedEntity,engfunc(EngFunc_AllocString,"func_breakable"))
    if(!
pev_valid(ent)) return

    
set_pev(entpev_classname"item_box")

    
fm_set_kvd(ent"material"3"func_breakable")
    
fm_set_kvd(ent"health"Item_Health[random_num(04)], "func_breakable")
    
fm_spawn(ent))

    
engfunc(EngFunc_SetSize,ent,Float:{-20.0, -20.00.0},Float:{20.0,20.020.0})

    
set_pev(entpev_originOrigin)

    ...


I am trying to create func_breakable with flesh material. I don't know why but when I hit it with knife, it make the glass material sound, not the flesh material sound.
__________________
My plugin:

Last edited by Celena Luna; 09-12-2018 at 13:07.
Celena Luna is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 09-13-2018 , 07:42   Re: Create func_breakable with Flesh Material
Reply With Quote #2

pev_origin -> EngFunc_SetOrigin.
__________________








CrazY. is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 03-03-2019 , 13:00   Re: Create func_breakable with Flesh Material
Reply With Quote #3

Bump....
__________________
My plugin:
Celena Luna is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 03-03-2019 , 14:26   Re: Create func_breakable with Flesh Material
Reply With Quote #4

https://wiki.alliedmods.net/CBreakable_(CS)

Try and play with "m_Material"
__________________
Retired.
Xalus is offline
Reply


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 19:57.


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