Jump to content
  • 0

DEHACKED - Is it possible to make a weapon fire twice at once?


Matt Eldrydge

Question

Basically I want to make a chaingun fire two shots at once to act as a kind of "super machine gun" counterpart to my current starter weapon, which is a pistol that shoots faster and has no spread.

 

I know I could possibly lower the speed between both Fire Chaingun codepointers as low as possible (which I think is 1 tic?), but I'm kinda new to Dehacked and don't really know how to go about making that not translate into a weapon that just burns all your ammo while you hold the trigger either.

Share this post


Link to post

5 answers to this question

Recommended Posts

  • 0

Durations can be 0 tics. Here's the most basic example of what you're talking about, the duration between the first and second shots of the chaingun is set to 0. You might want to increase the duration of the frames before it refires if you think it's too fast.

 

https://user.fm/files/v2-7d0cd0d1255f48f43894ed35497a0672/power_chaingun.deh

 

Patch File for DeHackEd v3.0
# Created with WhackEd4 1.2.4 BETA
# Note: Use the pound sign ('#') to start comment lines.

Doom version = 19
Patch format = 6


Frame 52
Duration = 0


 

Share this post


Link to post
  • 0
3 hours ago, Matt Eldrydge said:

don't really know how to go about making that not translate into a weapon that just burns all your ammo while you hold the trigger either.

 

This is the more difficult part... you won't be able to change how much ammo is consumed per shot. The only real way around this that I have found is to increase the ammo given from pickups, taking care that you will never be able to get to -1 ammo. So for a two-shot chaingun, you would need all the amounts to be in multiples of 2, including the zombieman's dropped clip which is actually 1/2 of a clip. Of course this can disrupt the overall ammo balance so you just have to keep it in mind when designing custom monsters and when placing ammo pickups.

 

EDIT: Wait one second, A_FireCGun does not fire when you have 0 ammo. Silly me... I guess I was thinking of A_FirePistol?

Edited by magicsofa

Share this post


Link to post
  • 0

In more advanced ports you can dedicate more frames to shooting (So for example duration 0 followed by duration 1 will fire 2 shots at once), but I'm not sure how it would work with vanilla since I understand there are limits to which frames can have codepointers.

Edited by ViolentBeetle

Share this post


Link to post
  • 0

Ah, I forgot mentioning but specifically this changed up chaingun is for a Boom map. I know I have a few more states/frames to work with in BEX, but for now I'll stick with more vanilla stuff since it's my first time making significant changes to the weapon balance.

 

58 minutes ago, magicsofa said:

So for a two-shot chaingun, you would need all the amounts to be in multiples of 2, including the zombieman's dropped clip which is actually 1/2 of a clip. Of course this can disrupt the overall ammo balance so you just have to keep it in mind when designing custom monsters and when placing ammo pickups.

 

Yeah, there's a lot of changes to how much ammo you can hold. 100/200 bullets, 20/40 shells, 10/20 rockets. Pickups also have been changed, I'm going for a survival horror kind of thing.

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