This commit is contained in:
parent
14289f447b
commit
37852c12a2
7 changed files with 84 additions and 11 deletions
|
@ -31,6 +31,19 @@
|
|||
void CNpcEnemy::processCloseEyeballAttack( int _frames )
|
||||
{
|
||||
if ( Next )
|
||||
{
|
||||
CProjectile *projectile;
|
||||
|
||||
projectile = (CProjectile *) Next;
|
||||
|
||||
if ( projectile->getMovementType() == CProjectile::PROJECTILE_FIXED )
|
||||
{
|
||||
projectile->setMovementType( CProjectile::PROJECTILE_USER_SEEK );
|
||||
projectile->setState( CProjectile::PROJECTILE_ATTACK );
|
||||
}
|
||||
}
|
||||
|
||||
/*if ( Next )
|
||||
{
|
||||
// already have child, ignore
|
||||
}
|
||||
|
@ -40,8 +53,8 @@ void CNpcEnemy::processCloseEyeballAttack( int _frames )
|
|||
|
||||
CProjectile *projectile;
|
||||
projectile = new ( "test projectile" ) CProjectile;
|
||||
projectile->init( Pos, m_fireHeading, CProjectile::PROJECTILE_USER_SEEK, CProjectile::PROJECTILE_INFINITE_LIFE );
|
||||
projectile->init( Pos, m_fireHeading, CProjectile::PROJECTILE_FIXED, CProjectile::PROJECTILE_INFINITE_LIFE );
|
||||
|
||||
addChild( projectile );
|
||||
}
|
||||
}*/
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue