06239c8336
- Attack() is now called from cAggressive instead of cMonster * Monsters can no longer attack through walls * Should fix last remnants of player damage after teleporting (that both STR and bearbin contributed fixes to :P)
30 lines
499 B
C++
30 lines
499 B
C++
|
|
#pragma once
|
|
|
|
#include "Monster.h"
|
|
|
|
|
|
|
|
|
|
|
|
class cAggressiveMonster :
|
|
public cMonster
|
|
{
|
|
typedef cMonster super;
|
|
|
|
public:
|
|
|
|
cAggressiveMonster(const AString & a_ConfigName, eType a_MobType, const AString & a_SoundHurt, const AString & a_SoundDeath, double a_Width, double a_Height);
|
|
|
|
virtual void Tick (float a_Dt, cChunk & a_Chunk) override;
|
|
virtual void InStateChasing(float a_Dt) override;
|
|
|
|
virtual void EventSeePlayer(cEntity *) override;
|
|
virtual void Attack(float a_Dt);
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|