06-21-2021, 12:21 AM
(This post was last modified: 06-21-2021, 12:22 AM by Sacred. Edited 1 time in total.)
(06-21-2021, 12:02 AM)Here lies Eggroll's reputation. Wrote: Yes. I would also like to leave this link here. It is a custom crosshair maker. It is nothing too complex but it works great! This is a client-side and server side (hi dink) workshop addon that will allow players to make their own crosshair. It does have an issue with conflicting with existing crosshairs that are embedded in weapons but I do not know if there is a fix for that. Regardless, here is my suggestion. https://steamcommunity.com/sharedfiles/f...1834710531There is an older forum that covered the idea of custom crosshairs. I'm wondering if the provided link would be a potential thing to add. Would there be anything contradicting, in regards to base crosshairs with something like this?
Also, is this were to be put on the server there would need to be a script that runs a client side command when you press a button like for example F2. This is very easy to do with a simple lua script being installed server-side such as this.
That will make it so that the players on the server will run the command that is needed to be typed out in console with the push of a button. It's a simple enough workaround. I just wish there was a way to disable the crosshair that comes with the weapons, if someone could figure out how to do that then custom crosshairs would be the perfect addon for dinks ttt! Hopefully this gets the recognition it deserves :)Code:if SERVER then
AddCSLuaFile()
return
end
local key_is_down = false;
local lastPress = 0
local function KeyPressedHook()
if(input.IsKeyDown(KEY_F2) and not key_is_down) and CurTime() > lastPress + 0.5 then
key_is_down = true;
RunConsoleCommand("xhair_menu");
lastPress = CurTime()
else
key_is_down = false;
end
end
hook.Add("Think","KeyPressedHook",KeyPressedHook);
Also, welcome to the forums :)
Forum Link: https://www.dinklebergsgmod.com/site/sho...p?tid=4054
The GitHub Files: https://github.com/Facepunch/garrysmod/pull/1376
![[Image: Debugempty.png]](https://developer.valvesoftware.com/w/images/8/8b/Debugempty.png)
Missing lots of textures and seeing lots of errors? Type !css to fix this issue!
