(Solved) DECORATE shotgun consuming two ammo instead of one.

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

(Solved) DECORATE shotgun consuming two ammo instead of one.

Postby Samarai1000 » Sun Oct 22, 2017 3:41 pm

I have a terribly-coded (but normally functional) shotgun in my mod, but I've started noticing it's consuming 2 ammo every shot despite its AmmoUse1 property being set to use 1 ammo. Code below, I'll warn you, it's a mess.
https://pastebin.com/ZhSMcJQE
Will give more information if needed, I've never asked for help on these forums before.
Last edited by Samarai1000 on Sun Oct 22, 2017 3:56 pm, edited 1 time in total.
User avatar
Samarai1000
My existence shouldn't be a "political issue".
 
Joined: 25 Sep 2016
Location: Somewhere in Canada
Discord: #7919
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia (Modern GZDoom)

Re: DECORATE shotgun consuming two ammo instead of one.

Postby Cherno » Sun Oct 22, 2017 3:45 pm

I'd be nice if you just pasted the relevant code here so people don't have to download and open your archive file :)
User avatar
Cherno
 
Joined: 06 Dec 2016

Re: DECORATE shotgun consuming two ammo instead of one.

Postby Samarai1000 » Sun Oct 22, 2017 3:50 pm

Cherno wrote:I'd be nice if you just pasted the relevant code here so people don't have to download and open your archive file :)

Right, sorry, but I didn't realize pastebin caused downloads? Anyways, I figured it out. A_Spawnitem takes ammo by default and I'm a moron that forgot to set it to not do that. Will delete the thread.
User avatar
Samarai1000
My existence shouldn't be a "political issue".
 
Joined: 25 Sep 2016
Location: Somewhere in Canada
Discord: #7919
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia (Modern GZDoom)

Re: (Solved) DECORATE shotgun consuming two ammo instead of

Postby Accensus » Mon Oct 23, 2017 5:25 am

Official ZDoom Community Rules wrote:Don't "blank" your posts. Yes, it is possible to edit your post and delete all the text out of it, but if you're not comfortable with the replies you're seeing to your post, then the most you should do about it is tell a moderator. If your editing question was answered, leave the question up, or else nobody else will be able to find the thread later.
User avatar
Accensus
Vector, locked in.
 
Joined: 11 Feb 2016
Location: Somalia
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support


Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests