First working compilation.
This commit is contained in:
@@ -113,7 +113,7 @@ void CMGib :: SpawnStickyGibs( entvars_t *pevVictim, Vector vecOrigin, int cGibs
|
||||
pGib->pev->movetype = MOVETYPE_TOSS;
|
||||
pGib->pev->solid = SOLID_BBOX;
|
||||
UTIL_SetSize ( pGib->pev, Vector ( 0, 0 ,0 ), Vector ( 0, 0, 0 ) );
|
||||
pGib->SetTouch ( StickyGibTouch );
|
||||
pGib->SetTouch ( &CMGib::StickyGibTouch );
|
||||
pGib->SetThink (NULL);
|
||||
}
|
||||
pGib->LimitVelocity();
|
||||
@@ -327,7 +327,7 @@ void CMBaseMonster :: GibMonster( void )
|
||||
if ( gibbed )
|
||||
{
|
||||
// don't remove players!
|
||||
SetThink ( SUB_Remove );
|
||||
SetThink ( &CMBaseMonster::SUB_Remove );
|
||||
pev->nextthink = gpGlobals->time;
|
||||
}
|
||||
else
|
||||
@@ -655,7 +655,7 @@ void CMBaseEntity :: SUB_StartFadeOut ( void )
|
||||
pev->avelocity = g_vecZero;
|
||||
|
||||
pev->nextthink = gpGlobals->time + 0.1;
|
||||
SetThink ( SUB_FadeOut );
|
||||
SetThink ( &CMBaseEntity::SUB_FadeOut );
|
||||
}
|
||||
|
||||
void CMBaseEntity :: SUB_FadeOut ( void )
|
||||
@@ -669,7 +669,7 @@ void CMBaseEntity :: SUB_FadeOut ( void )
|
||||
{
|
||||
pev->renderamt = 0;
|
||||
pev->nextthink = gpGlobals->time + 0.2;
|
||||
SetThink ( SUB_Remove );
|
||||
SetThink ( &CMBaseEntity::SUB_Remove );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -689,7 +689,7 @@ void CMGib :: WaitTillLand ( void )
|
||||
|
||||
if ( pev->velocity == g_vecZero )
|
||||
{
|
||||
SetThink (SUB_StartFadeOut);
|
||||
SetThink ( &CMGib::SUB_StartFadeOut );
|
||||
pev->nextthink = gpGlobals->time + m_lifeTime;
|
||||
}
|
||||
else
|
||||
@@ -740,7 +740,7 @@ void CMGib :: StickyGibTouch ( edict_t *pOther )
|
||||
Vector vecSpot;
|
||||
TraceResult tr;
|
||||
|
||||
SetThink ( SUB_Remove );
|
||||
SetThink ( &CMGib::SUB_Remove );
|
||||
pev->nextthink = gpGlobals->time + 5;
|
||||
|
||||
if (!FStrEq(STRING(pOther->v.classname), "worldspawn"))
|
||||
@@ -781,8 +781,8 @@ void CMGib :: Spawn( const char *szGibModel )
|
||||
|
||||
pev->nextthink = gpGlobals->time + 4;
|
||||
m_lifeTime = 10;
|
||||
SetThink ( WaitTillLand );
|
||||
SetTouch ( BounceGibTouch );
|
||||
SetThink ( &CMGib::WaitTillLand );
|
||||
SetTouch ( &CMGib::BounceGibTouch );
|
||||
|
||||
m_material = matNone;
|
||||
m_cBloodDecals = 5;// how many blood decals this gib can place (1 per bounce until none remain).
|
||||
|
||||
Reference in New Issue
Block a user