Raised This Month: $90 Target: $400
 22% 

Create func_breakable with Flesh Material


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Celena Luna
Senior Member
Join Date: Aug 2013
Location: Okinawa, Japan
Old 09-12-2018 , 14: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 14:07.
Celena Luna is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 09-13-2018 , 08:42   Re: Create func_breakable with Flesh Material
Reply With Quote #2

pev_origin -> EngFunc_SetOrigin.
__________________
Accepting private $$$ plugins requests.

@Steam: crazy770
@Discord: CrazY.#5317

Aliens vs. Predator Server: 74.91.116.75:27015

Website | Channel | AvP on Discord

CrazY. 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 17:55.


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