Changing Xhair Sprites

Renegade.Renegade. Join Date: 2003-01-15 Member: 12313Members, Constellation
<div class="IPBDescription">Exactly how is it done?</div> Well after having been Onos for exactly 6.4 seconds before I died due to a 5 time devour miss I decided "man wouldnt it be cool to have some dam crosshairs on devour". So I set off to the wonderful folder of nsp/sprites. Here I found simple text files that I thought would set things right. I opened up a few with crosshairs in them (I.E. weapon_sg.txt) and copied the crosshair lines (crosshair 320 xhairsg 0 0 64 64) into another weapon that didnt have them (I.E. weapon_devour.txt). Problem solved? no. When I went to test it out it was a disappointing failure. So does anyone know the true, surefire way of changing your xhairsprites and making new ones (besides downloading a custom package)?

Comments

  • Nemesis_ZeroNemesis_Zero Old European Join Date: 2002-01-25 Member: 75Members, Retired Developer, NS1 Playtester, Constellation
    <span style='color:white'>***Moved.***</span>

    Note by the way hat your crosshair might be prone to mistakes as the actual aim of the devour is usually below the screens middle.
  • ZeroByteZeroByte Join Date: 2002-11-01 Member: 3057Members
    Have you copied the crosshair line with 640 in it? I think that's the line HL uses for screen resolutions above 640*480. Also, I'm only guessing here, but I think the part of the lines, '0 0', could be used to offset the sprite from the center of the screen. First number should be horizontal offset and the second one should be the vertical offset. Hrmm, I might make a devour sprite my next project...
  • VerthandiVerthandi Join Date: 2002-12-12 Member: 10687Members, NS1 Playtester
    Nope, nothing in the text files actually offsets the crosshair's position on the screen. They define the top-left corner (first two columns) and the size from that position (last two columns) of the part of the sprite file to use as the crosshair.

    If you wanted to offset the crosshair, you'd have to modify the sprite file directly.
  • BobTheJanitorBobTheJanitor Join Date: 2003-12-10 Member: 24228Members, NS1 Playtester
    But then devour doesn't actually fire offset does it? From what I can tell it's still firing at the center of the screen, it's just that crooked horn that throws you off.
  • romanoromano Join Date: 2002-11-02 Member: 4296Members
    <!--c1--></div><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
    weapon   640 640aw2 0 135 170 45
    weapon_s  640 640aw2-s 0 135 170 45
    ammo   640 640hud7 96 96 24 24
    <!--c2--></td></tr></table><div class='postcolor'><!--ec2-->Default.


    <!--c1--></div><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 xhairsg 0 0 64 64
    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 xhairsg 0 0 64 64<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->What you probably did.


    <!--c1--></div><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 xhairsg 0 0 64 64
    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 xhairsg 0 0 64 64<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->What it needs to be. This will work and add the shotgun crosshair to devour. First line must be 8, not 6.
  • Renegade.Renegade. Join Date: 2003-01-15 Member: 12313Members, Constellation
    WOw! you guys know your stuff. I was tryin to do it the old fashion way:
    I got the shotgun crosshairs to work with the knife by accident so I was comparing Line for Line the knife txt with the devour txt and was wondering what that number did on the top (but did not dare change it!!!). Now I know thanks to you. Never will I miss eating another crouching HA. Welcome days of picking jetpackers out of midair! Thank you guys, I owe ya one!
    P.S. I reaaallly owe you one especially because I thought having a post in this forum was as good as posting in the off-topic! Its good to know people actually read posts in the barren land of the forums. Once again thanks!!!
  • Ashaman_JoeAshaman_Joe Join Date: 2003-11-11 Member: 22559Members, Constellation
    edited February 2004
    <!--QuoteBegin-romano^_^+Feb 25 2004, 02:56 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (romano^_^ @ Feb 25 2004, 02:56 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->Xhairfile
    <!--c2--></td></tr></table><div class='postcolor'><!--ec2-->Default.


    <!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->Xhair file<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->What you probably did.


    <!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->Xhairfile<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->What it needs to be.  This will work and add the shotgun crosshair to devour.  First line must be 8, not 6. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    I would really appreciate if you could explain why this works and what it does. I want to try my hand at making some crosshairs, and If I can't understand this file, it will be useless.

    [Edit] I assume that the number at top tells how many lines you have? So, 6 means it doesn't check for sprite or autoaim, 8 doesn't check for autoaim, and 10 checks everything? Then what do the others do?[/Edit]
Sign In or Register to comment.