The big CONFIG SCRIPTS thread

Discuss Nexuiz gameplay here.

Moderators: Nexuiz Moderators, Moderators

The big CONFIG SCRIPTS thread

Postby C.Brutail » Mon May 11, 2009 8:22 pm

Thread to post helpful config aliases/scripts, so others don't have to re-invent the wheel.

My teamsays (pretty much simple, but does the job):

Code: Select all
//Chit-chatting
bind - "messagemode"
bind . "messagemode2"
bind KP_5 "say_team ^2I'M FC ^3@%l ^1HP:%h ^2A:%a ^4W:%w ; g_waypointsprite_team_helpme"
bind KP_RIGHTARROW "say_team  ^1ATTACKING ^3@%l ^1HP:%h ^2A:%a ^4W:%w ; g_waypointsprite_team_here"
bind KP_LEFTARROW "say_team  ^2DEFENDING ^3@%l ^1HP:%h ^2A:%a ^4W:%w ; g_waypointsprite_team_here"
bind KP_END "say_team ^3@%l ^1HP:%h ^2A:%a ^4W:%w ; g_waypointsprite_team_here"
bind KP_DOWNARROW "say_team ^1NEED HELP ^3@%l ^1HP:%h ^2A:%a ^4W:%w ; g_waypointsprite_team_helpme"
bind KP_PGDN "say_team ^1BASE OVERRUN ^3@%l ^1HP:%h ^2A:%a ^4W:%w ; g_waypointsprite_team_helpme"
bind KP_PGUP "say_team ^2Base secure ^3@%l ^1HP:%h ^2A:%a ^4W:%w ; g_waypointsprite_team_here"
bind KP_HOME "say_team ^2ITEM: %x^7 ^3@%l ; g_waypointsprite_team_here_p"
bind KP_UPARROW "say_team ^1ENEMY SEEN ^3@%l ; g_waypointsprite_team_danger_p"
bind KP_PLUS "say_team ^6QUAD IN ME ; g_waypointsprite_team_here"
bind KP_MINUS "say_team ^1ENEMY QUAD ; g_waypointsprite_team_danger_p"
bind / "say_team ENEMY FLAG CARRIER (l:%y^7); g_waypointsprite_team_here_p"


One button to hide/show almost everything from your screen. Nice to make screenshots/movies (though you might need to change r_drawviewmodel to 1)

Code: Select all
//Screenshot oh fancy
//First, we'll define rebinds
alias rebind_hud_erease "bind n hud_erease"
alias rebind_hud_show "bind n hud_show"

//Now the actual aliases:
alias hud_erease "crosshair 0 ; cl_hidewaypoints 1 ; cl_teamradar 0 ; r_drawviewmodel 0 ; viewsize 120 ; showdate 0 ; showfps 0 ; showspeed 0 ; showtime 0 ; shownetgraph 0 ; v_brightness 0.000000 ; rebind_hud_show"
alias hud_show "crosshair 99 ; cl_hidewaypoints 0 ; cl_teamradar 1 ; r_drawviewmodel 1 ; viewsize 110 ; showdate 1 ; showfps 1 ; showspeed 1 ; showtime 1 ; shownetgraph 1 ; v_brightness 0.080000 ; rebind_hud_erease"

//Finally, we bind it to n
bind "n" "hud_erease"


Server admining v1.:
Code: Select all
//Aliases
//RCON aliases
//First, we'll define rebinds
alias rebind_rcon_rbi_key "bind F6 rcon_rbi_key"
alias rebind_rcon_rbi_ctf "bind F6 rcon_rbi_ctf"
alias rebind_rcon_rbi_race "bind F6 rcon_rbi_race"

//Now the rcon manager aliases,on we're refering in the previous ones
//CTF -> KEYHUNT
alias rcon_rbi_ctf "echo Connected to ^1RBI CTF server^7 . Pressing ^2F6 ^7next time, you'll manage the ^1KEYHUNT server^7; rcon_password wtfomglolbbq ; rcon_address 141.2.16.23:26000 ; rebind_rcon_rbi_key"
//KEYHUNT -> RACE
alias rcon_rbi_key "echo Connected to ^1RBI KEYHUNT server ^7. Pressing ^2F6 ^7next time, you'll manage the ^1RACE server^7; rcon_password wtfomglolbbq ; rcon_address 141.2.16.23:26001 ; rebind_rcon_rbi_race"
//RACE -> CTF
alias rcon_rbi_race "echo Connected to ^1RBI RACE server ^7. Pressing ^2F6 ^7next time, you'll manage the ^1CTF server^7; rcon_password wtfomglolbbq ; rcon_address 141.2.16.23:26002 ; rebind_rcon_rbi_ctf"

