Author Topic: New feature similar to the old immunity  (Read 2475 times)

0 Members and 1 Guest are viewing this topic.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
New feature similar to the old immunity
« 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.
Experiencing God's grace one day at a time.

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: New feature similar to the old immunity
« Reply #1 on: August 09, 2010, 10:18:24 AM »
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
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: New feature similar to the old immunity
« Reply #2 on: August 09, 2010, 11:07:13 AM »
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?
Experiencing God's grace one day at a time.

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: New feature similar to the old immunity
« Reply #3 on: August 09, 2010, 02:13:51 PM »
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.
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline scfanatic

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: New feature similar to the old immunity
« Reply #4 on: August 22, 2010, 02:21:59 AM »
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?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: New feature similar to the old immunity
« Reply #5 on: August 22, 2010, 04:27:14 PM »
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.
Experiencing God's grace one day at a time.