Jump to content

Weapon Switching faster


Spleeny

Recommended Posts

Hello,

 

Is there a way to make weapon switch faster without editing weapons? like a wad working for any weapon?

 

Thanks for your time.

Share this post


Link to post

I don't think so, cause what's making the switching slow is the A_Raise function inside of each weapon's Select state.

Share this post


Link to post

No, you cannot make if faster in already made weapons. But it is possible in newly created weapons. Forget dehacked, minimal requirement is decorate.

When you set up deselect and select states in the following manner:

Deselect:
			ASTF J 0 A_Lower();
			ASTF J 1 A_Lower();
			Loop;				
		Select:
			ASTF J 1 A_Raise();
			ASTF J 0 A_Raise();
			Loop;

It will select and deselect much faster. But keep in mind the order of durations. It's 0 1 for deselect and 1 0 for select. If you change it, it will not work.

Share this post


Link to post
43 minutes ago, ramon.dexter said:

Forget dehacked, minimal requirement is decorate.

 

I don't believe this is accurate. I'm pretty sure you can change the A_Raise state to switch in one frame via dehacked for near-instant weapon switching.

 

Share this post


Link to post
On 1/12/2023 at 6:03 PM, ramon.dexter said:

But keep in mind the order of durations. It's 0 1 for deselect and 1 0 for select. If you change it, it will not work.

 

Why 1 0 for select? I have been using 0 1 for both deselect and select without any problem. And those are looping states so it's just cleaner to use same order for both.

 

Also dehacked totally can do faster weapon switching: fastswitch-deh.zip

Share this post


Link to post

In DeHackEd, if you set your “WeaponRaise” frames to call a second “WeaponRaise” frame with a duration of 0, it will double the speed of the weapon raising. You can use the Commander Keen or WolfSS enemies for these extra frames.

 

The frames must already have an “action” set in vanilla Doom, however in Boom, MBF etc you can add actions to frames that don’t have them, making this even easier.

 

Tango also has an older thread explaining how to do this in DeHackEd in a less “frame wasting” way, too!

Share this post


Link to post
  • 2 weeks later...

I managed to get want I want using banjiepixel dehacked file for standard weapons and A_Raise state trick for new ones.

Thank you guys!

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
Reply to this topic...

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