Replicate Spawn Cubes?

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
User avatar
BlazingPhoenix
Posts: 488
Joined: Sun Aug 28, 2005 5:11
Contact:

Replicate Spawn Cubes?

Post 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?)
User avatar
Phobus
Posts: 227
Joined: Sat Sep 03, 2005 11:48
Location: Orpington, Kent, England
Contact:

Post by Phobus »

Yes, and if you can't work it out yourself you really need some help ;)
User avatar
TheDarkArchon
Posts: 1000
Joined: Wed Jul 06, 2005 11:58
Location: What's that fucking smell
Contact:

Post 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.
User avatar
BlazingPhoenix
Posts: 488
Joined: Sun Aug 28, 2005 5:11
Contact:

Post by BlazingPhoenix »

*Goes ahead with a Spawn Cube spawning Heretic and MRW monsters* :P
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post 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.
User avatar
Tormentor667
Stronghold Team
Posts: 3555
Joined: Sun Nov 13, 2005 23:15
Location: Germany
Contact:

Post 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?
User avatar
TheDarkArchon
Posts: 1000
Joined: Wed Jul 06, 2005 11:58
Location: What's that fucking smell
Contact:

Post by TheDarkArchon »

Easy. You'll break DeHackEd patches.
User avatar
Phobus
Posts: 227
Joined: Sat Sep 03, 2005 11:48
Location: Orpington, Kent, England
Contact:

Post 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
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

You can't do it without this code pointer. It's the only means to get the cube to its destination.
User avatar
BlazingPhoenix
Posts: 488
Joined: Sun Aug 28, 2005 5:11
Contact:

Post by BlazingPhoenix »

Why not just change the Death Frame? *hides*
User avatar
TheDarkArchon
Posts: 1000
Joined: Wed Jul 06, 2005 11:58
Location: What's that fucking smell
Contact:

Post by TheDarkArchon »

Because it won't work.
User avatar
BlazingPhoenix
Posts: 488
Joined: Sun Aug 28, 2005 5:11
Contact:

Post 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?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Of course not.
Locked

Return to “GZDoom”