Crosshairs
Simple_Compound
Join Date: 2003-05-09 Member: 16180Members
<div class="IPBDescription">question</div> Well I want to modify and make a few crosshairs except I think there is more to it. I don't know what the values mean in the weapon_xxxx.txt files. Also I would like to make a crosshair for things that don't normally have a crosshair such as devour to make it alot more easier (as long as it is allowed). Could anyone explain to me how I would go about doing this and what the values mean? thanks in advance
Comments
left to right:
crosshair - denotes that this is the crosshair line, natch
640 - means this is the sprite that will be used at resolutions of 640x480 and above
xhairsg - filename of the sprite to be used
0, 0 - the top left coordinate of the crosshair in the sprite file
64, 64 - the bottom right coordinate
left to right:
crosshair - denotes that this is the crosshair line, natch
640 - means this is the sprite that will be used at resolutions of 640x480 and above
xhairsg - filename of the sprite to be used
0, 0 - the top left coordinate of the crosshair in the sprite file
64, 64 - the bottom right coordinate <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
also why is there two crosshair lines in the weapon_xxx.txts ?
and why isnt the coordinates the same when they are all in the direct middle of the screen?
<b>lmg</b><!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->10
weapon 320 320w 160 0 80 20
weapon_s 320 320w-s 160 0 80 20
ammo 320 640hud7 48 72 24 24
crosshair 320 xhairmg 0 0 64 64
autoaim 320 crosshairs 0 72 24 24
weapon 640 640mw2 0 180 170 45
weapon_s 640 640mw2-s 0 180 170 45
ammo 640 640hud7 48 72 24 24
crosshair 640 xhairmg 0 0 64 64
autoaim 640 crosshairs 0 72 24 24
<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
<b>spores</b><!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->10
weapon 320 320w 0 220 80 20
weapon_s 320 320w-s 0 220 80 20
ammo 320 640hud7 96 96 24 24
crosshair 320 xhairalien 0 0 128 128
autoaim 320 crosshairs 0 72 24 24
weapon 640 640mw2 0 90 170 45
weapon_s 640 640mw2-s 0 90 170 45
ammo 640 640hud7 96 96 24 24
crosshair 640 xhairalien 0 0 128 128
autoaim 640 crosshairs 0 72 24 24
<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
Two sets of values are needed, because the crosshairs that look good for high resolutions might be too big on lower resolutions.
"the top left coordinate", combined with the "bottom right coordinate" define the boundaries of the crosshair that will be shown onscreen.
<b>Taking 'spores' for example:</b>
In reality, the first two numbers (0,0) indicate the top left boundary of the crosshair, within xhairalien.spr.
<i>0,0 = top left corner
128,0 = top right corner
0,128 = bottom left corner
128,128 = bottom right corner</i>
The second two numbers (128,128) indicate how wide and how tall the whole crosshair is. This is relative to the position defined by the first two numbers.
Does this clear up the confusion? <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
You tend to aim with the top of your horn, sadly damn wrong.
Your marine must be in the middle of the screen or you miss it.
Maybe chganging the model would help.
People that aren't used to it can never manage to eat a Marine, because there's no crosshair, and the tip of the horn is misleading.
i think i should make the hole a bit bigger and centered
People that aren't used to it can never manage to eat a Marine, because there's no crosshair, and the tip of the horn is misleading. <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
where to f***ing aim when u wanna devour someone?? <!--emo&???--><img src='http://www.unknownworlds.com/forums/html/emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif'><!--endemo-->
got several tips like 'duck first' and 'aim at the legs' none of those f***ing worked, only 1 of 5 attempts worked <!--emo&:angry:--><img src='http://www.unknownworlds.com/forums/html/emoticons/mad.gif' border='0' style='vertical-align:middle' alt='mad.gif'><!--endemo--> [im not using onos any longer since they're much worse than fades or lerks w/o redemption <!--emo&:0--><img src='http://www.unknownworlds.com/forums/html/emoticons/wow.gif' border='0' style='vertical-align:middle' alt='wow.gif'><!--endemo--> ]
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->6
weapon 320 320w 0 20 80 20
weapon_s 320 320w-s 0 20 80 20
ammo 320 640hud7 96 96 24 24
crosshair 320 xdevour 0 0 80 80
weapon 640 640aw2 0 135 170 45
weapon_s 640 640aw2-s 0 135 170 45
ammo 640 640hud7 96 96 24 24
crosshair 640 xdevour 0 0 80 80
<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
but it didnt work. <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo-->
so anyone have any ideas how i can get this working?
...<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Aim the tip of your horn at the Marine's feet. You generally have to look down a little bit (as in, stare at the ground in front of you). Basically, keep the target near the center of the screen.
<!--QuoteBegin--Simple Compound+Sep 2 2003, 07:05 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Simple Compound @ Sep 2 2003, 07:05 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->update
so anyone have any ideas how i can get this working?<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Unfortunately, Devour is coded not to have a crosshair.
...<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Aim the tip of your horn at the Marine's feet. You generally have to look down a little bit (as in, stare at the ground in front of you). Basically, keep the target near the center of the screen.
<!--QuoteBegin--Simple Compound+Sep 2 2003, 07:05 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Simple Compound @ Sep 2 2003, 07:05 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->update
so anyone have any ideas how i can get this working?<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
Unfortunately, Devour is coded not to have a crosshair. <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
youre kidding me right?
how do you know of this?
I looked at the script you had for Devour, and everything is in good order (provided that the sprite is really <b>xdevour</b>.spr, and that the dimensions are really <b>80x80</b> pixels).
In fact, I just tried to make Devour use a crosshair, and it didn't work.
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->6
weapon 320 320w 0 20 80 20
weapon_s 320 320w-s 0 20 80 20
ammo 320 640hud7 96 96 24 24
crosshair 320 xdevour 0 0 80 80
weapon 640 640aw2 0 135 170 45
weapon_s 640 640aw2-s 0 135 170 45
ammo 640 640hud7 96 96 24 24
crosshair 640 xdevour 0 0 80 80
<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
but it didnt work. <!--emo&:(--><img src='http://www.natural-selection.org/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo--> <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
It should be:
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->8
weapon 320 320w 0 20 80 20
weapon_s 320 320w-s 0 20 80 20
ammo 320 640hud7 96 96 24 24
crosshair 320 xdevour 0 0 80 80
weapon 640 640aw2 0 135 170 45
weapon_s 640 640aw2-s 0 135 170 45
ammo 640 640hud7 96 96 24 24
crosshair 640 xdevour 0 0 80 80
<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
People that aren't used to it can never manage to eat a Marine, because there's no crosshair, and the tip of the horn is misleading. <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
where to f***ing aim when u wanna devour someone?? <!--emo&???--><img src='http://www.unknownworlds.com/forums/html/emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif'><!--endemo-->
got several tips like 'duck first' and 'aim at the legs' none of those f***ing worked, only 1 of 5 attempts worked <!--emo&:angry:--><img src='http://www.unknownworlds.com/forums/html/emoticons/mad.gif' border='0' style='vertical-align:middle' alt='mad.gif'><!--endemo--> [im not using onos any longer since they're much worse than fades or lerks w/o redemption <!--emo&:0--><img src='http://www.unknownworlds.com/forums/html/emoticons/wow.gif' border='0' style='vertical-align:middle' alt='wow.gif'><!--endemo--> ] <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
Now...do I laugh, or cry...
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->6
weapon 320 320w 0 20 80 20
weapon_s 320 320w-s 0 20 80 20
ammo 320 640hud7 96 96 24 24
crosshair 320 xdevour 0 0 80 80
weapon 640 640aw2 0 135 170 45
weapon_s 640 640aw2-s 0 135 170 45
ammo 640 640hud7 96 96 24 24
crosshair 640 xdevour 0 0 80 80
<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
but it didnt work. <!--emo&:(--><img src='http://www.natural-selection.org/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo--> <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
It should be:
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->8
weapon 320 320w 0 20 80 20
weapon_s 320 320w-s 0 20 80 20
ammo 320 640hud7 96 96 24 24
crosshair 320 xdevour 0 0 80 80
weapon 640 640aw2 0 135 170 45
weapon_s 640 640aw2-s 0 135 170 45
ammo 640 640hud7 96 96 24 24
crosshair 640 xdevour 0 0 80 80
<!--c2--></td></tr></table><span class='postcolor'><!--ec2--> <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
i dont understand why the 6 would change to a 8? well thats the only thing i noticed different <!--emo&::nerdy::--><img src='http://www.natural-selection.org/forums/html/emoticons/nerd.gif' border='0' style='vertical-align:middle' alt='nerd.gif'><!--endemo-->. its kind of late now ill have to test it tomorrow
Crouch, look straight ahead, devour. Rinse and repeat.
<!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->