Dr.G
04-30-2009, 08:41 PM
i just tested this:
////////////////////////////////////////////////////////////////////////////////////////////////////
// Gets or Sets the fuse on a grenade entity
// Only use the set param (value of 1 or 0) to set this offset; ignore it to "get"
// the current value
stock Float:dod_fuse( grenindex, Float:set = -1.0 )
{
new Float:gametime = get_gametime()
if( set > -1.0 ) set_pev( grenindex, pev_dmgtime, gametime + set )
new Float:current
pev( grenindex, pev_dmgtime, current )
return current - gametime
}
but it didnt do jack. how to control the fuse then?
////////////////////////////////////////////////////////////////////////////////////////////////////
// Gets or Sets the fuse on a grenade entity
// Only use the set param (value of 1 or 0) to set this offset; ignore it to "get"
// the current value
stock Float:dod_fuse( grenindex, Float:set = -1.0 )
{
new Float:gametime = get_gametime()
if( set > -1.0 ) set_pev( grenindex, pev_dmgtime, gametime + set )
new Float:current
pev( grenindex, pev_dmgtime, current )
return current - gametime
}
but it didnt do jack. how to control the fuse then?