TheNoob_Gamer Posted September 26, 2019 Title, since I am a bit confused about the things' flags board. 0 Quote Share this post Link to post
0 Gez Posted September 26, 2019 By destroyable, you mean you want to be able to shoot them? The main issue is that they're excluded from passive collision checks. Projectiles have the MF_NOBLOCKMAP flag which prevents them from being written into the blockmap, so when something else moves and does collision checks, looking for other things present in the block, it won't find the projectile. That means that projectiles only collide when it's their turn to move and they're the ones looking for stuff they can collide with, so a projectile cannot collide with another projectile. If you remove that flag, and instead add the MF_SHOOTABLE flag, then it should become possible to hit projectiles with a hitscan or another projectile. But it's going to have other side effects. IIRC, your projectile will be able to do weird things like preventing a monster from moving or teleporting, getting hurt by explosions, pushing a closing door back up, or being moved up by a rising lift. Most of these side-effects should be rare enough not to be too much of a problem, but it's something to keep in mind. 2 Quote Share this post Link to post
Question
TheNoob_Gamer
Title, since I am a bit confused about the things' flags board.
Share this post
Link to post
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.