Wed Oct 27, 2021 3:32 pm
Wed Oct 27, 2021 3:51 pm
Thu Oct 28, 2021 2:23 pm
Fri Nov 05, 2021 5:02 am
Fri Nov 05, 2021 1:55 pm
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.
Tue Nov 09, 2021 5:26 am
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!)
Tue Nov 09, 2021 4:45 pm