//Finally, we bind it to F6
bind "F6" "rcon_rbi_ctf"
"One should strive to achieve; not sit in bitter regret."
WE ARE NEXUIZ.
Image
Image
C.Brutail
Laidback mapper
 
Posts: 2357
Joined: Tue Feb 28, 2006 7:26 pm
Location: Ironforge

Postby Mizu Kitsune » Sun May 31, 2009 7:10 am

very nice.
Mizu Kitsune
Alien trapper
 
Posts: 362
Joined: Sat Apr 11, 2009 7:51 pm
Location: Maridia

Postby Vordreller » Wed Aug 12, 2009 12:54 pm

What is that KP button?
Vordreller
Advanced member
 
Posts: 80
Joined: Sat May 16, 2009 9:58 pm
Location: Belgium

Postby [-z-] » Wed Aug 12, 2009 8:30 pm

Numeric KeyPad
[-z-]
Site Admin and Nexuiz Ninja
 
Posts: 1794
Joined: Mon Nov 13, 2006 12:20 am
Location: Florida

Postby Vordreller » Thu Aug 13, 2009 2:21 am

[-z-] wrote:Numeric KeyPad
Awsome for me and my laptop :p
Vordreller
Advanced member
 
Posts: 80
Joined: Sat May 16, 2009 9:58 pm
Location: Belgium

Postby MC SE7EN » Thu Aug 13, 2009 4:20 am

Vordreller wrote:
[-z-] wrote:Numeric KeyPad
Awsome for me and my laptop :p


i had that problem..just found an app for my ipod touch that turns it into a number pad...yay me!
MC SE7EN
Alien trapper
 
Posts: 294
Joined: Fri Apr 10, 2009 8:56 pm

Postby Samual » Sun Sep 06, 2009 1:04 am

I would post mine, but I have a ton of stuff that shouldn't be said publicly :P (Wallhack, rainbow, etc etc)
Do it yourself, or stop complaining.
(Developer Tracker) | (Nexuiz Roadmap)
Samual
Keyboard killer
 
Posts: 508
Joined: Mon May 25, 2009 7:22 pm
Location: Pittsburgh, PA

Postby Bommel » Wed Sep 09, 2009 10:55 am

A little "away from keyboard" script.:
You just type:
Code: Select all
//afk script
//2009 by Bommel (aka Spohst/FrogonCoffee...godamnit I need a database for my names.) - You can use it as you want ;) (version 0.9)
//usage: afk       [minutes_you're_probalby_afk]
//       afkr     [minutes_you're_probalby_afk] [reason]
//    afkstop: Stops the script.
//
//    afkadd [minutes]:  [minutes] + remaining time.
//    afksub [minutes]:  [minutes] - remaining time.
//       afkmul [minutes]:  [minutes] * remaining time.
//    afkdiv [minutes]:  [minutes] / remaining time.
//    afkmod [minutes]:  [minutes] % remaining time. (xD)
//   
//    afkset [minutes]:  Sets the remaning time to [minutes]



//Configure the script with these vars:
seta afk_message "^0brb^3 "
seta afk_time_unit " ^0min."
seta afk_backmsg "^xD60<-^0back."


//Other vars. Better don't change them.
seta afk_interval 60
seta afk_counter 0       
alias afk_newline "echo; echo ------------------------"
seta afk_cmd_message "^4Youre name will be changed back in "



//commands to change the remaining time:
alias afkadd "menu_cmd rpn /afk_counter afk_counter $1 +    def; afk_upname;  echo $afk_counter Minute(s) left."
alias afksub "menu_cmd rpn /afk_counter afk_counter $1 -    def; afk_upname;  echo $afk_counter Minute(s) left."
alias afkmul "menu_cmd rpn /afk_counter afk_counter $1 *    def; afk_upname;  echo $afk_counter Minute(s) left."
alias afkdiv "menu_cmd rpn /afk_counter afk_counter $1 /    def; afk_upname;  echo $afk_counter Minute(s) left."
alias afkmod "menu_cmd rpn /afk_counter afk_counter $1 mod  def; afk_upname;  echo $afk_counter Minute(s) left."
alias afkset "seta afk_counter $1; afk_upname"



