Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
Sign in to follow this  

DECORATE weapon not using ammo


I'm having a bit of an issue with a weapon i'm workin on for a Hexen mod. I set it up (or so i thought) to consume 3 of a set ammo type, but ingame it completely refuses to consume it. At first I thought I intentionally commented out the Weapon.AmmoUse property for testing purposes and forgot about it, but upon looking at the decorate code i found out that's not the case and it's just broken.

I triple checked the code and it seems fine, so I'm at a bit of a loss as to what I did wrong there. Tested it on GZDoom 3.2.5, 3.3.0 and 3.3.2 and it works correctly in neither of em, but my other weapon does, so that's a bit weird.


Attached: a wad with the offending weapon, including the decorate code of course. (inb4 the issue is something really trivial and i'm just a decorate dummy)

xbow (ammo issue).zip

Share this post

Link to post

2 answers to this question

Recommended Posts

  • 0
		BOWW D 0 A_FireProjectile ("RMUCrossbowFX", 0,0,0)
		BOWW D 0 A_FireProjectile ("RMUCrossbowFX2", -4,0,-2)
		BOWW D 0 A_FireProjectile ("RMUCrossbowFX2", 4,0,2)

A_FireProjectile (string missiletype, [angle angle], [bool useammo], [float spawnofs_xy], [int spawnheight], [int flags], [float pitch])


First parameter, missile. You give it RMUCrossboxFX[2] so it works fine.

Second parameter, angle. You give it 0, -4, or 4 so it still works fine.

Third parameter is useammo. You give it 0, so it does not use ammo.

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this