Ok, I'm working on a weapons/monsters mod which has randomised monster and weapon spawners. The problem is that it moves the monster about 32 or so units from their original position and always makes them face east (as well as being undeaf, but I guess that'd be harder to implement), or if it's too close to a wall, it won't spawn at all. Is there a way to make the monster spawn exactly where the location of the spawner is (as well as making it face the right direction), or is that not possible to do? Here's an example of what I mean:
http://deathz0r.unidoom.org/junk/omgwpns.zip
Try it on any map.
Minor improvement to SpawnItem (or similar action)
Moderator: GZDoom Developers
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49073
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
A_SpawnItem has a distance parameter. Set that to 1. 0 is just a placeholder so that the spawned item doesn't intersect with the spawner.
The incorrect angle is a bug which I hace fixed right now.
For deaf monsters you have to create your own copy of the monster in DECORATE and set the +AMBUSH flag.
The incorrect angle is a bug which I hace fixed right now.
For deaf monsters you have to create your own copy of the monster in DECORATE and set the +AMBUSH flag.
- deathz0r
- Posts: 353
- Joined: Tue Jul 15, 2003 4:09 pm
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
- Location: Land with them kangaroo
- Contact:
Ahh, I couldn't find any documentation on A_SpawnItem. Thanks a lot!Graf Zahl wrote:A_SpawnItem has a distance parameter. Set that to 1. 0 is just a placeholder so that the spawned item doesn't intersect with the spawner.
The incorrect angle is a bug which I hace fixed right now.
For deaf monsters you have to create your own copy of the monster in DECORATE and set the +AMBUSH flag.
As for the deaf part, I was hoping that it'd be able to inherit that feature from the spawner itself (if the map gave it the deaf ability) to make the spawner remain faithful to the original map.
- The Ultimate DooMer
- Posts: 2109
- Joined: Tue Jul 15, 2003 5:29 pm
- Location: Industrial Zone