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

Create func_breakable with Flesh Material


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 15:04.


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