Welcome to Epoch Mod Community

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more!

This message will be removed once you have signed in.

Question

good evening all,

Once again i am in a pickle, I am setting up a new server, I am wondering how to set up custom load outs

AND how to edit players loadouts that already have items.

 

Thanks in advance

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

You can change the default loadout: 
https://epochmod.com/forum/topic/43026-default-loadout/
 

[Added] Ability to fully change default player loadouts via CfgEpochServer configs:
(defaultGoggles, defaultHeadgear, defaultBackpack, defaultVestFemale, defaultVestMale, defaultUniformFemale, defaultUniformMale, itemsInContainers, weaponsInContainers, normalMagazines, weaponsAndItems)

Custom per player loadouts, could be added easily. This is the file that is responsible for assigning the default loadout and can be edited to your liking.

Below is an example of how to add custom loadouts to A3 Epoch. Insert this code (and edit as desired) just below the default loadout section: https://github.com/EpochModTeam/Epoch/blob/release/Sources/epoch_server/compile/epoch_player/EPOCH_server_loadPlayer.sqf#L79

if (_playerUID in ["12345678","45678910"]) then { // Change these to equal the STEAM64ID of each player you want to have this loadout.
	_uniform = "U_Test_uniform";
	_class = "Epoch_Female_F";
	_vest = "V_F41_EPOCH";
	if (_this select 1) then { //true == male
		_uniform = "U_Test1_uniform";
		_class = "Epoch_Male_F";
		_vest = "V_41_EPOCH";
	};
	_goggles = "";
	_headgear = "";
	_backpack = "";
	_linkedItems = ["ItemMap","EpochRadio0"];
	_itemsInContainers = [];
	_weaponsInContainers = [];
	_normalMagazines = [];
	_weaponsAndItems = [];
};

GLHF!

If you are wanting to edit loadouts for players that already have items, directly editing the database should work. Use/Download: https://redisdesktop.com/

Share this post


Link to post
Share on other sites
  • 0

Thanks for that @vbawol - that's very useful.

@Froanta you may also want to take a look at

and see whether that suits you needs. Works pretty well

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Similar Content

    • By Froanta
      Hello all, Wish the new year is/was well to you's.
      How do I change the trader prices for example Buying something worth 20 Krypto and selling something for 10 krypto?
      Is it even possible, is it a file edit or a database edit?
       
      Thanks!
    • By kangawroon
      Hi! I'm relatively new to this but I know how to edit the various files on my server and pack/unpack PBO's. I've just bought a Epoch-server and I've already set it up with status bar, ATMs and HS-dealers/blackmarkets. I've tried searching through the forums, but there is a couple of things I so far could not find a decent and concrete solution to:
      - functioning Safe Zone script with both vehicle and player protection (in/out notifications would be nice).
      - respawn loadout (default respawn gear)
      - Getting the server to lock itself for 5 minutes after restart (for all scripts to load, I think)
       
       I'm humbly hoping someone out there can help me with at least ONE of these :)
       
    • By Toby77
      Im trying to add the mod, Urban Rappelling by Duda, Not sure if this is allowed by the Epoch dev's?
      Getting these message's, While hanging in "mid-air"
      "DEBUG: Invalid Vehicle Token, deleted 6bba4100# 1699856: aa_01.p3d REMOTE"
    • By aimgame
      There is a script in a server side archive - Tools\PHP\GetOnlinePlayers.php 
      Can anyone tell how it works? I've tried to test it, and here's what i get:
      Parse error: syntax error, unexpected '.0' (T_DNUMBER) in C:\xampp\htdocs\main\GetOnlinePlayers.php on line 14
      If i change 127.0.0.1 to localhost it says:
      Fatal error: Class 'Redis' not found in C:\xampp\htdocs\main\GetOnlinePlayers.php on line 13
       
  • Donation Box

    Please donate to support the community.
    We appreciate all donations!
  • Advertisement
  • Supporters
  • Advertisement
  • Forum Statistics

    • Total Topics
      26071
    • Total Posts
      240285
  • Member Statistics

    • Total Members
      28604
    • Most Online
      1497

    Newest Member
    JW7968
    Joined