ULX

Author Topic: Help with Donator Inheritance?  (Read 1414 times)

0 Members and 1 Guest are viewing this topic.

Offline Aeioyoo

  • Newbie
  • *
  • Posts: 6
  • Karma: -1
Help with Donator Inheritance?
« on: November 25, 2016, 09:10:20 AM »
My ULib/ULX versions (run "ulx version" in console):
ULib v.. v2.61d
ULX v.. v3.71d

Looking to design a new inheritance tree, and I need to factor in staff having donator ranks!
E.g. diamond-trialmod

Easiest way to do this? Staff need the staff commands for their rank (E.g. T-Mod can ban for 5 hrs, Admin permanently), and their donator commands (Diamond can give themselves 25 armor for example, stuff like that)

Which is easier:
Donar ranks branch from staff ranks   Tmod         -    Mod - Admin...
                                                              \/                   \/
                                                            B-Tmod           B-Mod...
                                                            S-Tmod etc

Or separate trees for each donar status e.g.
                                                   Tmod - Mod - Admin
                                                   B-Tmod, B- Mod, B-Admin
                                                   S-Tmod, S-Mod etc

Or, what I really want advice on, something that is quicker and works better?

Thanks, Dino!  8)

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Help with Donator Inheritance?
« Reply #1 on: November 25, 2016, 10:05:33 AM »
Though it might be more difficult to pre plan now, you'll save yourself much time later;
Managing inheritance in a single flow is MUCH easier than managing branches.
Can target gets really challenging if you don't.
Though ULib allows for branches, and ULX XGUI allows you to specify branch inheritance and can_target of those, planning ahead now will save you challenge of trying to remember and specify who does what and can target in the future.
Have
highest
inherits
slightly lower , and can target not highest
inherits
even lower and can target not slightly lower
...

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

Offline Aeioyoo

  • Newbie
  • *
  • Posts: 6
  • Karma: -1
Re: Help with Donator Inheritance?
« Reply #2 on: November 25, 2016, 11:18:15 AM »
How would this be done with the Donator ranks? Admin, for example, doesn't have some commands of Diamond Moderator, but some commands more?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Help with Donator Inheritance?
« Reply #3 on: November 25, 2016, 01:55:49 PM »
That's the time challenge - figure out groups that are descending.
In Gmod, there are only really 3 groups.
Superadmin, admin, user.
superadmin is highest, admin is second highest, user is plain.
Figure out a way to place custom groups under admin, above user, that will still allow procedural ranks.
superadmin
admin
diamond moderator
gold moderator
silver moderator
moderator
...
user

Give diamond stuff that gold doesn't have, and so on.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming