[Sprite] Custom crosshair pack


Capt. Darling
01-13-2004, 02:21 PM
This is the crosshair pack I'm using at the moment, nothing overly original (except maybe the 2nd row) but it does the trick. Notice that the script below automatically changes the value of vid_d3d according to what I think looks best for each crosshair, so if you already have a script for crosshair toggling you might consider changing it before trying these.

Download at the bottom, picture in next message.

-Instructions-

1) Extract customxhair.spr to:

Steam\SteamApps\yourmail@xxx.xxx\day of defeat\dod\sprites\

(create folder if necessary)

2) add to config.cfg:

bind "K" "xtog"

(with K being the key you want to use to toggle through the crosshairs)

3) add to userconfig.cfg (create file if necessary):

alias xtog "xtog1"
alias xtog0 "vid_d3d 1; cl_xhair_style 0; alias xtog xtog1"
alias xtog1 "vid_d3d 0; cl_xhair_style 1; alias xtog xtog2"
alias xtog2 "vid_d3d 0; cl_xhair_style 2; alias xtog xtog3"
alias xtog3 "vid_d3d 0; cl_xhair_style 3; alias xtog xtog4"
alias xtog4 "vid_d3d 0; cl_xhair_style 4; alias xtog xtog5"
alias xtog5 "vid_d3d 0; cl_xhair_style 5; alias xtog xtog6"
alias xtog6 "vid_d3d 0; cl_xhair_style 6; alias xtog xtog7"
alias xtog7 "vid_d3d 1; cl_xhair_style 7; alias xtog xtog8"
alias xtog8 "vid_d3d 0; cl_xhair_style 8; alias xtog xtog9"
alias xtog9 "vid_d3d 1; cl_xhair_style 9; alias xtog xtog10"
alias xtog10 "vid_d3d 1; cl_xhair_style 10; alias xtog xtog11"
alias xtog11 "vid_d3d 1; cl_xhair_style 11; alias xtog xtog12"
alias xtog12 "vid_d3d 1; cl_xhair_style 12; alias xtog xtog13"
alias xtog13 "vid_d3d 1; cl_xhair_style 13; alias xtog xtog14"
alias xtog14 "vid_d3d 1; cl_xhair_style 14; alias xtog xtog15"
alias xtog15 "vid_d3d 1; cl_xhair_style 15; alias xtog xtog16"
alias xtog16 "vid_d3d 0; cl_xhair_style 16; alias xtog xtog0"

(depending on personal preference you may change the values of vid_d3d between 0 and 1 in the script)

Capt. Darling
01-13-2004, 02:22 PM
Picture.

Billie|Joe
01-13-2004, 04:24 PM
i like

*uses*

ez
01-13-2004, 11:02 PM
make sure when you bind "K" that its a lower case "k".

Overlag
01-14-2004, 08:20 AM
i like! thanks :)

about the cfg file this goes in, does userconfig automaticaly load? what about autoexec?

Capt. Darling
01-14-2004, 11:48 AM
You're welcome. Anyway, your config.cfg file should have this line in it by default (usually at the end):

exec userconfig.cfg

I guess that's pretty self-explanatory. :) As far as autoexec goes, I'm not sure cos I've never used it but I guess that would work as well.

ez
01-14-2004, 01:29 PM
I just pasted it at the bottom of my config.cfg file and it works great. I like the lil' red circle w/ the dot (personal fav.):cool:

Capt. Darling
01-14-2004, 06:26 PM
Thanks, that's one of my favourites too. :) The larger version I use mostly for smgs.

By the way, adding the code to config.cfg will work the first time but then it gets deleted (at least that's what happens to me). You might want to check if it's still there before the next time you play.

Capt. Darling
01-16-2004, 01:30 AM
I've replaced the two large red and green crosses (which I never use anyway) with green versions of the dotted circles. There's a picture in the zip file below in case you're still wondering what I'm talking about. Minor changes to the toggling script apply (included in readme.txt).

paceman
01-20-2004, 10:44 AM
Woohoo!! Love these!

Thanks very much.

*BUMP*

Indiglo
02-01-2004, 09:15 PM
*edit* nm, my dagum userconfig.cfg saved as userconfig.cfg.txt :eek:

Loco
02-21-2004, 04:30 PM
Yeah, so I've bumped this thread a little.

Its a perk of being a moderator that I dont need to tell myself off for doing so.....;)

Anyhows, Capt Darling, i've downloaded the second zip pack that you posted and followed your instructions.

Pressing "k" during game doesnt do anything.

What am i missing here?

I use Mako Scripts, but I dont think they interfere with the keybind to the "k" key.

All I want is a red or blue dot crosshair........:)

