[minimod][1.4.1] Precise Crosshair

Projects that alter game functions but do not include new maps belong here.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.

[minimod][1.4.1] Precise Crosshair

Postby m8f » Wed May 22, 2019 10:26 am



Download
Image
Source

An addon for GZDoom that makes a crosshair point to where you actually shoot* instead of the center of the screen.

*If your weapons shoots straight and not from an angle.

How to use

0. Required GZDoom version: 4.1.3 or higher.
1. HUD Options -> Crosshair must be OFF.
2. HUD Options -> Default crosshair must be not "None".


Features

* Shows where you shoot;
* Respects autoaim;
* Supports custom crosshairs;
* Respects GZDoom crosshair options*;
* Options to mirror crosshairs;
* Options to disable crosshair on slot 1 and when weapon is not ready;
* Option to show target health.

*Except "Enable Crosshair". This option will disable only the standard crosshair.

Credits

* Color calculation and crosshair code is ripped from GZDoom;
* Screen Positioning is done via LibEye by KeksDose.

Thanks

* GZDoom development team and Graf Zahl personally for making and maintaining GZDoom.
* Frax Boomer for the concept;
* Someone64 for feature suggestions;
* Agitatio for bug reporting;
* ShockwaveS08 for feature suggestions;
* vapidscum for bug reporting.

Spoiler: You may also like crosshair packs and addons by other authors:

Spoiler: Note for modders


This mod is a part of m8f's toolbox.
Last edited by m8f on Thu Jul 23, 2020 9:04 pm, edited 16 times in total.
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff

Re: [minimod][1.1] Precise Crosshair

Postby affandede » Wed May 22, 2019 11:37 am

Can I kiss you?

Spoiler:
User avatar
affandede
 
Joined: 11 Nov 2017

Re: [minimod][1.1] Precise Crosshair

Postby Agitatio » Wed May 22, 2019 12:39 pm

Brilliant! Reminds me of how crosshair worked in Serious Sam. Which development build would you recommend to use?
User avatar
Agitatio
 
Joined: 05 Sep 2011
Discord: Agitatio#4183
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: [minimod][1.1] Precise Crosshair

Postby Matt » Wed May 22, 2019 5:50 pm

This is almost enough to make me want to think about turning off mouselook. :shock:
User avatar
Matt
Putting the XD into *xdeath since 2007
 
Joined: 04 Jan 2004
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

Re: [minimod][1.1] Precise Crosshair

Postby SamVision » Thu May 23, 2019 12:59 am

Oshitman this should be built-in to GZDoom.
User avatar
SamVision
 
Joined: 13 Apr 2010
Location: Behind You

Re: [minimod][1.1] Precise Crosshair

Postby StroggVorbis » Thu May 23, 2019 2:31 am

It's like in Serious Sam or the later Metal Gear Solid games :D
User avatar
StroggVorbis
Donut eat me pls!
 
Joined: 08 Nov 2017
Location: Germany
Discord: StroggVorbis#2466
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: [minimod][1.1] Precise Crosshair

Postby m8f » Thu May 23, 2019 7:36 am

:D

Agitatio wrote:Brilliant! Reminds me of how crosshair worked in Serious Sam. Which development build would you recommend to use?
Thanks!

Probably the latest one. I didn't test them personally.
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff

Re: [minimod][1.1] Precise Crosshair

Postby Someone64 » Thu May 23, 2019 8:26 am

Are you ever planning on adding cross-mod implementation of Target Spy's crosshairs?

Also, I'm really glad this uses GZDoom's crosshair rather than making its own overlay or something. Works really well with silentzora's mods and Johnny Doom. I'd always wished something like this would exist and up until this mod, the only thing I've seen that does this is the optional custom crosshair function of Marrub's Lithium.
Someone64
 
Joined: 23 Feb 2016

Re: [minimod][1.1] Precise Crosshair

Postby slyrboi » Thu May 23, 2019 9:59 am

Supa Delicious
Anyway what's the weapon mod?
slyrboi
 
Joined: 01 Mar 2019

Re: [minimod][1.1] Precise Crosshair

Postby m8f » Thu May 23, 2019 10:07 am

slyrboi wrote:Anyway what's the weapon mod?

viewtopic.php?f=43&t=60436#p1052527
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff

Re: [minimod][1.1] Precise Crosshair

Postby TheRailgunner » Thu May 23, 2019 11:10 am

affandede wrote:Can I kiss you?

Spoiler:


Seconded. Someone ought to sticky a topic with a link to the m8f toolbox somewhere conspicuously on the Projects page. Now, if you'll excuse me, I'm gonna just sneak this into my Trooper autoload sequence...

EDIT: I feel like I made some sort of rookie mistake, but...

Image

Is there something I'm missing? If it helps, the crosshair is defined on a per-weapon basis, and switches between zoom and melee states. That said, the Precise Crosshair™ is as precise as is advertised, much to the dismay of my fixed reticles.
User avatar
TheRailgunner
Don't let fascism win. Not in the US, or anywhere in the world.
 
Joined: 09 Jul 2013

Re: [minimod][1.1] Precise Crosshair

Postby mrtaterz » Thu May 23, 2019 12:34 pm

TheRailgunner wrote:
affandede wrote:Can I kiss you?

Spoiler:


Seconded. Someone ought to sticky a topic with a link to the m8f toolbox somewhere conspicuously on the Projects page. Now, if you'll excuse me, I'm gonna just sneak this into my Trooper autoload sequence...

EDIT: I feel like I made some sort of rookie mistake, but...

Is there something I'm missing? If it helps, the crosshair is defined on a per-weapon basis, and switches between zoom and melee states. That said, the Precise Crosshair™ is as precise as is advertised, much to the dismay of my fixed reticles.


You should use a devbuild of GZDoom and disable your crosshair! Use the latest and best build!
User avatar
mrtaterz
aka GooseJelly
 
Joined: 15 Feb 2018
Discord: GooseJelly#8476
Twitch ID: thebigchez420
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: [minimod][1.1] Precise Crosshair

Postby Dwailing » Fri May 24, 2019 1:09 am

Using this gives me flashbacks to Jedi Knight 2: Jedi Outcast on top of fixing one of the biggest problems in GZDoom. Thank you so much for making this, it will have a permanent spot in my load order regardless of what I'm playing with. ^_^
Dwailing
 
Joined: 28 Jun 2017
Discord: 5896
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: ATI/AMD with Vulkan Support

Re: [minimod][1.1] Precise Crosshair

Postby [HotPocket] » Sat May 25, 2019 3:43 pm

Reminds me of Arma 2, I'm a bit surprised nobody made this sooner.
User avatar
[HotPocket]
 
Joined: 27 Jan 2018
Discord: [HotPocket]#1187

Re: [minimod][1.2] Precise Crosshair

Postby m8f » Sun May 26, 2019 6:15 am

SamVision wrote:this should be built-in to GZDoom.
This uses 3 hacks, and that's exactly 3 hacks more that would be accepted to the engine :D

Someone64 wrote:Are you ever planning on adding cross-mod implementation of Target Spy's crosshairs?
Yes. Actually, see the changelog for version 1.2.

Someone64 wrote:Also, I'm really glad this uses GZDoom's crosshair rather than making its own overlay or something.
I have to disappoint you, but it does use its own overlay. It's made to look exactly the same as the GZDoom crosshair, though.

Someone64 wrote:the only thing I've seen that does this is the optional custom crosshair function of Marrub's Lithium.
Laser Sight mod does basically the same, too.

The update is here (v1.2). Changes:

* added a cvar (pc_y) with Y position for other mods to read;
* added options to disable precise crosshair on slot 1 and when weapon is not ready;
* added options to flip the crosshair horizontally and vertically;
* added an on/off switch.
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff

Next

Return to Gameplay Mods

Who is online

Users browsing this forum: D3athStalker, Sir Strange and 13 guests