Jump to content

A16 - Colored Crosshairs


herrpohl

Recommended Posts

hi

 

thanks for making this mod, it work great :)

 

Currently Im using the red one.

 

I have a suggestion:

I kind of like the original withe crosshair, it just that it is too invisible, to thin, thats why I use the red crosshair. But what if it possible to make the original white crosshair thicker/stronger so it is more visible? Is it possible?

 

Have fun :)

Link to comment
Share on other sites

hi

 

thanks for making this mod, it work great :)

 

Currently Im using the red one.

 

I have a suggestion:

I kind of like the original withe crosshair, it just that it is to invisible, to thin, thats why I use the red crosshair. But what if it possible to make the original white crosshair thicker/stronger so it is more visible? Is it possible?

 

Have fun :)

Thanks, I will look into making the crosshair thicker. Currently there are 8 lines drawn for the crosshair so it might be possible to add some more.

Link to comment
Share on other sites

  • 1 month later...

which one does work on 14.7? When I use Herrpohl's thicker x-hair, game does not load (the file in 'managed' does the trouble), just black screen with the game's mouse pointer (working), the other one (dnaJur's) i put the .dll and some simple cross .png (100x100 pixels)in the game root dir, game loads ok but does nothing, same old vanilla x-hairs o-O.

Link to comment
Share on other sites

which one does work on 14.7? When I use Herrpohl's thicker x-hair, game does not load (the file in 'managed' does the trouble), just black screen with the game's mouse pointer (working), the other one (dnaJur's) i put the .dll and some simple cross .png (100x100 pixels)in the game root dir, game loads ok but does nothing, same old vanilla x-hairs o-O.

It's for A15 (and should work with A15.1 too).

Link to comment
Share on other sites

  • 5 months later...
  • 1 month later...
Sorry I didn't have time to update it yet. Which version of the crosshair would you like to use?

Np, totally understand, take your time.

Im pretty sure I ended up using red crosshair, normal size, at least in most pics from A15 I see a red crosshair.

Link to comment
Share on other sites

  • 2 weeks later...

DDL Changes for Wider Crosshair

 

Sorry I didn't have time to update it yet. Which version of the crosshair would you like to use?

 

Thanks for your information on this. I have modified the color for 16.2 but if you could post the location for the wider cross hair lines I would greatly appreciate it.

 

Ed

Link to comment
Share on other sites

Thanks for your information on this. I have modified the color for 16.2 but if you could post the location for the wider cross hair lines I would greatly appreciate it.

 

Ed

I added additional lines to be drawn in the guiDrawCrosshair method (entityplayerlocal class):

 

int crosshairOpenArea = this.GetCrosshairOpenArea();
					int num2 = Screen.width / 2;
					int num3 = Screen.height / 2;
					int num4 = 30;
					Color black = Color.black;
					Color white = Color.white;
					black.a = this.UPU(_guiInGame) * this.weaponCrossHairAlpha;
					white.a = this.UPU(_guiInGame) * this.weaponCrossHairAlpha;
					GUIUtils.DrawLine(new Vector2((float)(num2 - crosshairOpenArea), (float)(num3 + 1)), new Vector2((float)(num2 - (crosshairOpenArea + num4)), (float)(num3 + 1)), black);
					GUIUtils.DrawLine(new Vector2((float)(num2 + crosshairOpenArea), (float)(num3 + 1)), new Vector2((float)(num2 + crosshairOpenArea + num4), (float)(num3 + 1)), black);
					GUIUtils.DrawLine(new Vector2((float)(num2 + 1), (float)(num3 - crosshairOpenArea)), new Vector2((float)(num2 + 1), (float)(num3 - (crosshairOpenArea + num4))), black);
					GUIUtils.DrawLine(new Vector2((float)(num2 + 1), (float)(num3 + crosshairOpenArea)), new Vector2((float)(num2 + 1), (float)(num3 + crosshairOpenArea + num4)), black);
					GUIUtils.DrawLine(new Vector2((float)(num2 + crosshairOpenArea), (float)num3), new Vector2((float)(num2 + crosshairOpenArea + num4), (float)num3), white);
					GUIUtils.DrawLine(new Vector2((float)num2, (float)(num3 - crosshairOpenArea)), new Vector2((float)num2, (float)(num3 - (crosshairOpenArea + num4))), white);
					GUIUtils.DrawLine(new Vector2((float)(num2 - crosshairOpenArea), (float)num3), new Vector2((float)(num2 - (crosshairOpenArea + num4)), (float)num3), white);
					GUIUtils.DrawLine(new Vector2((float)num2, (float)(num3 + crosshairOpenArea)), new Vector2((float)num2, (float)(num3 + crosshairOpenArea + num4)), white);
					GUIUtils.DrawLine(new Vector2((float)(num2 - crosshairOpenArea), (float)(num3 + 2)), new Vector2((float)(num2 - (crosshairOpenArea + num4)), (float)(num3 + 2)), black);
					GUIUtils.DrawLine(new Vector2((float)(num2 + crosshairOpenArea), (float)(num3 + 2)), new Vector2((float)(num2 + crosshairOpenArea + num4), (float)(num3 + 2)), black);
					GUIUtils.DrawLine(new Vector2((float)(num2 + 2), (float)(num3 - crosshairOpenArea)), new Vector2((float)(num2 + 2), (float)(num3 - (crosshairOpenArea + num4))), black);
					GUIUtils.DrawLine(new Vector2((float)(num2 + 2), (float)(num3 + crosshairOpenArea)), new Vector2((float)(num2 + 2), (float)(num3 + crosshairOpenArea + num4)), black);
					GUIUtils.DrawLine(new Vector2((float)(num2 - crosshairOpenArea), (float)(num3 + 3)), new Vector2((float)(num2 - (crosshairOpenArea + num4)), (float)(num3 + 3)), black);
					GUIUtils.DrawLine(new Vector2((float)(num2 + crosshairOpenArea), (float)(num3 + 3)), new Vector2((float)(num2 + crosshairOpenArea + num4), (float)(num3 + 3)), black);
					GUIUtils.DrawLine(new Vector2((float)(num2 + 3), (float)(num3 - crosshairOpenArea)), new Vector2((float)(num2 + 3), (float)(num3 - (crosshairOpenArea + num4))), black);
					GUIUtils.DrawLine(new Vector2((float)(num2 + 3), (float)(num3 + crosshairOpenArea)), new Vector2((float)(num2 + 3), (float)(num3 + crosshairOpenArea + num4)), black);
					GUIUtils.DrawLine(new Vector2((float)(num2 - crosshairOpenArea), (float)(num3 - 1)), new Vector2((float)(num2 - (crosshairOpenArea + num4)), (float)(num3 - 1)), white);
					GUIUtils.DrawLine(new Vector2((float)(num2 + crosshairOpenArea), (float)(num3 - 1)), new Vector2((float)(num2 + crosshairOpenArea + num4), (float)(num3 - 1)), white);
					GUIUtils.DrawLine(new Vector2((float)(num2 - 1), (float)(num3 - crosshairOpenArea)), new Vector2((float)(num2 - 1), (float)(num3 - (crosshairOpenArea + num4))), white);
					GUIUtils.DrawLine(new Vector2((float)(num2 - 1), (float)(num3 + crosshairOpenArea)), new Vector2((float)(num2 - 1), (float)(num3 + crosshairOpenArea + num4)), white);
					GUIUtils.DrawLine(new Vector2((float)(num2 - crosshairOpenArea), (float)(num3 - 2)), new Vector2((float)(num2 - (crosshairOpenArea + num4)), (float)(num3 - 2)), white);
					GUIUtils.DrawLine(new Vector2((float)(num2 + crosshairOpenArea), (float)(num3 - 2)), new Vector2((float)(num2 + crosshairOpenArea + num4), (float)(num3 - 2)), white);
					GUIUtils.DrawLine(new Vector2((float)(num2 - 2), (float)(num3 - crosshairOpenArea)), new Vector2((float)(num2 - 2), (float)(num3 - (crosshairOpenArea + num4))), white);
					GUIUtils.DrawLine(new Vector2((float)(num2 - 2), (float)(num3 + crosshairOpenArea)), new Vector2((float)(num2 - 2), (float)(num3 + crosshairOpenArea + num4)), white);

Link to comment
Share on other sites

Thanks for your information on this. I have modified the color for 16.2 but if you could post the location for the wider cross hair lines I would greatly appreciate it.

 

Ed

 

Hi

I see that you have manged to modify the crosshair color. In A15 I used this mod with the red crosshair, and I have been looking for something similar for A16. While waiting for herrpohl great crosshair mod it would be great if you could share your modifications, maybe make a new thread, so noobs like me can finally get a colored crosshair again :D

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...