Spoiler:
Code: Select all
if (buttons & BT_Speed)
{
str weapon = GetWeapon();
If (StrIcmp(weapon, "Sprint") == 1)
{
SetWeapon(PrevWeapon);
printbold(s: "11111111");
}
else If (StrIcmp(weapon, "Sprint") == 0)
{
PrevWeapon = GetWeapon();
SetWeapon("Sprint");
printbold(s: "22222222");
}
else
{
printbold(s: "33333333");
}
}
i have no clue
https://zdoom.org/wiki/GetWeapon