[ACS]/[KEYCONF] D.W.S.S (Dynamic Weapon Switching System) (MADE FOR THE NEXT UPDATE FOR TAOD)

Post your example zscripts/ACS scripts/etc here.
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.
Post Reply
User avatar
DELTAtheDboi005
Posts: 218
Joined: Tue Apr 05, 2022 3:43 am
Preferred Pronouns: He/Him

[ACS]/[KEYCONF] D.W.S.S (Dynamic Weapon Switching System) (MADE FOR THE NEXT UPDATE FOR TAOD)

Post by DELTAtheDboi005 »

ACS bit:

Code: Select all

#library "WEAPONS"
#include "zcommon.acs"

//Weapons
Script "PISTOL" (void)
{
	if (checkinventory("Pistol")==1)
	{
		setweapon("Pistol");
	}
	else
	{
		print(s:"You don't have the pistol yet");
	}
}
KEYCONF bit:

Code: Select all

Alias "SwitchToPistol" "PukeName PISTOL"



Addkeysection "Weapons" "Weapons"
AddMenuKey "Pistol" "SwitchToPistol"

What this does is that you can set a keybind for a particular weapon, negating the need to use the weapon slots... Could be VERY useful for mods like russian overkill where there are numerous weapons in one slot. Feel free to use if you give credit to me (and link my mod that's in the spoiler in the credits*)

*you don't have to do this, but it would help me out a fair bit!

EXTRA CRAP!
Spoiler:
Post Reply

Return to “Script Library”