=DD=Wolf Kahler
02-21-2004, 06:17 PM
I don't see anything wrong with his code right off the bat, but you can try what I use, since I don't have the D3D stuff. It might help.

Paste in Userconfig.cfg:

alias cross "style0"
alias style0 "cl_xhair_style 0; alias cross style1"
alias style1 "cl_xhair_style 1; alias cross style2"
alias style2 "cl_xhair_style 2; alias cross style3"
alias style3 "cl_xhair_style 3; alias cross style4"
alias style4 "cl_xhair_style 4; alias cross style5"
alias style5 "cl_xhair_style 5; alias cross style6"
alias style6 "cl_xhair_style 6; alias cross style7"
alias style7 "cl_xhair_style 7; alias cross style8"
alias style8 "cl_xhair_style 8; alias cross style9"
alias style9 "cl_xhair_style 9; alias cross style10"
alias style10 "cl_xhair_style 10; alias cross style11"
alias style11 "cl_xhair_style 11; alias cross style12"
alias style12 "cl_xhair_style 12; alias cross style13"
alias style13 "cl_xhair_style 13; alias cross style14"
alias style14 "cl_xhair_style 14; alias cross style15"
alias style15 "cl_xhair_style 15; alias cross style16"
alias style16 "cl_xhair_style 16; alias cross style0"

bind "x" "cross"

It works for me... Hope that helps.

Loco
02-22-2004, 12:07 PM
Thanks. One question though.

I've always left my Steam install at default, so forgive my n00bishness here, but I attempted to create a Userconfig.cfg, and it made it as a .txt file. It doesnt look right, thats where I've got all the code for the x-hair, so maybe as its a .txt file, thats whats causing the problem?

StaticDreams
02-22-2004, 12:45 PM
How do you add this to Config.cfg, When Config.cfg doesnt even open for me.

Please help me.

Loco
02-22-2004, 02:15 PM
Originally posted by StaticDreams
How do you add this to Config.cfg, When Config.cfg doesnt even open for me.

Please help me.

What happens when you double click it and try and open?

Is it telling you Windows cannot open this file, do you want to connect to the net or choose a program from a list?".....that sort of thing?

If it is, select choose a program from a list, and use notepad to open it.


I solved my problem, I just did what {CoR} ez did, and added the code to the bottom of my config.cfg, making sure the key bind was lower case, works fine.

Thanks a lot Capt.Darling!!!. Great crosshairs and toggle binds!!......GJ.:D

Capt. Darling
02-23-2004, 10:42 AM
Sorry about the late reply but that's what happens when you're busy relocating to a different time zone..

Anyway, I'm glad to hear the config.cfg solution works for you, I'm stuck with userconfig.cfg for some odd reason. As far as opening *.cfg files or renaming *.txt to *.cfg goes, if you have WinRAR that's the easiest solution. Just use it as you would use Windows Explorer: double click to open any file; right click and rename to be able to change the extension.

Hope this helps. :)

Caldbeck
02-25-2004, 09:18 AM
Originally posted by Locomotion
Thanks. One question though.

I've always left my Steam install at default, so forgive my n00bishness here, but I attempted to create a Userconfig.cfg, and it made it as a .txt file. It doesnt look right, thats where I've got all the code for the x-hair, so maybe as its a .txt file, thats whats causing the problem?

Easist way is to copy/paste your original Config.cfg (I think it'll be saved as Config(2).cfg. Then just rename and empty it :)

[907th] Kentz
02-25-2004, 09:35 AM
Capt. Darling, thanks alot for posting that. I've been waiting for something like this for quite awhile. I knew scripts like that were out there, but I didn't have much success in finding them. Thanks again for laying it out with easy to follow instructions. :)

