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!

HL2RP Customizing Certain Faction Settings

Discussion in 'Development' started by Papabear3g, Dec 28, 2017.

  1. Papabear3g

    Papabear3g Clockwork Customer

    Hey guys, I found an old Hunter Faction plugin, and it's good, although it has the footstep sounds of a normal citizen, and speed of a citizen, would anyone know how to give the Hunter the footstep sounds, or at least increase the speed and stamina of a specific faction? Thanks guys
     
  2. Aspect

    Aspect =) Legend Clockwork Customer

    Send link pls
     
  3. Mixed

    Mixed removed Clockwork Customer

    Code:
    function PLUGIN:PlayerFootstep(player, position, foot, sound, volume, recipientFilter)
        local faction = player:GetFaction();
      
        if (player:GetFaction() == FACTION_NAME) then
                            if (foot == 0) then
                                    local randomSounds = {1, 2, 3, 4, 5, 6};
                                    local randomNumber = math.random(1, 6);
                              
                                    sound = "npc/metropolice/gear"..randomSounds[randomNumber]..".wav";
                            end;
                    end;
           player:EmitSound(sound);
    end;
    
    Here you have for footstep sound by faction. Made plugin for it and put it in sv_hooks.lua

    Code:
    function PLUGIN:PlayerThink(player, curTime, infoTable)
        if (player:GetFaction() == FACTION_NAME) then
            if (!infoTable.isJogging) then
                infoTable.runSpeed = 45
            end;
        end;
    end;
    
    Here you have for speed by faction. Made plugin for it and put it in sv_plugin.lua
     
    • Like Like x 1
    Last edited: Dec 28, 2017
  4. Papabear3g

    Papabear3g Clockwork Customer

    You're amazing, just know that.
     
    • Friendly Friendly x 1
  5. Papabear3g

    Papabear3g Clockwork Customer

  6. Papabear3g

    Papabear3g Clockwork Customer

    I'm having trouble with the footsteps for the Hunter cause I think the creator of the plugin just reskinned a citizen and made it to another faction, cause I keep hearing the citizen footstep sounds
     

Previous Readers (Total: 0)