How To Create a Duel-Weild System?

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.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: How To Create a Duel-Weild System?

Re: How To Create a Duel-Weild System?

by Jarewill » Sun Nov 17, 2019 1:42 pm

Okay, from what I understand you are trying to replace the uzi with the dual uzi when the player picks up two weapons, correct?
In this case you need a custominventory to manage the weapons, example below:
Spoiler:
This should work if the dual uzi is a different weapon.

How To Create a Duel-Weild System?

by BL1TZKRI3G » Sun Nov 17, 2019 12:38 pm

Okay so, I'm creating a mod (Obviously lmao) and in the mod, I have an Uzi, and Duel Uzi (Duzi). I've coded the weapons in full, implemented a reload system, etc. But I want to create a system akin to Hacx where to get a Duzi you need to get two Uzi pickups.

I've looked throughout the Hacx Decorate to see if there's some kind of thing that makes it work. No bueno. I've theorized about creating an actor dummy (Like the one I've used for the reload system I made) to give the player the dummy once he picks up an Uzi, and then after he picks up another one I use A_JumpIfInventory to give the Duzi. But that doesn't work, as far as I can see. I'll keep experimenting with methods, but can anyone tip me off to a way on how I can get this to work?

Top