Killaganz
03-04-2004, 07:35 PM
Originally posted by Caldbeck
Easist way is to copy/paste your original Config.cfg (I think it'll be saved as Config(2).cfg. Then just rename and empty it :)
Actually easiest way is to turn off "hide extensions for known filetypes" in your mapoptions of windows explorer, that way you can see the actual extension of the file and just rename it to userconfig.cfg.

[907th] Ensign
05-22-2004, 08:56 AM
I know its a while ago you posted, but i have a crosshair that i really enjoy. I was wondering if you could add it this in place of the smaller circles with dots in your original custom pack. This is a dynamic cross hair. I was also wondering if you could make a second one (inplace of one of the smaller circle with dots) a little bigger.

Or if its not possible, if you could tell me how to add it to cycle through it in the script.

Capt. Darling
05-22-2004, 10:38 AM
I could easily add it to the pack but it's not possible to make it dynamic (all crosshairs in this format are necessarily static). Do you still want me to do it? If you want to use it as a dynamic crosshair why don't you just replace the default one with it? You can still toggle through the dynamic and static ones in game.

[907th] Ensign
05-23-2004, 10:52 AM
Yeah i did end up replacing the default one. The first time i tried to replace the default one though, i cycle through my crosshairs and it ended going back to the default one. But its ok, it works now. I don't know what happen. Thanks alot though for the response. And it is a great pack man thanks.

Slosh
05-24-2004, 04:21 PM
I had this xhair pack working in 1.1 and 1.2 but I just formatted my HD and reinstalled everything and now I can't get this to work. Is there anything else I could try? I created userconfig.cfg, exec userconfig.cfg appears at the end of my config.cfg file. I added the bind in the config file but everytime I launch dod it is the stupid default xhair. Help me please I hate the default xhair!

Capt. Darling
05-25-2004, 09:04 AM
Assuming you've followed all the install instructions, my guess is that there's something wrong with the toggling script or with your userconfig.cfg file. Check if this wasn't saved as a .txt file (as in userconfig.cfg.txt). You might also want to toggle through the crosshairs manually in game, by typing cl_xhair_style 1 (and 2,3,4..) in the console. If this is working then you'll definitely have to double check your binds, script and userconfig.cfg file.

santtis
05-25-2004, 03:30 PM
I dont know why but I can't download this zip file. I try but all I get is a crosshair.txt. I dont know what is wrong because all other files in here work fine. :(

Slosh
05-25-2004, 04:39 PM
Thanks Capt. I have no idea what happened. It finally started working, I have no idea why, the only thing I did is made an autoexec.cfg and pasted the aliases in there. I don't know if the auotexec is even used anymore but I know in the good ol days of 1.3 you could exec commands from from there.

Capt. Darling
05-25-2004, 07:31 PM
Originally posted by santtis
I dont know why but I can't download this zip file. I try but all I get is a crosshair.txt. I dont know what is wrong because all other files in here work fine. :(

That's weird, I have no trouble downloading the file. Anyway, PM me with your email and I'll be happy to send it to you.

k-spec
06-06-2004, 07:25 PM
I downloaded your xhairs and I like them a LOT, but I'm having some problems with the lines that I'm supposed to add to the userconfig. I add them to the config and it works fine the first time I use it, but after I close DoD and open it up again the xhairs don't work. I looked back in the userconfig and all the added-in lines dissapear. Know why it does this and how I can fix it?

Capt. Darling
06-07-2004, 11:04 AM
I'm a bit confused. Did you add them to config.cfg or to userconfig.cfg? I had the same problem when I tried to add those lines to config but then I added them to userconfig and they've been working fine ever since (i.e. not going anywhere). If they are indeed disappearing from userconfig you might want to try to create autoexec.cfg and paste them there. I haven't tried that myself but it seems to work for others.

k-spec
06-07-2004, 10:02 PM
I added them to userconfig.cfg and while it didn't dissapear, it didn't work. After I tried adding it to autoexec and it worked perfectly, thanks.

harlanb
06-09-2004, 09:05 PM
Cpt Darling,
I followed your instructions for the setting up your crosshair. nothing happens When I press the k key.
If I look at the console right after pressing they k key, it says "unknown command cl_xhair_style".
Is this just for DOD 1.2, or am I missing something?
I also tried putting the commands that go in the userconfig.cfg file into the autoexec.bat file. nothing. I also ran exec config.cfg and exec userconfig.cfg from the console. No errors when I do that.
However, the crosshair still does not change.
Any Ideas?
Thanks
Harlanb

HappyFunBall
06-09-2004, 11:48 PM
This is by far the coolest thing to ever happen to my crossahirs...
THANK YOU, Cpt Darling!!! :D

For anyone who may need help, this is how I got em to work... even tho it's been said here before.

I had to copy my config file, paste it in my dod folder, re-name it userconfig, delete everything in it that was from config... then I put in all the info included in Cpt's first post, and I put the sprite file in my Sprites folder. And, to my amazement, it worked. :)

And again, this is simply the best thing to ever happen to my crosshairs.

Capt. Darling
06-10-2004, 12:50 PM
Harlanb,

Yeah, this pack only works with Steam, sorry (I'm guessing you're still using WON).

Oh, and thanks for the feedback, HappyFunBall, it's always good to know my work is appreciated. :)

By the way, I've been playing around a bit with this fella and the results are in this thread in the WIP forum:

http://www.dayofdefeat.net/forums/showthread.php?s=&threadid=34860

Everyone is free to drop by. ;)

harlanb
06-11-2004, 09:08 PM
Your right, I am still on WON. I guess its times to load steam.
Thanks for the reply.

Realism_Rover
02-08-2008, 11:55 PM
OWNED.

Ty very muchly i havent found a good crosshair pack like this for ages

Guyver
02-09-2008, 12:06 AM
Holy topic bump!!

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.