The big CONFIG SCRIPTS thread

Discuss Nexuiz gameplay here.

Moderators: Nexuiz Moderators, Moderators

Postby MC SE7EN » Wed Sep 09, 2009 4:48 pm

Bommel wrote: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


Ah ok. I didn't see it there, probably because it doesn't exist. Thanks!


ok, i did it, and it works fine in the console, but it doesnt change my name (says it doesnt know the command afkco)
MC SE7EN
Alien trapper
 
Posts: 294
Joined: Fri Apr 10, 2009 8:56 pm

Postby Bommel » Wed Sep 09, 2009 6:22 pm

Ehm..

The alias 'afkco' is defenetely there.
The only thing I can imagine is that you accidently didn't Copy&Paste the whole thing.. :?:

Works flawless here:
Image
Simply started with 'afkr 1 Pizza!' .
Bommel
Member
 
Posts: 32
Joined: Sun Aug 16, 2009 4:04 pm
Location: Germany

Postby MC SE7EN » Wed Sep 09, 2009 6:39 pm

*feels very fail*

*tries again*

works. nice. i like this..thanks very much
MC SE7EN
Alien trapper
 
Posts: 294
Joined: Fri Apr 10, 2009 8:56 pm

Postby C.Brutail » Sat Sep 12, 2009 2:11 pm

Very nice, and very uselful script! Thanks for sharing!
"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 C.Brutail » Mon Oct 12, 2009 1:28 am

Simple one-click zoom in / zoom out script:

Code: Select all
//First, we'll define rebinds
alias rebind_zin "bind mouse3 zin"
alias rebind_zout "bind mouse3 zout"

//Now the zoom aliases, we're refering in the previous ones
alias zin "fov 40 ;  rebind_zout"
alias zout "fov 90 ; rebind_zin"

bind "mouse3" zin
"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 Roanoke » Fri Oct 30, 2009 5:15 am

Some stuff I blatantly plagiarized from TF2's Heavy's taunts.
http://pastebin.com/f689d679f
Please don't hurt me, valve.
Roanoke
Advanced member
 
Posts: 96
Joined: Fri Dec 26, 2008 2:32 am
Location: Camping mortar spawn

Postby Roanoke » Fri Oct 30, 2009 6:12 am

A more serious script: Some binds are declared as say commands. Holding F7 and pressing the key makes them say_team commands.
Code: Select all
//Some simpler binds
alias nn_gg         "say ^1Good ^x01CGame!"
alias nn_goodbye   "say ^1Good^x01Cbye!"
alias nn_hello      "say ^1Hello!"

set nn_ns         "^1Nice ^x01CShot!"
set nn_sorry      "^1Sorry!"
set nn_thanks      "^1Thanks!"
set nn_gj         "^1Good ^x01Cjob!"
set nn_no         "^1Negative"
set nn_yes         "^2Affirmative"

//A switching mechanism for the above simple binds
//Regular
alias nn_nsc         "say $nn_ns";
alias nn_sorryc       "say $nn_sorry";
alias nn_thanksc      "say $nn_thanks";
alias nn_gjc         "say $nn_gj";
alias nn_noc         "say $nn_no";
alias nn_yesc         "say $nn_yes";

//Team (like the above, except on one line and escapes the slashes with quotes, and uses say_team)
alias simpbind_team "alias nn_nsc \"say_team $nn_ns\";  alias nn_sorryc \"say_team $nn_sorry\";  alias nn_thanksc \"say_team $nn_thanks\";  alias nn_gjc \"say_team $nn_gj\";  alias nn_noc \"say_team $nn_no\";  alias nn_yesc \"say_team $nn_yes\""

//Public (like the above, except on one line and escapes the slashes with quotes, and uses say_team)
alias simpbind_public "alias nn_nsc \"say $nn_ns\";  alias nn_sorryc \"say $nn_sorry\";  alias nn_thanksc \"say $nn_thanks\";  alias nn_gjc \"say $nn_gj\";  alias nn_noc \"say $nn_no\";  alias nn_yesc \"say $nn_yes\""

