Crosshair without aim line

This is for all Hidden & Dangerous Deluxe talk including mission strategies, setting up multiplayer games and technical support.
Wesley
Sergeant
Posts: 66
Joined: Fri Jun 30, 2006 12:20 pm

Crosshair without aim line

Unread post by Wesley » Fri Apr 24, 2020 8:38 am

For me, in third person, the crosshair won't appear ever unless the aim line is turned on. I don't want an aim line. What do I do?

User avatar
NilsZ
Captain
Posts: 255
Joined: Sun Dec 29, 2013 8:19 pm
Location: Germany

Re: Crosshair without aim line

Unread post by NilsZ » Sun Apr 26, 2020 7:03 pm

It's not possible to disable the aim line without modding the game.

User avatar
mr.47
Lieutenant
Posts: 105
Joined: Sun Jan 26, 2020 11:41 am
Contact:

Re: Crosshair without aim line

Unread post by mr.47 » Mon Apr 27, 2020 8:20 pm

well basiclly every game engine got a value and code to active aiming system in the for example UPROPERTY(EditDefaultsOnly)
UTexture2D* CrosshairTexture;
// Primary draw call for the HUD.
virtual void DrawHUD() override;
void AFPSHUD::DrawHUD()
{
Super::DrawHUD();

if (CrosshairTexture)
{
// Find the center of our canvas.
FVector2D Center(Canvas->ClipX * 0.5f, Canvas->ClipY * 0.5f);

// Offset by half of the texture's dimensions so that the center of the texture aligns with the center of the Canvas.
FVector2D CrossHairDrawPosition(Center.X - (CrosshairTexture->GetSurfaceWidth() * 0.5f), Center.Y - (CrosshairTexture->GetSurfaceHeight() * 0.5f));

// Draw the crosshair at the centerpoint.
FCanvasTileItem TileItem(CrossHairDrawPosition, CrosshairTexture->Resource, FLinearColor::White);
TileItem.BlendMode = SE_BLEND_Translucent;
Canvas->DrawItem(TileItem);
}
}

User avatar
Jason
Administrator
Posts: 1881
Joined: Thu Sep 02, 2004 7:26 pm
Location: Perth, Australia
Contact:

Re: Crosshair without aim line

Unread post by Jason » Thu May 07, 2020 6:37 am

Hrmmm... gets me thinking, what is possible.
A new day, a new beginning

Fixing H&D2 Multiplayer tutorial

Wesley
Sergeant
Posts: 66
Joined: Fri Jun 30, 2006 12:20 pm

Re: Crosshair without aim line

Unread post by Wesley » Wed Jun 03, 2020 2:33 am

I'm not bothered by it then, I just thought I was missing the setting somehow. It's an odd feature.

User avatar
mr.47
Lieutenant
Posts: 105
Joined: Sun Jan 26, 2020 11:41 am
Contact:

Re: Crosshair without aim line

Unread post by mr.47 » Wed Jun 03, 2020 12:46 pm

Sooner we the hidden squad will re new things in the game and we might add cross instead of aim line because we got the source code of the game. :)

Stern
Sergeant
Posts: 83
Joined: Sun Nov 09, 2014 11:44 am

Re: Crosshair without aim line

Unread post by Stern » Thu Jun 04, 2020 7:19 am

A little tip of the day:
Take a very small piece of white tape, glue it in the middle of your screen and you'll have permanent crosshair in every fullscreen game... ;)
Click Here !

User avatar
NilsZ
Captain
Posts: 255
Joined: Sun Dec 29, 2013 8:19 pm
Location: Germany

Re: Crosshair without aim line

Unread post by NilsZ » Thu Jun 04, 2020 9:15 am

Stern wrote:
Thu Jun 04, 2020 7:19 am
A little tip of the day:
Take a very small piece of white tape, glue it in the middle of your screen and you'll have permanent crosshair in every fullscreen game... ;)
This was good for counter strike funny01
but in 3rd person aiming the cross is not in the middle.
The source code is also not needed to deactivate it. It can be deactivated using the editor.
If no body likes the aim line i can disable it in my mod.

User avatar
p.jakub88
SAS Soldier
Posts: 1859
Joined: Fri Dec 30, 2011 1:48 pm
Location: Poland

Re: Crosshair without aim line

Unread post by p.jakub88 » Thu Jun 04, 2020 9:36 am

NilsZ wrote:
Thu Jun 04, 2020 9:15 am
Stern wrote:
Thu Jun 04, 2020 7:19 am
A little tip of the day:
Take a very small piece of white tape, glue it in the middle of your screen and you'll have permanent crosshair in every fullscreen game... ;)
This was good for counter strike funny01
but in 3rd person aiming the cross is not in the middle.
The source code is also not needed to deactivate it. It can be deactivated using the editor.
If no body likes the aim line i can disable it in my mod.
And how you would use mounted weapons then? Spray and pray?
Last edited by p.jakub88 on Thu Jun 04, 2020 12:46 pm, edited 1 time in total.
"Who Dares Wins" - SAS motto.

Stern
Sergeant
Posts: 83
Joined: Sun Nov 09, 2014 11:44 am

Re: Crosshair without aim line

Unread post by Stern » Thu Jun 04, 2020 11:10 am

I dont know...i never played H&D, but it works well in H&D2 ;)
Tank cannons and mounted weapons in HD2 are center-oriented.
Click Here !

User avatar
p.jakub88
SAS Soldier
Posts: 1859
Joined: Fri Dec 30, 2011 1:48 pm
Location: Poland

Re: Crosshair without aim line

Unread post by p.jakub88 » Thu Jun 04, 2020 11:15 am

Stern wrote:
Thu Jun 04, 2020 11:10 am
I dont know...i never played H&D, but it works well in H&D2 ;)
Tank cannons and mounted weapons in HD2 are center-oriented.
I ran some quick test in H&D Deluxe with mounted MG on a halftrack - without aim line it is really hard to aim precisely since there are no iron sights. Most weapons in H&D 2 have iron sights.
"Who Dares Wins" - SAS motto.

User avatar
mr.47
Lieutenant
Posts: 105
Joined: Sun Jan 26, 2020 11:41 am
Contact:

Re: Crosshair without aim line

Unread post by mr.47 » Thu Jun 04, 2020 12:01 pm

Hey Nilsz can use my codes that I have written a while ago and with this codes it will show a crosshair in the middle of the screen and act like h&d2 100% sureness it will work

User avatar
mr.47
Lieutenant
Posts: 105
Joined: Sun Jan 26, 2020 11:41 am
Contact:

Re: Crosshair without aim line

Unread post by mr.47 » Thu Jun 04, 2020 12:01 pm

Hey Nilsz can use my codes that I have written a while ago and with this codes it will show a crosshair in the middle of the screen and act like h&d2 100% sureness it will work

User avatar
mr.47
Lieutenant
Posts: 105
Joined: Sun Jan 26, 2020 11:41 am
Contact:

Re: Crosshair without aim line

Unread post by mr.47 » Thu Jun 04, 2020 12:04 pm

mr.47 wrote:
Mon Apr 27, 2020 8:20 pm
well basiclly every game engine got a value and code to active aiming system in the for example UPROPERTY(EditDefaultsOnly)
UTexture2D* CrosshairTexture;
// Primary draw call for the HUD.
virtual void DrawHUD() override;
void AFPSHUD::DrawHUD()
{
Super::DrawHUD();

if (CrosshairTexture)
{
// Find the center of our canvas.
FVector2D Center(Canvas->ClipX * 0.5f, Canvas->ClipY * 0.5f);

// Offset by half of the texture's dimensions so that the center of the texture aligns with the center of the Canvas.
FVector2D CrossHairDrawPosition(Center.X - (CrosshairTexture->GetSurfaceWidth() * 0.5f), Center.Y - (CrosshairTexture->GetSurfaceHeight() * 0.5f));

// Draw the crosshair at the centerpoint.
FCanvasTileItem TileItem(CrossHairDrawPosition, CrosshairTexture->Resource, FLinearColor::White);
TileItem.BlendMode = SE_BLEND_Translucent;
Canvas->DrawItem(TileItem);
}
}
This is the code for the crosshair 2d in the middle of the screen thank me later Nilsz

User avatar
NilsZ
Captain
Posts: 255
Joined: Sun Dec 29, 2013 8:19 pm
Location: Germany

Re: Crosshair without aim line

Unread post by NilsZ » Thu Jun 04, 2020 4:48 pm

p.jakub88 wrote:
Thu Jun 04, 2020 9:36 am
And how you would use mounted weapons then? Spray and pray?
The cross is still visible, only the aim line is invisible.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest