Team Spartan Cookies & Milk Forums
SF Hud improvements - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Feedback (https://teamscm.co.uk/forum-9.html)
+--- Forum: Suggestions and improvements (https://teamscm.co.uk/forum-11.html)
+--- Thread: SF Hud improvements (/thread-3694.html)



SF Hud improvements - 57e11a - 06-11-2021

A couple suggestions for the SF Hud:
1. Allow hud.unlink() to be used on anyone, makes sense that you can't force people into your hud, but it makes no sense that you can't force them out.
2. A hook ("checkhudlink", like checktricorderoverride) to prevent people from linking, even if they have use perms.


RE: SF Hud improvements - The17thDoctor - 06-11-2021

(06-11-2021, 05:36 PM)тѕсм.Quiru Wrote: 2. A hook ("checkhudlink", like checktricorderoverride) to prevent people from linking, even if they have use perms.

If the first suggestion is getting approved then this doesn't need to be added, simply do :
hook("hudlink", "You shall not pass", function(player)
    if player:isNotAllowed() then hud.unlink() end
end)



RE: SF Hud improvements - Person8880 - 07-11-2021

I've made hud.unlink() work for all players on the client side, and have also added some extra server side functions to track and manage linked players. You can call hud.unlink() inside the hudlink hook to deny linking.


RE: SF Hud improvements - 57e11a - 07-11-2021

Thanks, Person!


RE: SF Hud improvements - 57e11a - 08-11-2021

Slightly related, but can
hud.isChatboxOpen()
be unrestricted? It's something you can learn by looking at a player, so why should it be restricted, it's not giving you the text or anything.


RE: SF Hud improvements - The17thDoctor - 08-11-2021

What if a player is cloaked ? What if he's out of sight ? What if you're AFK ? etc... There are so many cases where you can't know. Despite what my nefarious side would want, SF should not be all knowing.


RE: SF Hud improvements - 57e11a - 08-11-2021

Then have it so being linked to the hud bypasses the restriction