Xonotic Forums
Console Tips & Tricks - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Configuration Tips (https://forums.xonotic.org/forumdisplay.php?fid=19)
+--- Thread: Console Tips & Tricks (/showthread.php?tid=2987)

Pages: 1 2


RE: Console Tips & Tricks - FinBiteLeaf - 03-07-2020

I understand (i think) the logics, but fail with code, i tried ""bx_if_not_eq ${bx_weapon} blaster; bx_if_eq ${bx_weapon} blaster weaplast"" but failed


RE: Console Tips & Tricks - martin-t - 03-07-2020

Split your commands into parts and find out where they fail. Also keep in mind the console is retarded and broken in various ways - e.g. you can't set a cvar and read the new value in one alias - it'll keep using the old value presumably because cvar expansion happens too early. You have to split it into multiple aliases - this will first print old_value, then new_value:
Code:
set some_cvar old_value
alias step1 "set some_cvar new_value ; echo $some_cvar ; step2"
alias step2 "echo $some_cvar"

Another issue is that nested curly braces are broken so stuff like
Code:
${${1 !}}
won't work - again you have to split it into multiple steps.


RE: Console Tips & Tricks - Aguaumreal - 02-13-2021

Anyone knows how to scale the strafe hud? I lost my config and it used to be bigger than how it is now. It's very small to see currently.


RE: Console Tips & Tricks - lakrass - 02-13-2021

(02-13-2021, 09:15 AM)Aguaumreal Wrote: Anyone knows how to scale the strafe hud? I lost my config and it used to be bigger than how it is now. It's very small to see currently.

You can find many cvars for strafehud by typing hud_panel_strafehud and then TAB


RE: Console Tips & Tricks - Aguaumreal - 02-13-2021

thank you i kinda found it.