Crosshairs for 3.2
TheGuy
Join Date: 2003-08-09 Member: 19295Members, Constellation
<div class="IPBDescription">Crosshair format is changed a bit</div><a href="http://imageshack.us" target="_blank"><img src="http://img227.imageshack.us/img227/4607/xhairmwlk2.jpg" border="0" alt="IPB Image" /></a>
(Well it had a picture till they limited attachments to 30kb. what the heck. I'll link one in a sec)
This image is shown at 200% to show it clearly. it's not to scale.
Ok. this shows how a sprite is made. This is the sprite file for the set 2 of the machinegun crosshair. It's labled to show you how sprites and the text files relate to each other. But I'm only going to explain the 800x600 one(shown in green).
crosshair_2 800 xhairmw6 40 0 50 50
And now in simple terms
<unchangeable game name> <resolution> <spritefilename> <x origin> <y origin> <x length> <y length>
So looking at the picture. You see that it starts at 40,0 and has a length of 50. It's as simple as that.
If you want to add a crosshair for aliens that didn't have a crosshair in 3.1. you'd have to change the first line to 27(or how many lines after the first line there are) so it knows how many lines to read. The crosshair_0 entry isn't there for some weapons since in 3.1 there weren't any for them.
So you'd use crosshair_0 320 for all of the crosshairs from 3.1
This will make it use that crosshair as crosshair 0 for any resolution since the 3.1 crosshairs did not use specific entries for different resolutions.
<b>DO NOT EDIT YOUR OLD 3.1 TEXT FILES. CHANGE THE LINES IN THE NEW 3.2 ONES.</b>
<b>weapon_weaponname.txt are located in your sprites folder. Edit them but be sure to back up your original just in case you want to change it back.</b>
(Well it had a picture till they limited attachments to 30kb. what the heck. I'll link one in a sec)
This image is shown at 200% to show it clearly. it's not to scale.
Ok. this shows how a sprite is made. This is the sprite file for the set 2 of the machinegun crosshair. It's labled to show you how sprites and the text files relate to each other. But I'm only going to explain the 800x600 one(shown in green).
crosshair_2 800 xhairmw6 40 0 50 50
And now in simple terms
<unchangeable game name> <resolution> <spritefilename> <x origin> <y origin> <x length> <y length>
So looking at the picture. You see that it starts at 40,0 and has a length of 50. It's as simple as that.
If you want to add a crosshair for aliens that didn't have a crosshair in 3.1. you'd have to change the first line to 27(or how many lines after the first line there are) so it knows how many lines to read. The crosshair_0 entry isn't there for some weapons since in 3.1 there weren't any for them.
So you'd use crosshair_0 320 for all of the crosshairs from 3.1
This will make it use that crosshair as crosshair 0 for any resolution since the 3.1 crosshairs did not use specific entries for different resolutions.
<b>DO NOT EDIT YOUR OLD 3.1 TEXT FILES. CHANGE THE LINES IN THE NEW 3.2 ONES.</b>
<b>weapon_weaponname.txt are located in your sprites folder. Edit them but be sure to back up your original just in case you want to change it back.</b>
Comments
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
25
weapon 320 320w 80 80 80 20
weapon_s 320 320w-s 80 80 80 20
weapon 640 640aw3 0 0 170 45
weapon_s 640 640aw3-s 0 0 170 45
crosshair_0 320 xbparasite 0 0 64 64
crosshair_1 320 xhairaw1 0 0 40 40
crosshair_2 320 xhairaw2 0 0 40 40
crosshair_3 320 xhairmw3 0 0 40 40
crosshair_4 320 xhairmw4 0 0 40 40
crosshair_1 640 xhairaw1 0 0 40 40
crosshair_2 640 xhairaw2 0 0 40 40
crosshair_3 640 xhairmw3 0 0 40 40
crosshair_4 640 xhairmw4 0 0 40 40
crosshair_1 800 xhairaw1 40 0 50 50
crosshair_2 800 xhairaw2 40 0 50 50
crosshair_3 800 xhairmw3 40 0 50 50
crosshair_4 800 xhairmw4 40 0 50 50
crosshair_1 1024 xhairaw1 90 0 64 64
crosshair_2 1024 xhairaw2 90 0 64 64
crosshair_3 1024 xhairmw3 90 0 64 64
crosshair_4 1024 xhairmw4 90 0 64 64
crosshair_1 1280 xhairaw1 154 0 80 80
crosshair_2 1280 xhairaw2 154 0 80 80
crosshair_3 1280 xhairmw3 154 0 80 80
crosshair_4 1280 xhairmw4 154 0 80 80<!--c2--></div><!--ec2-->
EDIT
Well after some fiddling I think I got it right, here's what my skulkbite is like:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->26
weapon 320 320w 0 60 80 20
weapon_s 320 320w-s 0 60 80 20
ammo 320 640hud7 96 96 24 24
weapon 640 640aw1 0 45 170 45
weapon_s 640 640aw1-s 0 45 170 45
ammo 640 640hud7 96 96 24 24
crosshair_0 320 Shazbite 0 0 128 128
crosshair_1 320 xhairaw3 0 0 40 40
crosshair_2 320 xhairaw4 0 0 40 40
crosshair_3 320 xhairmw3 0 0 40 40
crosshair_4 320 xhairmw4 0 0 40 40
crosshair_1 640 xhairaw3 0 0 40 40
crosshair_2 640 xhairaw4 0 0 40 40
crosshair_3 640 xhairmw3 0 0 40 40
crosshair_4 640 xhairmw4 0 0 40 40
crosshair_1 800 xhairaw3 40 0 50 50
crosshair_2 800 xhairaw4 40 0 50 50
crosshair_3 800 xhairmw3 40 0 50 50
crosshair_4 800 xhairmw4 40 0 50 50
crosshair_1 1024 xhairaw3 90 0 64 64
crosshair_2 1024 xhairaw4 90 0 64 64
crosshair_3 1024 xhairmw3 90 0 64 64
crosshair_4 1024 xhairmw4 90 0 64 64
crosshair_1 1280 xhairaw3 154 0 80 80
crosshair_2 1280 xhairaw4 154 0 80 80
crosshair_3 1280 xhairmw3 154 0 80 80
crosshair_4 1280 xhairmw4 154 0 80 80<!--c2--></div><!--ec2-->
This will make it use that crosshair as crosshair 0 for any resolution since the 3.1 crosshairs did not use specific entries for different resolutions.
i'm also trying to get custom ones in but i kep failing ':<
uhm, i did a rewrite of shaz's xhair texts to overwrite crosshiar_4 if anyone is really desperate
<!--QuoteEnd--></div><!--QuoteEEnd-->
So... Any chance you could upload this for the rest of us who don't want to go through relabelling each .txt file manually? >_>
Fana Marine Crosshairs in 5 colors: <a href="http://www.aserogaming.net/filehost/775975" target="_blank">http://www.aserogaming.net/filehost/775975</a>
Marine Spread Crosshairs in 2 colors: <a href="http://www.aserogaming.net/filehost/696303" target="_blank">http://www.aserogaming.net/filehost/696303</a>
Shaz Alien Conversion Pack: <a href="http://www.aserogaming.net/filehost/65429" target="_blank">http://www.aserogaming.net/filehost/65429</a>
text files changed for all resolutions
cl_customcrosshair 4
I'm also noticing that in order to have widescreen or larger screen than 1280x1024 supported that you'd have to manually add in new lines and make your own sprites, yes?
Edit: also the colors are a little messed up for the crosshairs. I used to use the Shaz alien xhairs and when I downloaded the converted ones they're a little messed up. Could be because im on Win XP64, but I find that it usually isn't a problem like most people assume it would be.
Aside from having to turn of Gamma Ramp, the only 'issue' i have with NS is that some sprites don't have the black part transparent. Half Life, Counter Strike 1.6, TFC, Firearms all work fine so that's a strictly NS issue.