Crosshairs

Simple_CompoundSimple_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
«1

Comments

  • Simple_CompoundSimple_Compound Join Date: 2003-05-09 Member: 16180Members
    edited September 2003
    22 views and no replies? anyone? <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo-->
  • MausMaus Join Date: 2002-11-03 Member: 5599Members
    edited September 2003
    <!--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-->crosshair  640 xhairsg 0 0 64 64<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->

    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
  • Simple_CompoundSimple_Compound Join Date: 2003-05-09 Member: 16180Members
    thank you. now i just need to know how i would go about making a crosshair for something that doesnt normally have one.
  • El_DiablosEl_Diablos Join Date: 2002-11-03 Member: 5666Members
    Sorry, I don't think you can do that. It would have to be coded in. Otherwise it would be like cheating (ex. the AWP in CS)
  • Simple_CompoundSimple_Compound Join Date: 2003-05-09 Member: 16180Members
    i once downloaded this crosshair set that had a crosshair for welder. so it is possible but is that really cheating?
  • VerthandiVerthandi Join Date: 2002-12-12 Member: 10687Members, NS1 Playtester
    From what I tried in 1.x, the Knife, Welder, and Healing Spray can all have crosshairs, even though they do not come packaged with one. I'm not too sure about 2.x, though.
  • Simple_CompoundSimple_Compound Join Date: 2003-05-09 Member: 16180Members
    edited September 2003
    <!--QuoteBegin--Maus+Sep 1 2003, 10:10 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Maus @ Sep 1 2003, 10:10 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--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-->crosshair  640 xhairsg 0 0 64 64<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->

    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-->
  • VerthandiVerthandi Join Date: 2002-12-12 Member: 10687Members, NS1 Playtester
    edited September 2003
    Everything is doubled, because this allows two different sets of configurations. (the 320s are for resolutions below 640x480, while the 640s are for all resolutions 640x480 or higher).
    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-->
  • nthngnsdnthngnsd Join Date: 2003-07-26 Member: 18442Members
    i'd like a crosshair for leaping (just to distinguish between leaping and biting) but that didn't work when i tried <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo-->
  • OlljOllj our themepark-stalking nightmare Fade Join Date: 2002-12-12 Member: 10696Members
    The onos having no crosshair is confusing.

    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.
  • VerthandiVerthandi Join Date: 2002-12-12 Member: 10687Members, NS1 Playtester
    <b>Perfect example: Devour</b>
    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.
  • Simple_CompoundSimple_Compound Join Date: 2003-05-09 Member: 16180Members
    correct. i am aiming towards making a hamburger crosshair for devour <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
  • Simple_CompoundSimple_Compound Join Date: 2003-05-09 Member: 16180Members
    edited September 2003
    how this?
    i think i should make the hole a bit bigger and centered
  • nthngnsdnthngnsd Join Date: 2003-07-26 Member: 18442Members
    <!--QuoteBegin--Verthandi+Sep 2 2003, 05:03 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Verthandi @ Sep 2 2003, 05:03 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <b>Perfect example: Devour</b>
    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--> ]
  • KaMiKaZe1KaMiKaZe1 Join Date: 2002-11-18 Member: 9196Members
    Aim the center of your screen at them.
  • Simple_CompoundSimple_Compound Join Date: 2003-05-09 Member: 16180Members
    well i made a size 80x80 crosshair for devour. can anyone tell me what i have to type in the weapon_devour.txt? i tried this

    <!--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-->
  • QuaunautQuaunaut The longest seven days in history... Join Date: 2003-03-21 Member: 14759Members, Constellation, Reinforced - Shadow
    Make that hamburger a sprite. Please. And hurry. Because once 2.1 is out, I can't use any(going into CAL...but I'll have a side file anyway[just switch one in and out for when scrims are on])
  • Simple_CompoundSimple_Compound Join Date: 2003-05-09 Member: 16180Members
    I did. a better version of it. im trying to get it to actually show up on screen though <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
  • Simple_CompoundSimple_Compound Join Date: 2003-05-09 Member: 16180Members
    edited September 2003
    update

    so anyone have any ideas how i can get this working?
  • Simple_CompoundSimple_Compound Join Date: 2003-05-09 Member: 16180Members
    bump <!--emo&???--><img src='http://www.unknownworlds.com/forums/html/emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif'><!--endemo-->
  • VerthandiVerthandi Join Date: 2002-12-12 Member: 10687Members, NS1 Playtester
    <!--QuoteBegin--nthngnsd+Sep 2 2003, 01:50 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (nthngnsd @ Sep 2 2003, 01:50 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->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-->
    ...<!--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.
  • Simple_CompoundSimple_Compound Join Date: 2003-05-09 Member: 16180Members
    edited September 2003
    <!--QuoteBegin--Verthandi+Sep 3 2003, 01:56 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Verthandi @ Sep 3 2003, 01:56 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin--nthngnsd+Sep 2 2003, 01:50 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (nthngnsd @ Sep 2 2003, 01:50 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->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-->
    ...<!--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?
  • VerthandiVerthandi Join Date: 2002-12-12 Member: 10687Members, NS1 Playtester
    No, unfortunately (again), I'm not kidding you.

    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.
  • Simple_CompoundSimple_Compound Join Date: 2003-05-09 Member: 16180Members
    darnit. easy devour: goodbye <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo-->
  • VerthandiVerthandi Join Date: 2002-12-12 Member: 10687Members, NS1 Playtester
    edited September 2003
    Don't despair, follow the above tips on 'Devouring Marines Made Easy'.
  • CheesyPetezaCheesyPeteza Join Date: 2002-11-24 Member: 9784Members, NS1 Playtester, Constellation
    edited September 2003
    <!--QuoteBegin--Simple Compound+Sep 3 2003, 12:58 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Simple Compound @ Sep 3 2003, 12:58 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> well i made a size 80x80 crosshair for devour.  can anyone tell me what i have to type in the weapon_devour.txt?  i tried this

    <!--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-->
  • CommunistWithAGunCommunistWithAGun Local Propaganda Guy Join Date: 2003-04-30 Member: 15953Members
    <!--QuoteBegin--nthngnsd+Sep 2 2003, 01:50 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (nthngnsd @ Sep 2 2003, 01:50 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin--Verthandi+Sep 2 2003, 05:03 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Verthandi @ Sep 2 2003, 05:03 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <b>Perfect example:  Devour</b>
    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...
  • Simple_CompoundSimple_Compound Join Date: 2003-05-09 Member: 16180Members
    edited September 2003
    <!--QuoteBegin--CheesyPeteza+Sep 3 2003, 02:41 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (CheesyPeteza @ Sep 3 2003, 02:41 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin--Simple Compound+Sep 3 2003, 12:58 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Simple Compound @ Sep 3 2003, 12:58 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> well i made a size 80x80 crosshair for devour.  can anyone tell me what i have to type in the weapon_devour.txt?  i tried this

    <!--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
  • armgimpeharmgimpeh Join Date: 2002-12-14 Member: 10783Members
    Devour:

    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-->
  • VerthandiVerthandi Join Date: 2002-12-12 Member: 10687Members, NS1 Playtester
    Well, the crouch method works well, if there's only one or two enemies in the area. If there's more, the crouch method is too cumbersome to quickly eat a Marine and escape.
Sign In or Register to comment.