[ZScript] Easy Dual Wield library

Sprites, textures, sounds, code, and other resources belong here. Share and share-alike!
Forum rules
Before posting your Resource, please make sure you can answer YES to any of the following questions:
  • Is the resource ENTIRELY my own work?
  • If no to the previous one, do I have permission from the original author?
  • If no to the previous one, did I put a reasonable amount of work into the resource myself, such that the changes are noticeably different from the source that I could take credit for them?
If you answered no to all three, maybe you should consider taking your stuff somewhere other than the Resources forum.

Consult the Resource/Request Posting Guidelines for more information.

Please don't put requests here! They have their own forum --> here. Thank you!
Post Reply
User avatar
Jekyll Grim Payne
Global Moderator
Posts: 1117
Joined: Mon Jul 21, 2008 4:08 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia (Modern GZDoom)
Contact:

[ZScript] Easy Dual Wield library

Post by Jekyll Grim Payne »

Easy Dual Wield is a base weapon class defined in ZScript that is designed to make it a bit easier to define akimbo weapons.
The idea is to have a base weapon class that allows defining a dual-wield weapon where each gun consumes different types of ammo, can be fired independently by using Fire/Altfire buttons, and can be (optionally) reloaded independently. All of these things can be pretty difficult to get right without a lot of hackery, so Easy Dual Wield is supposed to make it easier.

DOWNLOAD: https://github.com/jekyllgrim/Easy-Dual ... s/main.zip

Readme/Documentation: https://github.com/jekyllgrim/Easy-Dual ... grim-payne

Video:


Note: This library does NOT allow you to actually use two entirely separate weapons together. (It's theoretically doable but it's much harder and that's something somebody else is working on, to my knowledge.) Easy Dual Wield is aimed specifically at the weapons that already combine two guns, primarily two different guns.
Last edited by Jekyll Grim Payne on Mon Mar 21, 2022 4:50 am, edited 1 time in total.
User avatar
Sir Robin
Posts: 537
Joined: Wed Dec 22, 2021 7:02 pm
Graphics Processor: Intel (Modern GZDoom)
Location: Medellin, Colombia

Re: [ZScript] Easy Dual Wield library

Post by Sir Robin »

FYI video link is 404
User avatar
Jekyll Grim Payne
Global Moderator
Posts: 1117
Joined: Mon Jul 21, 2008 4:08 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia (Modern GZDoom)
Contact:

Re: [ZScript] Easy Dual Wield library

Post by Jekyll Grim Payne »

Sir Robin wrote:FYI video link is 404
The video service has been discontinued, I'll reupload soon...

UPD: Uploaded to YouTube.
User avatar
Jekyll Grim Payne
Global Moderator
Posts: 1117
Joined: Mon Jul 21, 2008 4:08 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia (Modern GZDoom)
Contact:

Re: [ZScript] Easy Dual Wield library

Post by Jekyll Grim Payne »

Pushed a small update that adds MIRRORBOB flag that mirrors the guns' bobbing horizontally.
Post Reply

Return to “Resources”