Crosshair without aim line
Crosshair without aim line
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
It's not possible to disable the aim line without modding the game.
Re: Crosshair without aim line
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);
}
}
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);
}
}
- Jason
- Administrator
- Posts: 1895
- Joined: Thu Sep 02, 2004 7:26 pm
- Location: Perth, Australia
- Contact:
Re: Crosshair without aim line
Hrmmm... gets me thinking, what is possible.
Re: Crosshair without aim line
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
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
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...
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 !
Re: Crosshair without aim line
This was good for counter strike
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
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.
Re: Crosshair without aim line
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.
Tank cannons and mounted weapons in HD2 are center-oriented.
Click Here !
Re: Crosshair without aim line
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.
Re: Crosshair without aim line
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
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
This is the code for the crosshair 2d in the middle of the screen thank me later Nilszmr.47 wrote: ↑Mon Apr 27, 2020 8:20 pmwell 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);
}
}
Who is online
Users browsing this forum: No registered users and 16 guests