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!

Question about sv_hooks.lua

Discussion in 'Discussion' started by Pancakez, Sep 14, 2014.

  1. Pancakez

    Pancakez dafuq.

    Sooo, I was trying to add more default models on the sv_hooks.lua to make it kinda like this:
    Code:
    if (self:IsCombineFaction(faction)) then
    		if (self:IsPlayerCombineRank(player, "GHOST")) then
    			return "models/dpfilms/metropolice/tron_police.mdl";
    		elseif (self:IsPlayerCombineRank(player, "OfC")) then
    			return "models/dpfilms/metropolice/policetrench.mdl";
    		elseif (self:IsPlayerCombineRank(player, "DvL")) then
    			return "models/dpfilms/metropolice/blacop.mdl";
    		elseif (self:IsPlayerCombineRank(player, "SeC")) then
    			return "models/dpfilms/metropolice/phoenix_police.mdl";
                    elseif (self:IsPlayerCombineRank(Player, "RCT")) then
                            return "models/dpfilms/metropolice/hdpolice.mdl";
                    elseif (self:IsPlayerCombineRank(Player, "SqL)) then
                            return "models/dpfilms/metropolice/police_bt.mdl";
                    elseif (self:IsPlayerCombineRank(Player, "JUDGE")) then
                            return "models/dpfilms/metropolice/retrocop.mdl";
                    elseif (self:IsPlayerCombineRank(Player, "HELIX")) then
                            return "models/dpfilms/metropolice/civil_medic.mdl";
                    elseif (self:IsPlayerCombineRank(Player, "APEX")) then
                            return "models/dpfilms/metropolice/hl2concept.mdl";
                    elseif (self:IsPlayerCombineRank(Player, "UNION")) then
                            return "models/dpfilms/metropolice/urban_police.mdl";
                    elseif (self:IsPlayerCombineRank(Player, "GRID")) then
                            return "models/dpfilms/metropolice/biopolice.mdl";
    
    But it ended up with this: Boots sounds and voice commands we're screwed.
    So I removed it until like this:
    Code:
    if (self:IsCombineFaction(faction)) then
    		if (self:IsPlayerCombineRank(player, "GHOST")) then
    			return "models/dpfilms/metropolice/tron_police.mdl";
    		elseif (self:IsPlayerCombineRank(player, "OfC")) then
    			return "models/dpfilms/metropolice/policetrench.mdl";
    		elseif (self:IsPlayerCombineRank(player, "DvL")) then
    			return "models/dpfilms/metropolice/blacop.mdl";
    		elseif (self:IsPlayerCombineRank(player, "SeC")) then
    			return "models/dpfilms/metropolice/phoenix_police.mdl";
    And it worked back.
    Got any ideas how to fix it?
     
  2. duck

    duck Phant0m Legend

    Support isn't provided for modification of the files. You're welcome to use a plugin, though.
     
  3. vexus

    vexus ej rockwell's worst nightmare Staff Member Manager Legend Clockwork Customer

    You did a no-no.



    I think my friend Vortix released a plugin where you can individually set the models of each rank and division. Look for that.
     
  4. Pancakez

    Pancakez dafuq.

    Thanks for helping, guys!
    I'll use vortix's plugin.
     

Previous Readers (Total: 0)