Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: Megiddo on March 07, 2010, 07:08:22 PM
-
You can now add a can_target value to the group table to specify who a group is allowed to target. Note that the default for groups.txt is now set so that each rank (operator, admin, superadmin) can't target the ranks above them. If you want to change it, you'll need to modify groups.txt by hand for now... I haven't gotten around to adding a ulx command to manipulate it yet.
-
Megiddo, you're not online. >:(
First, did you make the ulx command to change this yet?
Second, how is the value set up? Is it a restriction string like "!%superadmin" or something like that?
If so, is it possible to target players instead of groups?
Also, if I were to say "%admin", would that mean they can target superadmins too? (or "!%admin" means they can't target admins or higher?)
Or is it set up just as a string of groups? like "superadmin, admin, operator" etc.
Divulge this information, fiend! Otherwise I'll have to keep this nice feature out of XGUI :P
-
Yes there's a command for this now.
It's a restriction string that's thrown through the targetting function, so anything you can do with a regular command can be done with the string. Just remember that the comma ',' means and. So !%admin,!%superadmin is saying the same thing as !%superadmin, since 'and' is least restrictive. Saying !%admin,!%superadmin is dumb anyways, since you can just specify !%admin. Though... maybe it would be a good idea to add more operators? An 'or' operator and a grouping operator?
-
Bwahaha! I'll make it so users have access to everything, but they only can_target "@" :P (Wait.. would that work?)
Either way, the or and grouping sounds like a good idea, but .. don't want to make it too confusing. I'll discuss it with you later tonight.
-
Really like this new command. It's great for donator classes that shouldn't be targeting admins, but it does have one bug i noticed. If the selected class has canphysgunplayer enabled then they can physgun any rank regardless of this new immunity. Any help on that as to whether or not its just my server or the command in general?
-
That was an oversight, really. Just didn't think about that use case when I was programming the new UCL system. It'd be too much work to refactor the UCL system to allow for that, but I should be able to add the behavior to the physgun stuff by hand pretty easy.