Page 1 of 4

[minimod][1.4.1] Precise Crosshair

PostPosted: Wed May 22, 2019 10:26 am
by m8f


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.

Re: [minimod][1.1] Precise Crosshair

PostPosted: Wed May 22, 2019 11:37 am
by affandede
Can I kiss you?

Spoiler:

Re: [minimod][1.1] Precise Crosshair

PostPosted: Wed May 22, 2019 12:39 pm
by Agitatio
Brilliant! Reminds me of how crosshair worked in Serious Sam. Which development build would you recommend to use?

Re: [minimod][1.1] Precise Crosshair

PostPosted: Wed May 22, 2019 5:50 pm
by Matt
This is almost enough to make me want to think about turning off mouselook. :shock:

Re: [minimod][1.1] Precise Crosshair

PostPosted: Thu May 23, 2019 12:59 am
by SamVision
Oshitman this should be built-in to GZDoom.

Re: [minimod][1.1] Precise Crosshair

PostPosted: Thu May 23, 2019 2:31 am
by StroggVorbis
It's like in Serious Sam or the later Metal Gear Solid games :D

Re: [minimod][1.1] Precise Crosshair

PostPosted: Thu May 23, 2019 7:36 am
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.

Re: [minimod][1.1] Precise Crosshair

PostPosted: Thu May 23, 2019 8:26 am
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.

Re: [minimod][1.1] Precise Crosshair

PostPosted: Thu May 23, 2019 9:59 am
by slyrboi
Supa Delicious
Anyway what's the weapon mod?

Re: [minimod][1.1] Precise Crosshair

PostPosted: Thu May 23, 2019 10:07 am
by m8f
slyrboi wrote:Anyway what's the weapon mod?

viewtopic.php?f=43&t=60436#p1052527

Re: [minimod][1.1] Precise Crosshair

PostPosted: Thu May 23, 2019 11:10 am
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.

Re: [minimod][1.1] Precise Crosshair

PostPosted: Thu May 23, 2019 12:34 pm
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!

Re: [minimod][1.1] Precise Crosshair

PostPosted: Fri May 24, 2019 1:09 am
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. ^_^

Re: [minimod][1.1] Precise Crosshair

PostPosted: Sat May 25, 2019 3:43 pm
by [HotPocket]
Reminds me of Arma 2, I'm a bit surprised nobody made this sooner.

Re: [minimod][1.2] Precise Crosshair

PostPosted: Sun May 26, 2019 6:15 am
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.