View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-06-2010 , 12:08   Re: [STOCK] Creating explosions by the engine
Reply With Quote #8

Problem is that damage done is DMG_BLAST, i guess it makes player explode.
You can't alter it with a stock.

Code:
	// do damage
	if ( !( pev->spawnflags & SF_ENVEXPLOSION_NODAMAGE ) )
	{
		RadiusDamage ( pev, pev, m_iMagnitude, CLASS_NONE, DMG_BLAST );
	}
What you have to do is to hook TakeDamage or Killed in your plugin and change damagebit or bGib value, or hook RadiusDamage with orpheu.

Nice stock anyway.

Doesn't engine allow force_use(entity, 0) ? (doesn't matter, just wondered).
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline