- Added a multitude of flags for A_Teleport.
- TF_KEEPVELOCITY: Keep the velocity after teleporting. - TF_KEEPANGLE: Don't use the special spot's angle. - TF_USESPOTZ: Normally, this function - TF_NOSRCFOG: Don't leave fog at the previous location. - TF_NODESTFOG: Don't leave fog at the arriving location. - TF_USEACTORFOG: Use the actor's TeleFogSourceType and TeleFogDestType properties. - TF_NOJUMP: Don't require or cause a jump. In this case, put 0 (or "") in for the jump destination when using CustomInventory items to teleport actors around.
This commit is contained in:
parent
7bc2e5c67e
commit
86b0065c0b
3 changed files with 72 additions and 27 deletions
|
|
@ -77,7 +77,7 @@ void ATeleportFog::PostBeginPlay ()
|
|||
void P_SpawnTeleportFog(AActor *mobj, fixed_t x, fixed_t y, fixed_t z, bool beforeTele, bool setTarget)
|
||||
{
|
||||
AActor *mo;
|
||||
if ((beforeTele ? mobj->TeleFogSourceType : mobj->TeleFogDestType) == NULL) //If the actor doesn't have one, initialize the original.
|
||||
if ((beforeTele ? mobj->TeleFogSourceType : mobj->TeleFogDestType) == NULL)
|
||||
{
|
||||
//Do nothing.
|
||||
mo = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue