Disable weapon switching on specific weapons.

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
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 Reply
Kesky
Posts: 4
Joined: Thu Feb 13, 2025 6:03 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Arch
Graphics Processor: nVidia with Vulkan support

Disable weapon switching on specific weapons.

Post by Kesky »

First of all Happy new years Zdoom party people.

I am working on a weapon that acts more as a power up. You pick it up until you either run out of ammo or switch weapons. The issue is if you pick up a weapon off the ground it forces you to drop it since I don't want the player to be able to store it. So far I can only find ways to disable switching to it but nothing like what I'm describing.

Cheers :D
Kesky
Posts: 4
Joined: Thu Feb 13, 2025 6:03 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Arch
Graphics Processor: nVidia with Vulkan support

Re: Disable weapon switching on specific weapons.

Post by Kesky »

Disregard this I took a night to sleep and woke up to discover the A_WeaponReady DisableSwitch flag. Yall have a good 2026
Post Reply

Return to “Scripting”