Page 1 of 1

Replicate Spawn Cubes?

Posted: Mon Jan 23, 2006 23:11
by BlazingPhoenix
Is it possible to make a projectile that inherits from the Spawn Cube but make it so it spawns different monsters instead?(like Heretic monsters for example?)

Posted: Tue Jan 24, 2006 17:40
by Phobus
Yes, and if you can't work it out yourself you really need some help ;)

Posted: Tue Jan 24, 2006 18:27
by TheDarkArchon
You can? That's news to me. You can make a new actor and use A_SpawnItem but not in herit and change directly.

Posted: Wed Jan 25, 2006 2:35
by BlazingPhoenix
*Goes ahead with a Spawn Cube spawning Heretic and MRW monsters* :P

Posted: Wed Jan 25, 2006 11:16
by Graf Zahl
You can't replicate the spawn cube. The reason for this is that A_SpawnFly is both responsible for checking the destination spot and spawning the monsters. If these were different code pointers you could do something about it - but they aren't.

Posted: Wed Jan 25, 2006 15:38
by Tormentor667
Graf Zahl wrote:You can't replicate the spawn cube. The reason for this is that A_SpawnFly is both responsible for checking the destination spot and spawning the monsters. If these were different code pointers you could do something about it - but they aren't.
Why not just splitting this hardcoded thing up into two functions?

Posted: Wed Jan 25, 2006 15:57
by TheDarkArchon
Easy. You'll break DeHackEd patches.

Posted: Wed Jan 25, 2006 17:58
by Phobus
Well, I wouldn't inherit the code if I were to do it myself. I think I just read the title when I replied. But all of you should know what to do to make something that replicates the behaviour for any monster, especially if I've got an idea I think would work :P

Posted: Wed Jan 25, 2006 18:44
by Graf Zahl
You can't do it without this code pointer. It's the only means to get the cube to its destination.

Posted: Wed Jan 25, 2006 19:52
by BlazingPhoenix
Why not just change the Death Frame? *hides*

Posted: Wed Jan 25, 2006 19:59
by TheDarkArchon
Because it won't work.

Posted: Wed Jan 25, 2006 23:23
by BlazingPhoenix
So lemme get this straight:
1. you can make a custom actor using the actions that the spawn cube uses
2. you can't inherit directly from the Spawn Cube

Am I right?

Posted: Wed Jan 25, 2006 23:26
by Graf Zahl
Of course not.