GoldenEye: Source Forums

  • November 25, 2024, 01:10:03 am
  • Welcome, Guest
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Help with script  (Read 5299 times)

0 Members and 1 Guest are viewing this topic.

keefy

  • EWJ
  • 00 Agent
  • ***
  • Posts: 393
  • Reputation Power: 0
  • keefy is looked down upon.
  • Offline Offline
Help with script
« on: February 25, 2010, 01:24:19 pm »

After reading a thread about using controllers and seeing a few more people ask about them it got me thinking about scripts to bind multiple actions to a single key thus freeing up more buttons on the controllers.

So one idea I thought would be to have the gameplay help and weaponset help binded onto 1 key but I cant get it to function.
so far I have this

Code: [Select]
alias help "cl_ge_gameplay_help;bind h help2"
alias help2 "cl_ge_weaponset_list;bind h help3"
alias help3 "cl_ge_weaponset_list;bind h help"
bind "h" "help"


but using that doesn't work it simply prints out in the console "unknown command cl_ge_gameplay_help"

Anyone know where I am going wrong?
Logged

VC

  • Valiant Varanidæ, Citrus Jockey
  • Retired Developer
  • GE:S Fanatic
  • *****
  • Posts: 2,843
  • Reputation Power: 16
  • VC is working their way up.VC is working their way up.VC is working their way up.
  • Offline Offline
Re: Help with script
« Reply #1 on: February 25, 2010, 01:51:08 pm »

Is cl_ge_gameplay_help the right command?  I don't need help so I am unfamiliar, but I haven't seen us stack tags like cl_ge_*

As a Good Practice, bind only once.  You want H to always call your help feature, so change the help feature, not the key's function.

bind h "help_cycle"
alias help1 "cl_ge_gameplay_help; alias help_cycle help2"
alias help2 "cl_ge_weaponset_list; alias help_cycle help3"
alias help3 "cl_ge_weaponset_list; alias help_cycle help1"
alias help_cycle help1
Logged
"As for VC's scripts they have not broken the game at all, in fact the game has never felt better." -- KM
"(03:12:41 PM) KM: I would call you a no life loser, but you are useful"
"(03:12:59 PM) VC: Go ahead.  I am, and I am."

keefy

  • EWJ
  • 00 Agent
  • ***
  • Posts: 393
  • Reputation Power: 0
  • keefy is looked down upon.
  • Offline Offline
Re: Help with script
« Reply #2 on: February 25, 2010, 02:21:02 pm »

Those are the correct commands i did key_listboundkeys in cosole to check.

Same results :(
It cycles fine but for some reason the commands arenot recognised.

even entering them directly into console brings up Unknown command: cl_ge_gameplay_help Which is weird because they work when binded to a key.


Logged
Pages: [1]   Go Up