Jump to content
  • 0

[MBF21] A_MonsterProjectile 'hoffset' oddity?


SavebearingBoss

Question

Using "A_MonsterProjectile(PlasmaBall, 0.0, 0.0, 10.0, 0.0)" should make the monster fire a plasma ball from the side but the projectile spawns in front of it instead. Is that intended behavior? If so, is there a way to get a proper left/right offset?

Share this post


Link to post

7 answers to this question

Recommended Posts

  • 1

It should spawn to the side (I never learned left or right) though 10 isn't a lot of distance so it might not be noticable. MonsterProjectile doesn't have forward offset at all.

 

5 hours ago, prfunky said:

 

Never heard of "A_MonsterProjectile" before.

Maybe you mean to use A_SpawnProjectile? 

You are probably thinking of DECORATE or zScript instead of MBF21.

Share this post


Link to post
  • 1
9 hours ago, hobomaster22 said:

It's because the values are in fixed point. You have to multiply the value you want by 65536. So the 'correct' value for 10 would be 655360. Passing 10 would make the offset 0.000152587890625 to the left.

From the context, I'm assuming Decohack utility is used, so it's not really the case.

Like I said before, 10 units isn't very much, it might be a good idea to have 2 projectiles one with positive and one with negative effect fire simultaneously, see if they fly side by side.

Share this post


Link to post
  • 0
8 hours ago, SavebearingBoss said:

Using "A_MonsterProjectile(PlasmaBall, 0.0, 0.0, 10.0, 0.0)" should make the monster fire a plasma ball from the side but the projectile spawns in front of it instead. Is that intended behavior? If so, is there a way to get a proper left/right offset?

 

Never heard of "A_MonsterProjectile" before.

Maybe you mean to use A_SpawnProjectile?

Share this post


Link to post
  • 0

It's because the values are in fixed point. You have to multiply the value you want by 65536. So the 'correct' value for 10 would be 655360. Passing 10 would make the offset 0.000152587890625 to the left.

Share this post


Link to post
  • 0

I downloaded DSDA-Doom and tested my wad there, and it works as intended - spawning two projectiles (one with positive offset, one w/ negative), both appear side-by-side rather than one in front of the other, so I guess GZDoom's implementation of A_MonsterProjectile is bugged as of version 4.11.3.

Share this post


Link to post
  • 0
12 hours ago, Xaser said:

If there's something broken in GZDoom, it's best to leave a bug report so it gets fixed.

I've tried to post but I just get "The solution you provided was incorrect." I've tried disabling uBlock Origin, to no avail.
edit: figured it out - needed to whitelist the site in firefox

Edited by SavebearingBoss

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...