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");
}
}
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: