- fixed: The charge attack of Heretic's imp is not precisely the same
as A_SkullAttack with a different speed so A_ImpMsAttack has been reinstated. SVN r2003 (trunk)
This commit is contained in:
parent
787f00abf9
commit
53a6ffee15
6 changed files with 28 additions and 7 deletions
|
|
@ -19,7 +19,6 @@
|
|||
// SkullAttack
|
||||
// Fly at the player like a missile.
|
||||
//
|
||||
#define SKULLSPEED (20*FRACUNIT)
|
||||
|
||||
void A_SkullAttack(AActor *self, fixed_t speed)
|
||||
{
|
||||
|
|
@ -55,8 +54,6 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SkullAttack)
|
|||
A_SkullAttack(self, n);
|
||||
}
|
||||
|
||||
|
||||
|
||||
DEFINE_ACTION_FUNCTION(AActor, A_BetaSkullAttack)
|
||||
{
|
||||
int damage;
|
||||
|
|
|
|||
|
|
@ -22,9 +22,6 @@ static const PClass *GetSpawnType(DECLARE_PARAMINFO)
|
|||
}
|
||||
|
||||
|
||||
#define SKULLSPEED (20*FRACUNIT)
|
||||
void A_SkullAttack(AActor *self, fixed_t speed);
|
||||
|
||||
//
|
||||
// A_PainShootSkull
|
||||
// Spawn a lost soul and launch it at the target
|
||||
|
|
|
|||
|
|
@ -9,8 +9,26 @@
|
|||
#include "thingdef/thingdef.h"
|
||||
*/
|
||||
|
||||
static FRandom pr_impmsatk ("ImpMsAttack");
|
||||
static FRandom pr_imp ("ImpExplode");
|
||||
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
// PROC A_ImpMsAttack
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
DEFINE_ACTION_FUNCTION(AActor, A_ImpMsAttack)
|
||||
{
|
||||
if (!self->target || pr_impmsatk() > 64)
|
||||
{
|
||||
self->SetState (self->SeeState);
|
||||
return;
|
||||
}
|
||||
A_SkullAttack(self, 12 * FRACUNIT);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
// PROC A_ImpExplode
|
||||
|
|
|
|||
|
|
@ -76,4 +76,7 @@ bool CheckBossDeath (AActor *);
|
|||
int P_Massacre ();
|
||||
bool P_CheckMissileRange (AActor *actor);
|
||||
|
||||
#define SKULLSPEED (20*FRACUNIT)
|
||||
void A_SkullAttack(AActor *self, fixed_t speed);
|
||||
|
||||
#endif //__P_ENEMY_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue