This commit is contained in:
parent
775b105bed
commit
66331fd831
2 changed files with 8 additions and 7 deletions
|
@ -130,11 +130,12 @@ void CNpcParasiticWormEnemy::postInit()
|
||||||
|
|
||||||
if ( segCount < initLength )
|
if ( segCount < initLength )
|
||||||
{
|
{
|
||||||
u16 sum = ONE;
|
/*u16 sum = ONE;
|
||||||
u16 start = ONE >> 1;
|
u16 start = ONE >> 1;
|
||||||
u16 end = sum - start;
|
u16 end = sum - start;
|
||||||
|
|
||||||
segScale = start + ( ( end * segCount ) / initLength );
|
segScale = start + ( ( end * segCount ) / initLength );*/
|
||||||
|
segScale = ONE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -295,7 +296,7 @@ void CNpcParasiticWormEnemy::processMovement( int _frames )
|
||||||
DVECTOR sinPos;
|
DVECTOR sinPos;
|
||||||
|
|
||||||
sinPos = newPos->pos;
|
sinPos = newPos->pos;
|
||||||
s32 diff = ( ( ( 5 >> downShift ) * rsin( extension ) ) >> 12 ) >> timeShift;
|
s32 diff = ( ( ( 2 >> downShift ) * rsin( extension ) ) >> 12 ) >> timeShift;
|
||||||
sinPos.vx += ( diff * rcos( headingToTarget + 1024 ) ) >> 12;
|
sinPos.vx += ( diff * rcos( headingToTarget + 1024 ) ) >> 12;
|
||||||
sinPos.vy += ( diff * rsin( headingToTarget + 1024 ) ) >> 12;
|
sinPos.vy += ( diff * rsin( headingToTarget + 1024 ) ) >> 12;
|
||||||
|
|
||||||
|
@ -312,7 +313,7 @@ void CNpcParasiticWormEnemy::processMovement( int _frames )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extension += 1024;
|
extension += 256;
|
||||||
extension &= 4095;
|
extension &= 4095;
|
||||||
|
|
||||||
if ( downShift > 0 )
|
if ( downShift > 0 )
|
||||||
|
@ -504,7 +505,7 @@ void CNpcParasiticWormEnemy::render()
|
||||||
{
|
{
|
||||||
DVECTOR &renderPos=getRenderPos();
|
DVECTOR &renderPos=getRenderPos();
|
||||||
|
|
||||||
SprFrame = m_actorGfx->Render(renderPos,m_animNo,( m_frame >> 8 ),m_reversed);
|
SprFrame = m_actorGfx->Render(renderPos,m_animNo,( m_frame >> 8 ),0);
|
||||||
m_actorGfx->RotateScale( SprFrame, renderPos, m_heading, 4096, 4096 );
|
m_actorGfx->RotateScale( SprFrame, renderPos, m_heading, 4096, 4096 );
|
||||||
|
|
||||||
sBBox boundingBox = m_actorGfx->GetBBox();
|
sBBox boundingBox = m_actorGfx->GetBBox();
|
||||||
|
|
|
@ -63,8 +63,8 @@ protected:
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
NPC_PARASITIC_WORM_SPACING = 4,
|
NPC_PARASITIC_WORM_SPACING = 1,
|
||||||
NPC_PARASITIC_WORM_LENGTH = 10,
|
NPC_PARASITIC_WORM_LENGTH = 30,
|
||||||
};
|
};
|
||||||
|
|
||||||
// position history stuff
|
// position history stuff
|
||||||
|
|
Loading…
Add table
Reference in a new issue