//'afk' and 'brb' are just a 'pointers' to afkr with missing second argument.
alias brb "afkr $1 \"\""
alias afk "afkr $1 \"\""

//Setting everything up...
alias afkr "afk_newline;seta old_name \"$_cl_name\";seta secfoo $1;seta rea \" $2\";seta afk_counter $1; echo ^4... $1 minutes afk...^7; menu_cmd rpn /secfoo secfoo $afk_interval * def; afk_correct"
alias afk_p "echo $afk_cmd_message ^1 $secfoo seconds; afk_newline; echo; say $afk_message$afk_counter$afk_time_unit; update_loop"
alias afk_fin "defer $afk_interval nafk;echo"
alias nafk  "echo ^3Stopping Script!; afkstop"


//If switches - checking if the given number is valid.
alias afk_correct "afkco"
alias afkco  "menu_cmd rpn /result  $afk_counter 0 eq def; afkco2"
alias afkco2 "switch_$result"
alias afkco3  "menu_cmd rpn /result  $afk_counter 1 mod def; afkco4"
alias afkco4 "witch_$result"

alias switch_1 "echo ^1afk 0. Hahaha. Verrry funny."
alias switch_0 "afkco3"
alias witch_0 "afk_p"
alias witch_1 "echo ^1.x (float) Numbers are not allowed."



//'decrement' = afk_counter--; in common languages... (and that's afk_counter = afk_counter - 1)
alias afk_decrement  "menu_cmd rpn /afk_counter afk_counter 1 - def"
alias afk_upname  "name $old_name$afk_message$afk_counter$afk_time_unit$rea"

//The Main Loop that updates the name & checks if the afk_counter = 1, if so it executes "afk_fin"
alias update_loop "afk_upname; afk_compare $afk_counter"
alias afk_lp_defer    "afk_decrement; defer $afk_interval update_loop"

//This 'if' checks if the script needs to be terminated:
alias afk_compare "menu_cmd rpn /result 1 $1 eq def; afk_compare2"
alias afk_compare2 "afk_answer_$result"
alias afk_answer_1 "afk_fin"
alias afk_answer_0 "afk_lp_defer"


//Stops loop and loads it after a while again.
alias afkstop "unalias update_loop; defer 70 alias update_loop \"afk_upname; afk_compare $afk_counter\"; name $old_name; say $afk_backmsg"

Simply put it somewhere in the autoexec.cfg..



Little Command-reference:
  • afk [minutes] - Prints a little message that you're brb/afk - whatever - and sets your name back after [minutes].
  • afkr [minutes] [reason] - Same as "afk" but you can also give a reason.
  • afkadd [minutes] - adds "afktime"
  • afkstop - Stops the script and sets the name back.

Written in a pretty short time (you'll get a cookie if you understand it at the first view) and in the hope it will be useful ;)
Last edited by Bommel on Wed Feb 10, 2010 5:10 pm, edited 2 times in total.
Bommel
Member
 
Posts: 32
Joined: Sun Aug 16, 2009 4:04 pm
Location: Germany

Postby MC SE7EN » Wed Sep 09, 2009 1:41 pm

im so tired of forgetting this...

where is the autoexec file again?

my bad, said the wrong filename
Last edited by MC SE7EN on Wed Sep 09, 2009 4:49 pm, edited 1 time in total.
MC SE7EN
Alien trapper
 
Posts: 294
Joined: Fri Apr 10, 2009 8:56 pm

Postby Bommel » Wed Sep 09, 2009 1:59 pm

On a linux system (and probably also in Mac OS X) in ~/.nexuiz/data/
If there isn't yet such a file: Create it.
On Windows...err...where your config.cfg is :P
Bommel
Member
 
Posts: 32
Joined: Sun Aug 16, 2009 4:04 pm
Location: Germany

Next

Return to Nexuiz - Gameplay

Who is online

Users browsing this forum: No registered users and 1 guest