This commit is contained in:
parent
2edd826795
commit
ddc45dbb01
2 changed files with 16 additions and 0 deletions
|
@ -189,3 +189,18 @@ void CNpcGaryFriend::startRight()
|
||||||
m_extension = EXTEND_RIGHT;
|
m_extension = EXTEND_RIGHT;
|
||||||
m_reversed = false;
|
m_reversed = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
const CRECT *CNpcGaryFriend::getThinkBBox()
|
||||||
|
{
|
||||||
|
CRECT objThinkBox = getCollisionArea();
|
||||||
|
|
||||||
|
sBBox &thinkBBox = CThingManager::getThinkBBox();
|
||||||
|
objThinkBox.x1 = thinkBBox.XMin;
|
||||||
|
objThinkBox.x2 = thinkBBox.XMax;
|
||||||
|
objThinkBox.y1 = thinkBBox.YMin;
|
||||||
|
objThinkBox.y2 = thinkBBox.YMax;
|
||||||
|
|
||||||
|
return &objThinkBox;
|
||||||
|
}
|
||||||
|
|
|
@ -24,6 +24,7 @@ public:
|
||||||
virtual void postInit();
|
virtual void postInit();
|
||||||
virtual void think( int _frames );
|
virtual void think( int _frames );
|
||||||
virtual void setupWaypoints( sThingActor *ThisActor );
|
virtual void setupWaypoints( sThingActor *ThisActor );
|
||||||
|
virtual CRECT const *getThinkBBox();
|
||||||
DVECTOR const &getTriggerPos() {return( m_triggerPos );}
|
DVECTOR const &getTriggerPos() {return( m_triggerPos );}
|
||||||
void start() {m_started = true;}
|
void start() {m_started = true;}
|
||||||
void stop() {m_started = false;}
|
void stop() {m_started = false;}
|
||||||
|
|
Loading…
Add table
Reference in a new issue