Thread: SpawnProtection
View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-16-2010 , 16:15   Re: SpawnProtection
Reply With Quote #10

Quote:
Originally Posted by xPaw View Post
It won't block players die from non-players, for example trigger_hurt.
LIES

Code:
// When touched, a hurt trigger does DMG points of damage each half-second
void CBaseTrigger :: HurtTouch ( CBaseEntity *pOther )
{
	float fldmg;

	if ( !pOther->pev->takedamage )
		return;

About code, why do you check TR_iHitgroup ??

Major error is that you enable/disable TraceAttack forward when player spawn / in task, but the forward is not player index specific.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 04-17-2010 at 02:56.
ConnorMcLeod is offline