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
}
}