//Pressing F7 makes them teamsays, releasing makes them public
seta userbind22_description "Ninja Pack: Switch certain say binds from public to team"
seta userbind22_press "simpbind_team; echo press reg"
seta userbind22_release "simpbind_public; echo release reg"
bind F7 "+userbind 22"
Roanoke
Advanced member
 
Posts: 96
Joined: Fri Dec 26, 2008 2:32 am
Location: Camping mortar spawn

Postby parasti » Fri Oct 30, 2009 12:47 pm

You could greatly simplify that script by doing something like

Code: Select all
set nn_say say

// Regular
alias nn_nsc         "$nn_say $nn_ns"
// etc.

alias simpbind_team "set nn_say say_team"
alias simpbind_public "set nn_say say"
parasti
Alien
 
Posts: 110
Joined: Sun May 11, 2008 11:32 pm
Location: On the walls and the ceiling

Postby Roanoke » Fri Oct 30, 2009 5:09 pm

parasti wrote:You could greatly simplify that script by doing something like


Doh... No idea how I missed that. Thanks, parasti :)
Roanoke
Advanced member
 
Posts: 96
Joined: Fri Dec 26, 2008 2:32 am
Location: Camping mortar spawn

Re: The big CONFIG SCRIPTS thread

Postby Yoda almighty » Sat Jan 23, 2010 4:32 am

modified gameplay type. this is for newer members who think that nexuiz is "too fast". i also changed a few things around to make you move around with more intelligence. this isn't finished yet, so i will accept any suggestions for improvement.

also a slight improvement of c.brutal's zoom toggle script.

Code: Select all
// load engine's idea of vid_con*
seta menu_vid_conwidth $vid_conwidth
seta menu_vid_conheight $vid_conheight

// fix cvar settings of the engine that Nexuiz is not compatible with
alias _update_generic_r_dynamic_0 "r_dynamic 1; r_shadow_realtime_dlight 1"
alias _update_generic_r_dynamic_1 ""
alias _update_generic "_update_generic_r_dynamic_$r_dynamic"

// updates for ... to 2.4 (also run on first startup, so be careful with what you put in here)
alias _update_configversion_0 ""

// Updates for 2.4.1 to 2.4.2
alias _update_configversion_1 ""

// Updates for 2.5 to ...
alias _update_configversion_2 ""

_update_configversion_$g_configversion
_update_generic

set g_configversion 2





//physics
sv_maxspeed 235
sv_maxairspeed 270
sv_airaccelerate 4

sv_gravity 850




//scope
//First, we'll define rebinds
alias rebind_zin "bind mouse3 zin"
alias rebind_zout "bind mouse3 zout"

//Now the zoom aliases, we're refering in the previous ones
alias zin "+zoom ;  rebind_zout"
alias zout "-zoom ; rebind_zin"

bind "mouse3" zin

set g_respawn_delay 5 "number of seconds you have to wait before you can respawn again"

cl_rollangle 1 // amount of view tilt when strafing, default is 2.0


set g_footsteps 1   


set g_ghost_items 0

set g_allow_oldnexbeam 1

set g_balance_nex_primary_headshotaddeddamage 200

set g_balance_weaponswitchdelay 0.35

//fall damage
set g_balance_falldamage_deadminspeed 120
set g_balance_falldamage_minspeed 450
set g_balance_falldamage_factor 0.4
set g_balance_falldamage_maxdamage 190




EDIT: changed a few things

EDIT2
Why has a developer ever needed any reason other than "it looks bloody awesome?"

-Archon
Yoda almighty
Alien
 
Posts: 151
Joined: Thu Aug 20, 2009 2:19 am
Location: somewhere in the void

Previous

Return to Nexuiz - Gameplay

Who is online

Users browsing this forum: No registered users and 1 guest