ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[1.10.07] CPW_CustomBulletAttack uses no ammo, even w/ flag

 
Post new topic   Reply to topic    ZDaemon Forum Index -> Rejected Bugs
View previous topic :: View next topic  
Author Message
TheMightyHeracross
has entered the game!


Joined: 31 Mar 2019

PostPosted: Fri Apr 05, 2019 4:55 pm    Post subject: [1.10.07] CPW_CustomBulletAttack uses no ammo, even w/ flag Reply with quote

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
View user's profile Send private message
ZeroDev
has entered the game!


Joined: 24 Sep 2012

PostPosted: Fri Apr 05, 2019 5:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
TheMightyHeracross
has entered the game!


Joined: 31 Mar 2019

PostPosted: Sat Apr 06, 2019 12:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Krawa
There is a limit


Joined: 23 Nov 2008
Location: #SDA

PostPosted: Sat Apr 06, 2019 6:10 pm    Post subject: Reply with quote

ok, closed.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> Rejected Bugs All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group