View previous topic :: View next topic |
Author |
Message |
TheMightyHeracross has entered the game!
Joined: 31 Mar 2019
|
Posted: Fri Apr 05, 2019 4:55 pm Post subject: [1.10.07] CPW_CustomBulletAttack uses no ammo, even w/ flag |
|
|
Basically what the title says. I have a DEHACKED weapon using the generic bullet attack function that does not use up ammo when fired. I have the CBAF_USEAMMO flag set, and the bug also remained when I changed this to just the integer (16). The weapon actually replaces the Heretic gold wand, which may or may not have something to do with it.
I have a demo wad here. |
|
Back to top |
|
|
ZeroDev has entered the game!
Joined: 24 Sep 2012
|
Posted: Fri Apr 05, 2019 5:20 pm Post subject: |
|
|
It work for me, you need to use the integer value instead of CBAF_USEAMMO.
And remember : "If set, the player's BULLET inventory is checked/depleted. Valid only for players/weapons."
So you can't use shotgun ammo ... |
|
Back to top |
|
|
TheMightyHeracross has entered the game!
Joined: 31 Mar 2019
|
Posted: Sat Apr 06, 2019 12:53 pm Post subject: |
|
|
Hmm, interesting. I suppose I can work around that, but it's quite a strange design choice imo. Why force the player to use bullets?
Anyway, I guess report this can be closed. |
|
Back to top |
|
|
Krawa There is a limit
Joined: 23 Nov 2008 Location: #SDA
|
Posted: Sat Apr 06, 2019 6:10 pm Post subject: |
|
|
ok, closed. |
|
Back to top |
|
|
|