This commit is contained in:
parent
b9ad89d6a0
commit
d3b7e5b701
@ -143,3 +143,24 @@ void CNpcGaryFriend::setupWaypoints( sThingActor *ThisActor )
|
|||||||
m_triggerPos.vy = newYPos;
|
m_triggerPos.vy = newYPos;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
void CNpcGaryFriend::render()
|
||||||
|
{
|
||||||
|
CNpcThing::render();
|
||||||
|
|
||||||
|
// Render
|
||||||
|
|
||||||
|
if (canRender())
|
||||||
|
{
|
||||||
|
DVECTOR &renderPos=getRenderPos();
|
||||||
|
|
||||||
|
m_actorGfx->Render(renderPos,m_animNo,(m_frame>>8),m_reversed);
|
||||||
|
|
||||||
|
sBBox boundingBox = m_actorGfx->GetBBox();
|
||||||
|
boundingBox.YMax = 0;
|
||||||
|
setCollisionSize( ( boundingBox.XMax - boundingBox.XMin ), ( boundingBox.YMax - boundingBox.YMin ) );
|
||||||
|
setCollisionCentreOffset( ( boundingBox.XMax + boundingBox.XMin ) >> 1, ( boundingBox.YMax + boundingBox.YMin ) >> 1 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -26,6 +26,7 @@ public:
|
|||||||
virtual void setupWaypoints( sThingActor *ThisActor );
|
virtual void setupWaypoints( sThingActor *ThisActor );
|
||||||
DVECTOR const &getTriggerPos() {return( m_triggerPos );}
|
DVECTOR const &getTriggerPos() {return( m_triggerPos );}
|
||||||
void start() {m_started = true;}
|
void start() {m_started = true;}
|
||||||
|
virtual void render();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
DVECTOR m_triggerPos;
|
DVECTOR m_triggerPos;
|
||||||
|
Loading…
Reference in New Issue
Block a user