Page 1 of 2

Crosshair without aim line

Posted: Fri Apr 24, 2020 8:38 am
by Wesley
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?

Re: Crosshair without aim line

Posted: Sun Apr 26, 2020 7:03 pm
by NilsZ
It's not possible to disable the aim line without modding the game.

Re: Crosshair without aim line

Posted: Mon Apr 27, 2020 8:20 pm
by mr.47
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);
}
}

Re: Crosshair without aim line

Posted: Thu May 07, 2020 6:37 am
by Jason
Hrmmm... gets me thinking, what is possible.

Re: Crosshair without aim line

Posted: Wed Jun 03, 2020 2:33 am
by Wesley
I'm not bothered by it then, I just thought I was missing the setting somehow. It's an odd feature.

Re: Crosshair without aim line

Posted: Wed Jun 03, 2020 12:46 pm
by mr.47
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. :)

Re: Crosshair without aim line

Posted: Thu Jun 04, 2020 7:19 am
by Stern
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... ;)

Re: Crosshair without aim line

Posted: Thu Jun 04, 2020 9:15 am
by NilsZ
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.

Re: Crosshair without aim line

Posted: Thu Jun 04, 2020 9:36 am
by p.jakub88
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?

Re: Crosshair without aim line

Posted: Thu Jun 04, 2020 11:10 am
by Stern
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.

Re: Crosshair without aim line

Posted: Thu Jun 04, 2020 11:15 am
by p.jakub88
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.

Re: Crosshair without aim line

Posted: Thu Jun 04, 2020 12:01 pm
by mr.47
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

Re: Crosshair without aim line

Posted: Thu Jun 04, 2020 12:01 pm
by mr.47
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

Re: Crosshair without aim line

Posted: Thu Jun 04, 2020 12:04 pm
by mr.47
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

Re: Crosshair without aim line

Posted: Thu Jun 04, 2020 4:48 pm
by NilsZ
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.