ULX

Author Topic: How to disable the (*) which targets everyone?  (Read 2407 times)

0 Members and 1 Guest are viewing this topic.

Offline thegtz

  • Newbie
  • *
  • Posts: 25
  • Karma: 0
How to disable the (*) which targets everyone?
« on: July 28, 2012, 10:38:25 PM »
I would like to disable * for commands so that the person using the command has to type the person's name in instead of just using * to target everyone. Is this possible?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: How to disable the (*) which targets everyone?
« Reply #1 on: July 29, 2012, 05:35:58 AM »
Yes, comment out or delete line 110 in ulib/lua/ulib/shared/player.lua.
Experiencing God's grace one day at a time.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: How to disable the (*) which targets everyone?
« Reply #2 on: July 29, 2012, 06:27:32 AM »
maybe it would be useful to add an access flag: Something like ulx allowaccessgroups. Players with this flag would be allowed to target using *, %, and ^ where players without would have to type names.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How to disable the (*) which targets everyone?
« Reply #3 on: July 29, 2012, 09:20:51 AM »
Meg/Stick, Anyway to use "can_target" and "!*" and not have ULX block running commands on everyone?
(That's hard to explain but I hope you get what I'm saying)
I mean, if one were to add that now, I presume ULX would block targeting all players, not just the "*" command.
Is there any string one could add to prevent using "*" as a command?

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline thegtz

  • Newbie
  • *
  • Posts: 25
  • Karma: 0
Re: How to disable the (*) which targets everyone?
« Reply #4 on: July 29, 2012, 11:01:18 PM »
Meg/Stick, Anyway to use "can_target" and "!*" and not have ULX block running commands on everyone?
(That's hard to explain but I hope you get what I'm saying)
I mean, if one were to add that now, I presume ULX would block targeting all players, not just the "*" command.
Is there any string one could add to prevent using "*" as a command?

Is there any string one could add to prevent using "*" as a command?

Thats pretty much what I want to be able to do or maybe even remove it from certain commands.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: How to disable the (*) which targets everyone?
« Reply #5 on: July 30, 2012, 04:02:35 PM »
MrP's suggestion would work, but it would globally affect a player.

Not possible in the way it's done right now JamminR, as keywords are always expanded when evaluated. I can't think of any logical way to break this rule in the permission strings at the moment...

It's all or none with that edit at the moment, thegtz.
Experiencing God's grace one day at a time.