Jump to content
View in the app

A better way to browse. Learn more.

The Armory

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Adding Crosshairs to your Knife (V2.7)

Featured Replies

No different from how you add them to previous versions, but I wanted to assure you that these instructions still work.

 

Open in Notepad, the following file:

 

SIERRAHalf-Lifefirearmsspritesweapon_knife.txt

 

for 2.7 the file looks like the following:

 

4weapon 320 320hud01 0 0 80 20weapon_s 320 320hud01 0 20 80 20weapon 640 640hud01 0 0 170 45weapon_s 640 640hud01_2 0 0 170 45Here is my file:

4weapon      320 320hud01	0	0    80  20weapon_s    320 320hud01	0	20   80  20crosshair   320 crosshairs 48  120  24  24weapon      640 640hud01	0   0   170  45weapon_s    640 640hud01_2 0	0   170  45crosshair   640 crosshairs 48  120  24  24

I added a :D to my crosshairs file that it uses.... if you just cut and paste mine, you will still not have crosshairs. Unfortunately, I do not have a site to host pictures, so you will have to be content with my ASCII graphics:

 

crosshair <screensize> <filename> <X> <Y> <dx> <dy>

<screensize> = screen ratio... we can see from above that we need to add entries for 320 and 640<filename> = obviously, this is the .spr file that contains the crosshair

 

<X> and <Y> = the beginning co-ordinates of the crosshair (in pixels)

 

<dx> and <dy>= the width (x) and length (y) of the crosshairs

 

How does this work for you? well lets take an example:

 

suppose you want to use the crosshair used for the MP5... this is the first crosshair in the crosshairs.spr file by default... which looks like this if you open it in a sprite viewer:

 

X + O

 

: * =

 

@ ! "

 

x U ^

 

| * ()

 

A B :D

 

Realize that each character above represents a different crosshair in that file. The MP5A5 uses the 'X' I have listed above (trust me). Looking at that file, the 'X' starts at 0,0 and goes to 24,24. Therefore we would add to lines to the file:

 

crosshair 320 crosshairs 0 0 24 24

 

crosshair 640 crosshairs 0 0 24 24

 

Hopefully this gets you going on adding your own knife crosshairs.

 

B-Cell

 

Edit: ease of readablility

  • Replies 27
  • Views 2.4k
  • Created
  • Last Reply

Top Posters In This Topic

  • Author

No different from how you add them to previous versions, but I wanted to assure you that these instructions still work.

 

Open in Notepad, the following file:

 

SIERRAHalf-Lifefirearmsspritesweapon_knife.txt

 

for 2.7 the file looks like the following:

 

4weapon 320 320hud01 0 0 80 20weapon_s 320 320hud01 0 20 80 20weapon 640 640hud01 0 0 170 45weapon_s 640 640hud01_2 0 0 170 45Here is my file:

4weapon      320 320hud01	0	0    80  20weapon_s    320 320hud01	0	20   80  20crosshair   320 crosshairs 48  120  24  24weapon      640 640hud01	0   0   170  45weapon_s    640 640hud01_2 0	0   170  45crosshair   640 crosshairs 48  120  24  24

I added a :D to my crosshairs file that it uses.... if you just cut and paste mine, you will still not have crosshairs. Unfortunately, I do not have a site to host pictures, so you will have to be content with my ASCII graphics:

 

crosshair <screensize> <filename> <X> <Y> <dx> <dy>

<screensize> = screen ratio... we can see from above that we need to add entries for 320 and 640<filename> = obviously, this is the .spr file that contains the crosshair

 

<X> and <Y> = the beginning co-ordinates of the crosshair (in pixels)

 

<dx> and <dy>= the width (x) and length (y) of the crosshairs

 

How does this work for you? well lets take an example:

 

suppose you want to use the crosshair used for the MP5... this is the first crosshair in the crosshairs.spr file by default... which looks like this if you open it in a sprite viewer:

 

X + O

 

: * =

 

@ ! "

 

x U ^

 

| * ()

 

A B :D

 

Realize that each character above represents a different crosshair in that file. The MP5A5 uses the 'X' I have listed above (trust me). Looking at that file, the 'X' starts at 0,0 and goes to 24,24. Therefore we would add to lines to the file:

 

crosshair 320 crosshairs 0 0 24 24

 

crosshair 640 crosshairs 0 0 24 24

 

Hopefully this gets you going on adding your own knife crosshairs.

 

B-Cell

 

Edit: ease of readablility

Why didnt you just say add crosshair 640 crosshairs 48 120 24 24to lines 3 & 6?
Why didnt you just say add crosshair 640 crosshairs 48 120 24 24to lines 3 & 6?
I tryed that but it still doesn't work. I made my file look exactly like yours. I have no knife crosshair and get weird HUD pics when I choose the knife. What am I doing wrong?
I tryed that but it still doesn't work. I made my file look exactly like yours. I have no knife crosshair and get weird HUD pics when I choose the knife. What am I doing wrong?
  • Author
-Me]Why didnt you just say add crosshair 640 crosshairs 48 120 24 24to lines 3 & 6?

Because you won't get a crosshair!!! :D read more carefully... :-PB-CellP.S. Slovike... because I still like to know where the center of my screen it at.
  • Author
-Me]Why didnt you just say add crosshair 640 crosshairs 48 120 24 24to lines 3 & 6?

Because you won't get a crosshair!!! :D read more carefully... :-PB-CellP.S. Slovike... because I still like to know where the center of my screen it at.
  • Author

Gudge:

 

I realized that I forgot 1 thing about the weapon_knife file:

 

When you open it up, there is a number on the first line... this tells H-L how many lines are in the file that it should read... so, since we are changing the number of lines to read, we need to change that number to match...

 

Change 4 to 6 in that file Gudge and the funky icons will disappear and you will have your crosshair.

 

Hero:

 

Yes, I will create an install file and give it to Gator to post on the website... give me a few days.

 

B-Cell.

  • Author

Gudge:

 

I realized that I forgot 1 thing about the weapon_knife file:

 

When you open it up, there is a number on the first line... this tells H-L how many lines are in the file that it should read... so, since we are changing the number of lines to read, we need to change that number to match...

 

Change 4 to 6 in that file Gudge and the funky icons will disappear and you will have your crosshair.

 

Hero:

 

Yes, I will create an install file and give it to Gator to post on the website... give me a few days.

 

B-Cell.

hmm i dotn think i want a knife crosshair itd make me stuper confused lol ill jsut stick to guessing where its gonna hit hehe
hmm i dotn think i want a knife crosshair itd make me stuper confused lol ill jsut stick to guessing where its gonna hit hehe
Bullet... honestly... its very easy to hit the head with ANY crosshair. just let him make the downloadable file and download it :(

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.