by Fishytza » Sat Aug 08, 2015 4:24 pm
There have been situations in the past where I wanted the calling actor to set whatever it spawns as its target, master or tracer. Sometimes even spawning two actors, one being a minion (SXF_SETMASTER), another a spot to teleport back to.
Now, of course the workaround for that is to have the spawned actor do a A_TransferPointer call, and while that's all well and good, it becomes tedious after a while.
Basically, having the caller have a direct reference to what it spawns with one A_SpawnItemEx call would be sweet.
So, hopefully there's room for three more flags?
SXF_SPAWNTARGET:
The spawned actor becomes the calling actor's target. (If the spawn fails, then don't touch the caller's target pointer.)
SXF_SPAWNMASTER:
The spawned actor becomes the calling actor's master. (If the spawn fails, then don't touch the caller's master pointer.)
SXF_SPAWNTRACER:
The spawned actor becomes the calling actor's tracer. (If the spawn fails, then don't touch the caller's tracer pointer.)
There have been situations in the past where I wanted the calling actor to set whatever it spawns as its target, master or tracer. Sometimes even spawning two actors, one being a minion (SXF_SETMASTER), another a spot to teleport back to.
Now, of course the workaround for that is to have the spawned actor do a A_TransferPointer call, and while that's all well and good, it becomes tedious after a while.
Basically, having the caller have a direct reference to what it spawns with one A_SpawnItemEx call would be sweet.
So, hopefully there's room for three more flags?
[b][u]SXF_SPAWNTARGET[/u][/b]:
The spawned actor becomes the calling actor's target. (If the spawn fails, then don't touch the caller's target pointer.)
[b][u]SXF_SPAWNMASTER[/u][/b]:
The spawned actor becomes the calling actor's master. (If the spawn fails, then don't touch the caller's master pointer.)
[b][u]SXF_SPAWNTRACER[/u][/b]:
The spawned actor becomes the calling actor's tracer. (If the spawn fails, then don't touch the caller's tracer pointer.)