1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Other Issuses with my plugins

Discussion in 'Plugins' started by Wata, Nov 20, 2018.

  1. Wata

    Wata Clockwork Customer

    How does the ration dispenser work? How can it be refilled?



    How does /RankPromote work? What does it do, what terms does it promote someone in?
     
  2. Aspect

    Aspect =) Legend Clockwork Customer

    /dispenseradd
    It can't run out of rations therefore it cannot be refilled.

    And I've honestly got no idea what /RankPromote does, I don't even think it works.
     
  3. Wata

    Wata Clockwork Customer

    When i try to take a ration from the despenser it doesn`t do anything
     
  4. Gravity Cat

    Gravity Cat Okay Clockwork Customer

    Did you change the ration item at all? It has to have the same name otherwise it'll dispense nothing.
     
    • Agree Agree x 1
  5. Wata

    Wata Clockwork Customer

    No i have not changed the ration item Or the name
     
  6. Aspect

    Aspect =) Legend Clockwork Customer

    Then you must have changed something if nothing is happening.
     
  7. Wata

    Wata Clockwork Customer

    Ill have a check
     
  8. Wata

    Wata Clockwork Customer

    I have checked and there is nothing that has been changed
     
  9. Aspect

    Aspect =) Legend Clockwork Customer

    Idk then, sorry.
     
  10. Gravity Cat

    Gravity Cat Okay Clockwork Customer

    When you press E on the dispenser, you're saying it's not dispensing anything at all? That is most likely because the Clockwork.item:CreateInstance in the dispenser's code isn't matching with the ration's sh_file name.

    Code:
    entity:CallOnRemove("CreateRation", function()
    if (IsValid(activator)) then
    local itemTable = Clockwork.item:CreateInstance("ration");
     
  11. Vortix

    Vortix Moderator Staff Member Moderator Legend Clockwork Customer

    Clockwork has a built-in faction ranking system, which is where RankPromote and RankDemote come from. It allows you to assign a character a rank within their faction without them having to have any tag in their name, whilst being easy to modify and allowing you to set models + other properties for each rank. Below is an example of rank configuration:
    Code:
    FACTION.ranks = {
        ["RCT"] = {
            position = 5,
            class = "Metropolice Recruit"
        },
        ["EpU"] = {
            position = 4,
            class = "Elite Metropolice",
            model = "models/leet_police2.mdl"
        },
        ["OfC"] = {
            position = 3,
            class = "Elite Metropolice",
            model = "models/policetrench.mdl"
        },
        ["DvL"] = {
            position = 2,
            class = "Elite Metropolice",
            model = "models/eliteshockcp.mdl"
        },
        ["SeC"] = {
            position = 1,
            canPromote = 3,
            class = "Elite Metropolice",
            model = "models/sect_police2.mdl"
        },
        ["SCN"] = {
            class = "Metropolice Scanner",
            isScanner = true,
            maxArmor = 0
        },
        ["SYNTH"] = {
            class = "Metropolice Scanner",
            isScanner = true,
            maxHealth = 200,
            maxArmor = 0
        }
    };
    The position field indicates the rank's standing in the faction, with a lower position meaning higher in the hierarchy. canPromote states the maximum position that the given rank can promote up to. maxHealth and maxArmor take priority over the same field for the faction table, allowing different ranks to have different starting amounts of health and armour.

    Although I've used MPF as an example, this system does not by default replace all of the functionality of the Combine ranking mechanism built into HL2RP. This means the ranking system is most effective for introducing ranks to non-Combine roles by default.
     
    • Winner Winner x 1

Previous Readers (Total: 0)