mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-20 18:52:43 +00:00
- function separators
This commit is contained in:
parent
5628590c7c
commit
68608b081b
3 changed files with 117 additions and 0 deletions
|
@ -597,6 +597,12 @@ ACTOR_ACTION_SET MiniSumoActionSet =
|
|||
};
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
int SetupSumo(DSWActor* actor)
|
||||
{
|
||||
ANIMATOR DoActorDecide;
|
||||
|
@ -638,6 +644,12 @@ int SetupSumo(DSWActor* actor)
|
|||
return 0;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
int NullSumo(DSWActor* actor)
|
||||
{
|
||||
if (!(actor->user.Flags & SPR_CLIMBING))
|
||||
|
@ -648,6 +660,12 @@ int NullSumo(DSWActor* actor)
|
|||
return 0;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
int DoSumoMove(DSWActor* actor)
|
||||
{
|
||||
if (actor->user.track >= 0)
|
||||
|
@ -665,6 +683,11 @@ int DoSumoMove(DSWActor* actor)
|
|||
return 0;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
int DoSumoRumble(DSWActor* actor)
|
||||
{
|
||||
|
@ -698,6 +721,12 @@ int InitSumoClap(DSWActor* actor)
|
|||
return 0;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
int DoSumoDeathMelt(DSWActor* actor)
|
||||
{
|
||||
PlaySound(DIGI_SUMOFART, actor, v3df_follow);
|
||||
|
@ -718,6 +747,11 @@ int DoSumoDeathMelt(DSWActor* actor)
|
|||
return 0;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
void BossHealthMeter(void)
|
||||
{
|
||||
|
@ -871,6 +905,11 @@ void BossHealthMeter(void)
|
|||
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
#include "saveable.h"
|
||||
|
|
|
@ -603,6 +603,12 @@ ACTOR_ACTION_SET ZillaActionSet =
|
|||
nullptr
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
int SetupZilla(DSWActor* actor)
|
||||
{
|
||||
ANIMATOR DoActorDecide;
|
||||
|
@ -631,6 +637,12 @@ int SetupZilla(DSWActor* actor)
|
|||
return 0;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
int NullZilla(DSWActor* actor)
|
||||
{
|
||||
getzsofslopeptr(actor->sector(), actor->spr.pos, &actor->user.hiz, &actor->user.loz);
|
||||
|
@ -645,6 +657,12 @@ int NullZilla(DSWActor* actor)
|
|||
return 0;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
int DoZillaMove(DSWActor* actor)
|
||||
{
|
||||
short choose;
|
||||
|
@ -679,6 +697,12 @@ int DoZillaMove(DSWActor* actor)
|
|||
return 0;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
int DoZillaStomp(DSWActor* actor)
|
||||
{
|
||||
PlaySound(DIGI_ZILLASTOMP, actor, v3df_follow);
|
||||
|
@ -686,6 +710,12 @@ int DoZillaStomp(DSWActor* actor)
|
|||
return 0;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
int DoZillaDeathMelt(DSWActor* actor)
|
||||
{
|
||||
if (RandomRange(1000) > 800)
|
||||
|
@ -713,6 +743,12 @@ int DoZillaDeathMelt(DSWActor* actor)
|
|||
return 0;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
#include "saveable.h"
|
||||
|
||||
|
|
|
@ -747,6 +747,12 @@ ACTOR_ACTION_SET ZombieActionSet =
|
|||
nullptr
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
int SetupZombie(DSWActor* actor)
|
||||
{
|
||||
ANIMATOR DoActorDecide;
|
||||
|
@ -769,6 +775,12 @@ int SetupZombie(DSWActor* actor)
|
|||
return 0;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
void SpawnZombie(PLAYER* pp, DSWActor* weaponActor)
|
||||
{
|
||||
auto ownerActor = GetOwner(weaponActor);
|
||||
|
@ -797,6 +809,12 @@ void SpawnZombie(PLAYER* pp, DSWActor* weaponActor)
|
|||
DoActorZrange(actorNew);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
void SpawnZombie2(DSWActor* actor)
|
||||
{
|
||||
auto sectu = actor->sector();
|
||||
|
@ -844,6 +862,12 @@ void SpawnZombie2(DSWActor* actor)
|
|||
DoActorZrange(actorNew);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
int DoZombieMove(DSWActor* actor)
|
||||
{
|
||||
if (actor->user.Counter3++ >= ZOMBIE_TIME_LIMIT)
|
||||
|
@ -895,6 +919,12 @@ int DoZombieMove(DSWActor* actor)
|
|||
return 0;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
int NullZombie(DSWActor* actor)
|
||||
{
|
||||
if (actor->user.Counter3++ >= ZOMBIE_TIME_LIMIT)
|
||||
|
@ -928,6 +958,12 @@ int NullZombie(DSWActor* actor)
|
|||
}
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
int DoZombiePain(DSWActor* actor)
|
||||
{
|
||||
NullZombie(actor);
|
||||
|
@ -938,6 +974,12 @@ int DoZombiePain(DSWActor* actor)
|
|||
return 0;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
#include "saveable.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue