/*
================
idBarrel::Think
================
*/
void idBarrel::Think( void ) {
	if( thinkFlags & TH_THINK ) {
		if( !FollowInitialSplinePath() ) {
			BecomeInactive( TH_THINK );
		}
	}
	BarrelThink();
}
Exemplo n.º 2
0
/*
================
idMoveable::Think
================
*/
void idMoveable::Think( void ) {
	if ( thinkFlags & TH_THINK ) {
		if ( !FollowInitialSplinePath() ) {
			BecomeInactive( TH_THINK );
		}
	}
	idEntity::Think();
}
/*
================
idMoveable::Think
================
*/
void idMoveable::Think( void ) {
	if( thinkFlags & TH_THINK ) {
		if( !FollowInitialSplinePath() && !isPushed && !m_LODHandle ) {
			BecomeInactive( TH_THINK );
		}
	}
	// will also handle LOD thinking
	idEntity::Think();
	UpdateSlidingSounds();
}
Exemplo n.º 4
0
/*
================
idMoveable::Think
================
*/
void idMoveable::Think( void ) {
	if ( thinkFlags & TH_THINK ) {
		// Move to the next stage?
		UpdateStage ( );

		if ( !FollowInitialSplinePath() && stage == -1 ) {
			BecomeInactive( TH_THINK );
		}
	}
// RAVEN BEGIN
// abahr: changed parent scope
	idDamagable::Think();
}
Exemplo n.º 5
0
/*
================
idBarrel::Think
================
*/
void idBarrel::Think( void ) {
	if ( thinkFlags & TH_THINK ) {
		if ( !FollowInitialSplinePath() ) {
			BecomeInactive( TH_THINK );
		}
	}

	BarrelThink();

#ifdef _DENTONMOD
	if ( thinkFlags & TH_UPDATEWOUNDPARTICLES )
		UpdateParticles();
#endif
}
Exemplo n.º 6
0
/*
================
idMoveable::Think
================
*/
void idMoveable::Think( void ) {
	if( thinkFlags & TH_THINK ) {
		if( !FollowInitialSplinePath() ) {
			BecomeInactive( TH_THINK );
		}
	}
	// grimm -->
	if( smokeFly && smokeFlyTime ) {
		if( !gameLocal.smokeParticles->EmitSmoke( smokeFly, smokeFlyTime, gameLocal.random.CRandomFloat(), GetPhysics()->GetOrigin(), GetPhysics()->GetAxis() ) ) {
			smokeFlyTime = 0;
		}
	}
	// <-- grimm
	idEntity::Think();
}
Exemplo n.º 7
0
/*
================
idMoveable::Think
================
*/
void idMoveable::Think( void ) {
	if ( thinkFlags & TH_THINK ) {
		if ( !FollowInitialSplinePath() ) {
			BecomeInactive( TH_THINK );
		}
	}
	idEntity::Think();

	//ivan start - lock the X position 
	//if ( thinkFlags & TH_PHYSICS ) {			
		if( isXlocked ){
			physicsObj.SetOrigin( idVec3( lockedXpos, physicsObj.GetOrigin().y, physicsObj.GetOrigin().z ) );
		}
	//}
	//ivan end
}