mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-10 14:42:05 +00:00
FTE: Update extensions
This commit is contained in:
parent
5b4af6caeb
commit
238e9d995d
5 changed files with 3188 additions and 542 deletions
File diff suppressed because it is too large
Load diff
|
@ -937,8 +937,8 @@ void(float width, float height) HUD_Useprint =
|
|||
usespace = "";
|
||||
usecost = "";
|
||||
|
||||
tokenize(findkeysforcommand("+button7"));
|
||||
usebutton = strtoupper(keynumtostring(stof(argv(0))));
|
||||
tokenize(findkeysforcommandex("+button7"));
|
||||
usebutton = strtoupper(argv(0));
|
||||
|
||||
for(float i = 0; i < strlen(usebutton); i++) {
|
||||
usespace = strcat(usespace, " ");
|
||||
|
@ -1130,8 +1130,8 @@ void(float width, float height) HUD_BouncingBetty =
|
|||
string betty_space;
|
||||
string activate_string, activate_string2;
|
||||
|
||||
tokenize(findkeysforcommand("impulse 33"));
|
||||
betty_key = strtoupper(keynumtostring(stof(argv(0))));
|
||||
tokenize(findkeysforcommandex("impulse 33"));
|
||||
betty_key = strtoupper(argv(0));
|
||||
|
||||
betty_space = "";
|
||||
for(float i = 0; i < strlen(betty_key); i++) {
|
||||
|
@ -1556,8 +1556,8 @@ string(float index) GetButtonString =
|
|||
else if (index == 101)
|
||||
return "RMOUSE";
|
||||
|
||||
tokenize(findkeysforcommand(buttonBind[index]));
|
||||
string temps = strtoupper(keynumtostring(stof(argv(0))));
|
||||
tokenize(findkeysforcommandex(buttonBind[index]));
|
||||
string temps = strtoupper(argv(0));
|
||||
|
||||
return temps;
|
||||
}
|
||||
|
|
|
@ -1041,19 +1041,19 @@ noref float(string cmd) CSQC_ConsoleCommand =
|
|||
|
||||
void(float scanx, float setval) Input_Movecheck =
|
||||
{
|
||||
tokenize(findkeysforcommand("+moveleft"));
|
||||
tokenize(findkeysforcommandex("+moveleft"));
|
||||
if (scanx == stof(argv(0)))
|
||||
K_LEFTDOWN = setval;
|
||||
|
||||
tokenize(findkeysforcommand("+moveright"));
|
||||
tokenize(findkeysforcommandex("+moveright"));
|
||||
if (scanx == stof(argv(0)))
|
||||
K_RIGHTDOWN = setval;
|
||||
|
||||
tokenize(findkeysforcommand("+forward"));
|
||||
tokenize(findkeysforcommandex("+forward"));
|
||||
if (scanx == stof(argv(0)))
|
||||
K_FORWARDDOWN = setval;
|
||||
|
||||
tokenize(findkeysforcommand("+back"));
|
||||
tokenize(findkeysforcommandex("+back"));
|
||||
if (scanx == stof(argv(0)))
|
||||
K_BACKDOWN = setval;
|
||||
}
|
||||
|
@ -1066,8 +1066,8 @@ void(float button, string key) setToBind =
|
|||
|
||||
btn = buttonBind[button];
|
||||
|
||||
tokenize(findkeysforcommand(btn));
|
||||
oldkey = keynumtostring(stof(argv(0)));
|
||||
tokenize(findkeysforcommandex(btn));
|
||||
oldkey = argv(0);
|
||||
|
||||
unbind = strcat("bind ", oldkey, " null\n");
|
||||
fullbind = strcat("bind ", key, " \"", btn, "\"\n");
|
||||
|
|
|
@ -772,8 +772,8 @@ void() settings_sens2 = {
|
|||
|
||||
void() settings_adsmode =
|
||||
{
|
||||
tokenize(findkeysforcommand("+button8"));
|
||||
string button8_key = strtoupper(keynumtostring(stof(argv(0))));
|
||||
tokenize(findkeysforcommandex("+button8"));
|
||||
string button8_key = strtoupper(argv(0));
|
||||
|
||||
// ADS Mode
|
||||
if (button8_key == "MOUSE2")
|
||||
|
@ -1447,8 +1447,8 @@ void() Draw_Extra_CSettings =
|
|||
string cset_desc;
|
||||
cset_desc = "";
|
||||
|
||||
tokenize(findkeysforcommand("+button8"));
|
||||
string button8_key = strtoupper(keynumtostring(stof(argv(0))));
|
||||
tokenize(findkeysforcommandex("+button8"));
|
||||
string button8_key = strtoupper(argv(0));
|
||||
|
||||
// ADS Mode
|
||||
if (button8_key == "MOUSE2")
|
||||
|
@ -1665,10 +1665,10 @@ void() Draw_Extra_Controls =
|
|||
buttoncon[0] = "";
|
||||
|
||||
for (int i = 0; i < MAX_BINDS; i += 1) {
|
||||
tokenize(findkeysforcommand(buttonBind[i]));
|
||||
tokenize(findkeysforcommandex(buttonBind[i]));
|
||||
|
||||
if (editBind[i] == FALSE)
|
||||
buttoncon[i] = strtoupper(keynumtostring(stof(argv(0))));
|
||||
buttoncon[i] = strtoupper(argv(0));
|
||||
else
|
||||
buttoncon[i] = binding;
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue