- Added an Active and Inactive state for monsters.
- Made the speed a parameter to A_RaiseMobj and A_SinkMobj and deleted GetRaiseSpeed and GetSinkSpeed. - Added some remaining DECORATE conversions for Hexen by Karate Chris. SVN r1144 (trunk)
This commit is contained in:
parent
9ad93639c5
commit
5ea4b37373
22 changed files with 853 additions and 1261 deletions
|
|
@ -2330,16 +2330,6 @@ void AActor::Howl ()
|
|||
}
|
||||
}
|
||||
|
||||
fixed_t AActor::GetSinkSpeed ()
|
||||
{
|
||||
return FRACUNIT;
|
||||
}
|
||||
|
||||
fixed_t AActor::GetRaiseSpeed ()
|
||||
{
|
||||
return 2*FRACUNIT;
|
||||
}
|
||||
|
||||
void AActor::HitFloor ()
|
||||
{
|
||||
}
|
||||
|
|
@ -3370,7 +3360,15 @@ void AActor::Activate (AActor *activator)
|
|||
if (flags2 & MF2_DORMANT)
|
||||
{
|
||||
flags2 &= ~MF2_DORMANT;
|
||||
tics = 1;
|
||||
FState *state = FindState("Active");
|
||||
if (state != NULL)
|
||||
{
|
||||
SetState(state);
|
||||
}
|
||||
else
|
||||
{
|
||||
tics = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3382,7 +3380,15 @@ void AActor::Deactivate (AActor *activator)
|
|||
if (!(flags2 & MF2_DORMANT))
|
||||
{
|
||||
flags2 |= MF2_DORMANT;
|
||||
tics = -1;
|
||||
FState *state = FindState("Inactive");
|
||||
if (state != NULL)
|
||||
{
|
||||
SetState(state);
|
||||
}
|
||||
else
|
||||
{
|
||||
tics = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue