[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 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.
User avatar
m8f
 
 
Posts: 1446
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)

[minimod][1.4.1] Precise Crosshair

Post by m8f »



Download
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 Mon Aug 08, 2022 6:34 am, edited 18 times in total.
User avatar
affandede
Posts: 118
Joined: Sat Nov 11, 2017 7:52 am

Re: [minimod][1.1] Precise Crosshair

Post by affandede »

Can I kiss you?
Spoiler:
User avatar
Agitatio
Posts: 242
Joined: Mon Sep 05, 2011 10:07 am
Graphics Processor: nVidia with Vulkan support

Re: [minimod][1.1] Precise Crosshair

Post by Agitatio »

Brilliant! Reminds me of how crosshair worked in Serious Sam. Which development build would you recommend to use?
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

Re: [minimod][1.1] Precise Crosshair

Post by Matt »

This is almost enough to make me want to think about turning off mouselook. :shock:
User avatar
SamVision
Posts: 2425
Joined: Tue Apr 13, 2010 4:47 pm
Location: Behind You

Re: [minimod][1.1] Precise Crosshair

Post by SamVision »

Oshitman this should be built-in to GZDoom.
User avatar
StroggVorbis
Posts: 866
Joined: Wed Nov 08, 2017 4:23 pm
Graphics Processor: nVidia with Vulkan support
Location: Germany

Re: [minimod][1.1] Precise Crosshair

Post by StroggVorbis »

It's like in Serious Sam or the later Metal Gear Solid games :D
User avatar
m8f
 
 
Posts: 1446
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)

Re: [minimod][1.1] Precise Crosshair

Post by m8f »

: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.
Someone64
Posts: 419
Joined: Tue Feb 23, 2016 11:59 am

Re: [minimod][1.1] Precise Crosshair

Post by Someone64 »

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.
slyrboi
Posts: 50
Joined: Fri Mar 01, 2019 2:30 am

Re: [minimod][1.1] Precise Crosshair

Post by slyrboi »

Supa Delicious
Anyway what's the weapon mod?
User avatar
m8f
 
 
Posts: 1446
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)

Re: [minimod][1.1] Precise Crosshair

Post by m8f »

slyrboi wrote:Anyway what's the weapon mod?
viewtopic.php?f=43&t=60436#p1052527
User avatar
TheRailgunner
Posts: 1556
Joined: Mon Jul 08, 2013 10:08 pm

Re: [minimod][1.1] Precise Crosshair

Post by TheRailgunner »

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
mrtaterz
Posts: 236
Joined: Wed Feb 14, 2018 8:47 pm
Graphics Processor: nVidia with Vulkan support

Re: [minimod][1.1] Precise Crosshair

Post by mrtaterz »

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!
Dwailing
Posts: 72
Joined: Wed Jun 28, 2017 3:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: [minimod][1.1] Precise Crosshair

Post by Dwailing »

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. ^_^
User avatar
[HotPocket]
Posts: 8
Joined: Fri Jan 26, 2018 8:42 pm

Re: [minimod][1.1] Precise Crosshair

Post by [HotPocket] »

Reminds me of Arma 2, I'm a bit surprised nobody made this sooner.
User avatar
m8f
 
 
Posts: 1446
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)

Re: [minimod][1.2] Precise Crosshair

Post by m8f »

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.

Return to “Gameplay Mods”