Xonotic Forums
[NEED HELP] Tricky keyboard option - 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: [NEED HELP] Tricky keyboard option (/showthread.php?tid=8136)

Tricky keyboard option - FinBiteLeaf - 09-14-2019

Hi! Is there a possibility to make somehow through console or config files the following:

1) press W button to use Blaster - > If Blaster is already used, pressing of W button changes it to previously used weapon

2) if i have Crylink then pressing of R button switches weapon to Crylink -> if NO then it switches to shotgun -> If Crylink is already used pressing R will switch it to shotgun.

Thx monkey

RE: Tricky keyboard option - martin-t - 09-15-2019

Yes. Hint: there's a cl_hook for weapon switch (gets the name as param).