Jump to content
  • 0

(Dehacked) Is it possible to make projectiles destroyable in Whacked4?


TheNoob_Gamer

Question

1 answer to this question

Recommended Posts

  • 0

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.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...