[code request] Make this pistol have a suppressor function when altfire?

Requests go in THIS forum!
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
User avatar
Graaicko
Posts: 532
Joined: Tue Jun 17, 2014 11:22 pm
Graphics Processor: nVidia (Legacy GZDoom)

[code request] Make this pistol have a suppressor function when altfire?

Post by Graaicko »

Hello, I was wondering if someone would be able to edit this existing code to make it when you altfire it goes into an animation where the player attaches a suppressor to it and the weapon is suppressed and is reversed when you altfire again back to its unsuppressed state. I'd prefer it being one weapon if possible, I already made the sprites for it and looks really good. (I am pretty much looking for my pistol code to be altered so it can be suppressed and unsuppressed when the player presses the right mouse button or the 'altfire' key) I have tried to do it myself but I can't for the life of me figure it out on my own.

/////Code Here/////
Spoiler:

Return to “Requests”