Пример #1
0
//
// A_PigChase
//
void A_PigChase(Mobj *actor)
{
   if(P_UpdateMorphedMonster(actor, 3))
      return;

   A_Chase(actor);
}
Пример #2
0
//
// A_PigLook
//
void A_PigLook(Mobj *actor)
{
   if(P_UpdateMorphedMonster(actor, 10))
      return;

   A_Look(actor);
}
Пример #3
0
void AMorphedMonster::Tick ()
{
	if (!P_UpdateMorphedMonster (this))
	{
		Super::Tick ();
	}
}
Пример #4
0
void A_PigChase (AActor *actor)
{
    if (P_UpdateMorphedMonster (actor, 3))
    {
        return;
    }
    A_Chase(actor);
}
Пример #5
0
void A_PigLook (AActor *actor)
{
    if (P_UpdateMorphedMonster (actor, 10))
    {
        return;
    }
    A_Look (actor);
}
Пример #6
0
void A_PigAttack (AActor *actor)
{
    if (P_UpdateMorphedMonster (actor, 18))
    {
        return;
    }
    if (!actor->target)
    {
        return;
    }
    if (actor->CheckMeleeRange ())
    {
        P_DamageMobj(actor->target, actor, actor, 2+(pr_pigattack()&1), MOD_HIT);
        S_Sound(actor, CHAN_WEAPON, "PigAttack", 1, ATTN_NORM);
    }
}
Пример #7
0
//
// A_PigAttack
//
void A_PigAttack(Mobj *actor)
{
   if(P_UpdateMorphedMonster(actor, 18))
      return;

   if(!actor->target)
      return;

   /*
   HEXEN_TODO
   if(P_CheckMeleeRange(actor))
   {
      P_DamageMobj(actor->target, actor, actor, 2+(P_Random()&1));
      S_StartSound(actor, SFX_PIG_ATTACK);
   }
   */
}