Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: TheHyperDrive on July 26, 2014, 01:22:48 PM
-
Alright so my first question is this: When the ulx spectate (!spectate) command is used, if the person is dead, it brings them back to life. I thought of adding a kill command, but it would also kill someone who is alive and used it. Is there any way around this? (I have a custom respawn module, which only higher rank can use).
The second, I saw some servers have a perma-ban that prevents a person from joining, even if it's on another account. Is that possible for me, or would I have to pay for the code?
-
1) Can you give reasons for spectating a dead person? Why would an admin with spectate access do this?
We could work to add a dead player check for the spectate code reasonably easy, but it seems, as we've had it for years, this has never come up.
2) Source/HLDS includes a way to ban by IP address, no lua code needed. "addip <ip address> <time>"
I believe it's been added to Gmod.
The reason it's not commonly used in most banning is because IP addresses can be changed reasonably easy on most ISPs.
Easier than changing accounts actually (as most accounts cost money (or were stolen/hacked/borrowed from friend/relative)
Steam_Ids are best bet, as they never change for a single account.
I wouldn't permaban IP addresses though...would do it for a few days. Since most are dynamic, would get cluttered after some time anyway.
-
If you're not looking for IP bans, do you mean this? http://facepunch.com/showthread.php?t=1341204&p=43469693&viewfull=1#post43469693 (http://facepunch.com/showthread.php?t=1341204&p=43469693&viewfull=1#post43469693)
That should prevent players that share GMod to other accounts through "Family sharing" from joining.
-
I'm not spectating a dead person. Let's say the moderator or admin is not on the team of a person that is being called out on cheating. That staff member would use !spectate to see that player, instead of having to switch to spectator team. (It's a prop hunt server by the way). Now if that admin or mod is dead when they enter !spectate, it brings them back to life once they move or exit it. For example:
Admin 1 has committed suicide.
Player 1: Player 2 is cheating! (hiding in an unreachable spot, for example)
Admin 1: !spectate "Player 2"
Admin 1 is now spectating Player 2.
(Move around to exit spectate mode)
(Admin 1 moves forward with W to exit spectate mode)
Admin 1 has stopped spectating Player 2.
(Admin 1 respawns with no weapons and 0 health at the point they activated the spectate command)
-
The second, I saw some servers have a perma-ban that prevents a person from joining, even if it's on another account. Is that possible for me, or would I have to pay for the code?
You can achieve this by banning ip addresses, using cookies, and steam api for family shared accounts. I have code that does all of these things, add me if you would like it.
-
TheHyperDrive, your description is more understood to me now. I thought it was bringing the specatee back, not the spectator.
I'll suggest to the team that we try to find some way around that and still allow spectating.
The function we wrote for ULib to spawn a player, literally, uses default Gmod "ply:Spawn()", along with some other "magic" weapon/armor/health restoration commands if another Ulib command was used before doing so.
ULib.spawn at line 470 (https://github.com/Nayruden/Ulysses/blob/ce4a33d4330898464867f86ea2b8af026195f2a5/ulib/lua/ulib/server/player.lua#L470)
We may not be able to find a work-around.
As the function we wrote was intended, literally, to respawn the player with everything they had before being (jailed, spectating, few other commands) in SandBox, worst case scenario, we may have to disable the function all together for non Sandbox.