Author Topic: FSM binding help?  (Read 5829 times)

FOXHOUNDz

  • Posts: 14
  • Turrets: +0/-2
FSM binding help?
« 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/] 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:
Code: [Select]

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

SlackerLinux

  • Spam Killer
  • *
  • Posts: 555
  • Turrets: +41/-62
Re: FSM binding help?
« Reply #1 on: July 14, 2010, 04:39:23 am »
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
Code: [Select]
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)
Slackware64 13.1
SlackersQVM/

FOXHOUNDz

  • Posts: 14
  • Turrets: +0/-2
Re: FSM binding help?
« Reply #2 on: July 16, 2010, 02:35:02 am »
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?
« Last Edit: July 16, 2010, 02:37:11 am by FOXHOUNDz »

SlackerLinux

  • Spam Killer
  • *
  • Posts: 555
  • Turrets: +41/-62
Re: FSM binding help?
« Reply #3 on: July 16, 2010, 03:25:15 am »
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)
Slackware64 13.1
SlackersQVM/

Shifty

  • Posts: 75
  • Turrets: +0/-0
Re: FSM binding help?
« Reply #4 on: July 16, 2010, 12:25:23 pm »
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?

SlackerLinux

  • Spam Killer
  • *
  • Posts: 555
  • Turrets: +41/-62
Re: FSM binding help?
« Reply #5 on: July 16, 2010, 01:37:41 pm »
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
Slackware64 13.1
SlackersQVM/

Shifty

  • Posts: 75
  • Turrets: +0/-0
Re: FSM binding help?
« Reply #6 on: July 16, 2010, 11:59:48 pm »
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?

SlackerLinux

  • Spam Killer
  • *
  • Posts: 555
  • Turrets: +41/-62
Re: FSM binding help?
« Reply #7 on: July 17, 2010, 01:46:48 am »
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
Slackware64 13.1
SlackersQVM/