• How to customize players groups loadout in TTT?
    3 replies, posted
I would like to customize the players groups (Innocent, Detective and Traitor) loadout in a TTT gamemode. I would like to be able to remove and add new weapons to the loadout of each group, can someone point me to a direction? There is any sort of configuration file where I can specify it? I would like to do not need to change to default gamemode code if possible.
Edit SWEP.InLoadoutFor
I already know that, I'd like to modify the loadout (that includes adding and removing) when the round starts, for example: When a new round starts Traitors will spawn will the following loadout {RPG, M4A1}, so basically I removed the other weapons from to loadout and add new ones. [QUOTE=smithy285;43546250]Edit SWEP.InLoadoutFor[/QUOTE]
[QUOTE=Zignd;43546467]I already know that, I'd like to modify the loadout (that includes adding and removing) when the round starts, for example: When a new round starts Traitors will spawn will the following loadout {RPG, M4A1}, so basically I removed the other weapons from to loadout and add new ones.[/QUOTE] [code] hook.Add("TTTBeginRound", "TraitorRemove", function() for k,v in pairs(player.GetAll()) do if v:IsTraitor() then v:Give("weapon_ttt_rpg") v:StripWeapon("weapon_ttt_holstered") end end [/code] Untested code.
Sorry, you need to Log In to post a reply to this thread.