Drop item Sfx

10/17/2018 18:01 Olapelasd#1
In what part of source can i add a sfx to a specific droped item , if is on ground ?
10/17/2018 20:40 Professor Linebeck#2
Item.cpp
CItem::Render

Example:
Code:
if (pItemProp->dwID == II_GEN_BOX_GOLDBOX)//Custom Item
{
	if (xRandom(50) == 1)
	{
	CreateSfx(pd3dDevice, XI_GEN_FLOOR_GOLD, GetPos());//Custom SFX
	}
}
else
{
	if( xRandom( 50 ) == 1 )
	{
	CreateSfx(pd3dDevice, XI_GEN_ITEM_SHINE01, GetPos());//Basic SFX
	}
}