Discuss all aspects related to modding Zandronum here.
5 posts • Page 1 of 1
Currently SpawnProjectile is slightly broken. When a player/monster uses it and is standing in a liquid it doesn't work. The possible work arounds I came up with it to have the player Spawn and item that spawns the item using A_SpawnProjectile, have the player spawn an item that calls a script that uses SpawnProjectile to spawn the item, or just use Spawn to spawn the item. The problem with Method A is I want to be able to use a generic item to spawn the item by sending a the name of the item as a string from ACS to it. I don't think this is possible. The problem with Method B is, it works but I can't get the angles to match up (I want the item to always spawn in front of the player). ¿Anyone know how to either do this or another method, that will allow me to anonymously spawn an item with some one being able to see what is being spawned?
Maybe A_SpawnItemEx would do the trick.
"For the world is hollow, and I have touched the sky."
You can work around this by moving the source actor up by +16.0, spawning the projectile, then immediately lowering them by 16.0. This works offline and online.
That worked. ¿What about keeping it from failing when a player is too close to wall, front and back?
Yeah this function is quite broken, using it in a NET game when the player is too close to a wall will cause it to spawn a ghost item, that cannot be picked up. Best to avoid it until it gets fixed.