What you've done is overwrite the same function 3 times, inserting the command to drop a single item.
If your objective is to drop your current weapon every time you switch weapons, then use drop(Weapon);
Example:
Code: Select all
function nextWeapon()
{
drop(Weapon);
// Up to the server right now
remoteEval(2048,nextWeapon);
}
If you don't want to drop your weapon EVERY time you switch weapons, then write your own function just like the next weapon function and make a different keybind.
Example:
Code: Select all
function dropWeapon()
{
drop(Weapon);
// Up to the server right now
remoteEval(2048,nextWeapon);
}
bindCommand(keyboard0, make, alt, "q", TO, "dropWeapon();");
Or you can keep dropping and switching weapons until you release the key:
Code: Select all
function nextWeapon()
{
if($dropWeapons)
{
drop(Weapon);
schedule("nextWeapon();", 0.1);
}
// Up to the server right now
remoteEval(2048, nextWeapon);
}
bindCommand(keyboard0, make, alt, "q", TO, "$dropWeapons = true; nextWeapon();");
bindCommand(keyboard0, break, alt, "q", TO, "$dropWeapons = false;");