Projectile Actor
V V V
Spoiler:
Moderator: GZDoom Developers
Spoiler:
That's not true. Projectiles can very much be made shootable: the attached PK3 does exactly that, without any "hitbox" hacks or modifying things from CanCollideWith. (Modifying pointers is still breaking the function's contract!)Jekyll Grim Payne wrote:Projectiles can't be shootable. Spawning a hitbox is the only way to imitate that.
Moreover, it's actually better because most of the time it's a good idea to make a hitbox *larger* than the projectile physically is.
Here's a hitbox I use to make grenades shootable in Painslayer: https://github.com/jekyllgrim/Painslaye ... un.zs#L461
Note that I don't destroy anything in CanCollideWith because that would be very bad; instead I queue it for destruction by modifying pointers.
I remember this not working in a few versions; perhaps it's been brought back.phantombeta wrote: That's not true. Projectiles can very much be made shootable: the attached PK3 does exactly that, without any "hitbox" hacks or modifying things from CanCollideWith. (Modifying pointers is still breaking the function's contract!)