- Changed the rocket so that the FX_ROCKET flag is set in the actor
definition and not in BeginPlay. - Changed the special explosion behavior of the rocket to a flag (MF5_DEHEXPLOSION) so that its effects can be used on other actors as well without having to inherit from the rocket. SVN r353 (trunk)
This commit is contained in:
parent
92c3a89255
commit
39d2ef0460
9 changed files with 16 additions and 8 deletions
|
|
@ -706,6 +706,8 @@ IMPLEMENT_ACTOR (ARocket, Doom, -1, 127)
|
|||
PROP_Flags (MF_NOBLOCKMAP|MF_MISSILE|MF_DROPOFF|MF_NOGRAVITY)
|
||||
PROP_Flags2 (MF2_PCROSS|MF2_IMPACT|MF2_NOTELEPORT)
|
||||
PROP_Flags4 (MF4_RANDOMIZE)
|
||||
PROP_Flags5 (MF5_DEHEXPLOSION)
|
||||
PROP_FXFlags (FX_ROCKET)
|
||||
|
||||
PROP_SpawnState (S_ROCKET)
|
||||
PROP_DeathState (S_EXPLODE)
|
||||
|
|
@ -715,12 +717,6 @@ IMPLEMENT_ACTOR (ARocket, Doom, -1, 127)
|
|||
PROP_Obituary("$OB_MPROCKET")
|
||||
END_DEFAULTS
|
||||
|
||||
void ARocket::BeginPlay ()
|
||||
{
|
||||
Super::BeginPlay ();
|
||||
effects |= FX_ROCKET;
|
||||
}
|
||||
|
||||
//
|
||||
// A_FireMissile
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue