Unfortunately, I don’t know the way to read the class field without requiring loading this class.
GetPropertyText works locally, but returns an empty string on the server. Therefore, if there is zero, I will set 550.
Code: Select all
if (Inv.isA('SBHealingGun') || Inv.isA('HealingGun')) {
heal = int(Inv.GetPropertyText("MaxHealth"));
if (heal == 0) heal = 550;
I try watch value via editactor and there default "500" (but GetPropertyText return empty string). So I think this value not replicate to client so can not be accessed from client side.
Crosshair code very simple:
Code: Select all
C.Font = C.SmallFont; // C is Canvas
C.DrawColor.R = 0; C.DrawColor.G = 0; C.DrawColor.B = 0;
C.SetPos(C.ClipX/2 - 2, C.ClipY/2 - 4);
C.DrawText("o"); // black outline
C.DrawColor.R = 255; C.DrawColor.G = 255; C.DrawColor.B = 255;
C.SetPos(C.ClipX/2 - 2, C.ClipY/2 - 4);
C.DrawText("+"); // draw white '+'
C.SetPos(C.ClipX/2 - 2, C.ClipY/2 - 4); C.DrawText(chr(215)); // make white square 3x3 px
You can comment last line and get "+" crosshair 3*3 px, inside black circle. IDK maybe it is better for you.
Here examples for labels above players.
scr_1593361131.png
scr_1593361146.png
On bad background:
scr_1593367752.png
New version.
1. Fix for heal gun on network play.
UTMenu20200628192150.rar
papercoffee wrote: ↑Sun Jun 28, 2020 5:04 pm
I need this crosshair !!
Install file as described on first post in the topic.
But I'm afraid any anti-cheat will detect a change in system files and will not let you into the server where this anti-cheat exists. This is not true for monsterHunt, but true for detamatch servers.
This problem cannot be solved. The only exception is that this code will be embedded in UTPure or something similar and will be installed on each server. Something like special settings - to replace the crosshair of the client, which can be turned on.
Or use third-party software that will draw a picture in the center of the screen, on top of the game output.
No anti-cheat can track this.
papercoffee wrote: ↑Sun Jun 28, 2020 5:04 pm
How accurate is this thing?
Maximum accuracy. The sight is strictly in the pixel grid and does not go anywhere.
Like the original.
But weapons can shoot anywhere and anyhow. It does not depend on crosshair. With the original crosshair the same story.
PulseGun and ripper shoot from a weapon to the endless point that the center of the screen points to. Therefore, projectiles fly near the player, to the right and below the crosshair.
You can not make the original crosshair transparent, but make it a large cross or a large dot and compare.
You do not have the required permissions to view the files attached to this post.