Tremulous Forum
Mods => Modding Center => Topic started by: FOXHOUNDz on July 14, 2010, 02:12:46 am
-
I've been trying to figure this out for a while now but I'm stumped.
I wanted to use the FSM client [http://code.google.com/p/fsm-trem/ (http://code.google.com/p/fsm-trem/)] because it has cvars(P_statistics) that allows you to echo your health status and what not.
The problem occurs when I try to bind this feature to a key. It doesn't bind it, instead outputs it only in the console instead of a normal say command.
Any ideas?
The full feature of the stat commands:
Description: Various player statistics in a read-only cvar for binds.
p_hp
p_team
p_class
p_credits
p_score
p_attacker
p_weaponsname
p_ammo
p_killed
-
you have to use another feature with it to use it with say binds since they are only cvars with the player info stored in them
like for a hp bind you would do in your config files
bind f10 say OMG i only got \$$p_hp\ life left
see if that helps you i dont actually have a 1.1 client installed atm since i have moved to playing 1.2 but ill install one if needed just post exactly what you are typing since theres a few areas where binding cvars can give unwanted results(like swapping for the cvar value when you did the bind not dynamically)
-
theres a few areas where binding cvars can give unwanted results(like swapping for the cvar value when you did the bind not dynamically)
After googling, and asking around I finall figured that out.
Now I've come to the problem you just mentioned
So far I got around that problem by making and binding a config file and using it to reset the bind back to the cvars. Is there a solution for this?
-
theres a few areas where binding cvars can give unwanted results(like swapping for the cvar value when you did the bind not dynamically)
After googling, and asking around I finall figured that out.
Now I've come to the problem you just mentioned
So far I got around that problem by making and binding a config file and using it to reset the bind back to the cvars. Is there a solution for this?
im not sure thats what /$$cvar/ is for it changes to /$cvar/ when config is loaded so it can get it dynamically i dont know any way to do it in console or if its possible(maybe /$$cvar/ will work there too)
-
Hang on..I been looking for this kind of thing for months now.....So i can get this client thing...and use it, still visit any server, do what i like, and if i can figure it out I can make binds like the one Slacker suggested about hp?
-
yep tremfusion also has this feature too but they moved it to cgame(which means it wont work on all servers) but fsm has it in client still which means it should work everywhere although with things like tremx the weapon cvar may not work right
some people did have issues with some of the cvars being used to sort of automate some things but since fsm has p_hp include the max hp too like 10/25 its not an issue
-
So, hp for example is displayed as a fraction of 25 (seeing as all class hps are multiples of this) ?
And I tried this, but the console wouldnt open....anyone know why?
-
no for like a human on 10 hp it would be "10/100" for dretch it would be "10/25" goon "10/200" etc etc
the newer svn clients use sdl and sdl seems to have issues with some keyboard layouts and windows if tidle doesnt work shift + esc shoud