Page 1 of 1

$health, $weapon, etc for /say_team

Posted: Tue Jun 23, 2015 5:15 pm UTC
by lavacano201014

An idea stolen from Urban Terror. Mostly handy for binds. For instance:

Code: Select all

/say_team ^3I could use some ^AHELP ^3here... ^2(HP: $health, carrying $weapon)

[H] Lavacano Ozols (ur mom's house xDxD): I could use some HELP here... (HP: 27, carrying Las Gun)

In Quake-based games I tend to keep a basic set of status and basic communication binds. This prevents me from stopping in-place to press Y and type "HELP" into chat. Having these "variables" for binds would be handy to communicate exactly how much help I need :V


Re: $health, $weapon, etc for /say_team

Posted: Wed Jun 24, 2015 5:05 am UTC
by kharnov

Good idea, we'll look into implementing it.


Re: $health, $weapon, etc for /say_team

Posted: Mon Jul 27, 2015 11:09 pm UTC
by Ishq

We already have this. Just slightly different. You can do $p$ I think, where p are cvars that list various things about you (weapon, class, hp, location).


Re: $health, $weapon, etc for /say_team

Posted: Tue Jul 28, 2015 10:38 am UTC
by Tom

Yes, for example I have in my autoexec.cfg:

bind f10 modcase !shift,!alt "/say \"\$p_hp\$ HP\"" "/say \"HP?\""

When I press F10, my HP are displayed in the general chat. This way, at the end of a good fight the enemy I have just killed knows I only have 2 HP left. Shift + F10 asks "HP?" in the chat for when I am the one who's dead and it survived.