crosshair script?

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators

crosshair script?

Postby HaVoC » Mon Aug 04, 2008 11:54 am

when i played q3,i had a script i made..not that i remember how to make them anymore but for each weapon i had a diffrent crosshair,size sens and zoom when i selected a weapon. is there a script out there or can be made to nexiuz ? if so can someone help me? oh and a diffrent fov for each weapon. once i selected say the sg,i would have automatically a diffrent fov,sens,crosshair and size,then select the sniper,and have automatically diffrent settings for that once i picked it. im trying to find the best config for me to this game. and what all do i need to make an autoexec and where does it go? im looking to find a good weapon change script for my style of playing. i have a diffrent keyboard set up to my playing..i barely use any keys for weapons..mainly mouse and right side num keys. thanks if u can help me with these issues :)
HaVoC
Member
 
Posts: 14
Joined: Sat Aug 02, 2008 8:42 am

Postby Xeno » Mon Aug 04, 2008 1:04 pm

That's possible and not too difficult.

First, the autoexec.cfg file goes in the data directory where you find your config.cfg file. Just create a plain text file, make sure the encoding is iso-8859-15, and save it there.

For each weapon, create an alias to set the fov, crosshair, crosshair-size, and sensitivity, e.g.

Code: Select all
alias nex_mode "fov 70; crosshair 4; crosshair_size 0.8; sensitivity 5; impulse 7"
alias rl_mode "fov 100; crosshair 2; crosshair_size 1; sensitivity 7; impulse 9"


Bind those to the matching weapon keys.
Code: Select all
bind 7 nex_mode
bind 9 rl_mode


The "impulse x" selects the weapon. The only problem with this way of doing it is that when you auto-switch weapons (either on pick-up if set, or when you run out of ammo), you'll have to update the mode manually.
Xeno
peregrinus originis incognitae
 
Posts: 396
Joined: Wed Nov 15, 2006 10:42 pm

Postby HaVoC » Mon Aug 04, 2008 3:06 pm

thanks alot:) gonna try this and experiment around with some settings. what is iso-8859-15? i made cfg's with notepad and saved as cfg .
HaVoC
Member
 
Posts: 14
Joined: Sat Aug 02, 2008 8:42 am

Postby Xeno » Mon Aug 04, 2008 4:41 pm

HaVoC wrote:thanks alot:) gonna try this and experiment around with some settings. what is iso-8859-15? i made cfg's with notepad and saved as cfg .


If you're on Windows then you don't have to worry about it. Some systems use a different type of encoding which means that what you see in an editor and what Nexuiz sees when it reads the file can be different. It's really just a different way to arrange the "1"s and "0"s on the computer. ;)
Xeno
peregrinus originis incognitae
 
Posts: 396
Joined: Wed Nov 15, 2006 10:42 pm


Return to Nexuiz - General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron