Jump to content

Custom Loadouts for Admins and Regular Players


MisterT

Recommended Posts

Here is  a simple loadouts script you can put into INIt.sqf

 

 

I put Random Classnames for items. So please Change them according to what you want. 



if (!isServer) then {
	waitUntil {!isNull player};
	waitUntil {player == player};
	
	while {true} do {
		_player = player;
		player addEventHandler ["Respawn", {
			if (getPlayerUID player in ["0"]) then {
		player addWeapon "srifle_EBR_F";
				player addWeapon "hgun_Pistol_heavy_01_F";
				player addWeapon "RPG32_F";
				player addMagazine "20Rnd_762x51_Mag";
				player addMagazine "11Rnd_45ACP_Mag";
				player addMagazine "launch_RPG32_F";
				player addWeapon "NVG_EPOCH";
				player addWeapon "EpochRadio0";
				player addWeapon "ItemMap";
				player addWeapon "optic_tws_mg";
				player addWeapon "muzzle_snds_B";
				player addWeapon "ItemGPS";
				player addWeapon "ItemWatch";
				player addWeapon "ItemCompass";
				player addWeapon "RangeFinder";
				player addWeapon "hgun_Pistol_heavy_01_F";
				player addBackpack "B_Carryall_cbr";
				player addVest "V_TacVest_camo";
				player addItemToBackpack "FirstAidKit";
				player addItemToVest "10Rnd_762x51_Mag";
				player addItemToVest "10Rnd_762x51_Mag";
				player addItemToVest "11Rnd_45ACP_Mag";
				player addItemToVest "WhiskeyNoodle";
				player addItemToVest "ItemSodaOrangeSherbet";
				player addItemToVest "meatballs_epoch";
				player addItemToVest "sweetcorn_epoch";
				player addItemToVest "scam_epoch";
				player addItemToVest "ItemSodaRbull";
				player addItemToVest "ItemSodaRbull";
				player addItemToBackpack "ItemLockbox";
				player addItemToBackpack "20Rnd_762x51_Mag";
				player addItemToBackpack "20Rnd_762x51_Mag";
				player addItemToBackpack "11Rnd_45ACP_Mag";
				player addItemToBackpack "11Rnd_45ACP_Mag";
				player addItemToBackpack "CinderBlocks";
				player addItemToBackpack "CinderBlocks";
				player addItemToBackpack "CinderBlocks";
				player addItemToBackpack "CinderBlocks";
				player addItemToBackpack "CinderBlocks";
				player addItemToBackpack "ItemCorrugated";
				player addItemToBackpack "MortarBucket";
				player addItemToBackpack "launch_NLAW_F";
				player addItemToBackpack "launch_NLAW_F";
				player addItemToBackpack "HeatPack";
				player addItemToBackpack "ColdPack";
				player addItemToBackpack "FirstAidKit";
				player addItemToBackpack "MeleeSledge";
				player addItemToBackpack "Hatchet";
				player forceAddUniform "U_O_GhillieSuit";
				EPOCH_playerCrypto = 30000;
			} else {
				player addWeapon "EpochRadio0"; 
				player addWeapon "ItemMap";
				player addWeapon "hgun_Pistol_heavy_01_F";
				player addMagazine "11Rnd_45ACP_Mag";
				EPOCH_playerCrypto = 100;
			};
		}];
		waitUntil {_player != player};
	};
};

Top one with "0" = Admin steamdid the one with 7656xxxxxxxxxxx after the else if is regular player loadouts.  

 

 

 

 

OR YOU CAN ADD STEAMID SERVER SIDE SO THEY ARE NOT PUBLIC. BELOW IS HOW.

	if (getPlayerUID player in admin_list) then {

Than adding the admin_list to yout admin.sqf

 

admin.sqf

admin_list = ["0"];

Put admin.sqf in root directory.

 

Open up missions.sqm

 

Goto line 81 ADD THIS

init="if (isServer) then {execVM '\admin.sqf';};"; 

BELOW

skill=0.60000002;

Should look like this

class Item0
				{
					position[]={14090.048,11.188511,11554.008};
					azimut=136.241;
					special="NONE";
					id=0;
					side="CIV";
					vehicle="VirtualMan_EPOCH";
					player="PLAY CDG";
					leader=1;
					skill=0.60000002;
					init="if (isServer) then {execVM '\admin.sqf';};";
				}; 

Any questions let me know.

 

Hope this helps someone.

 

Mister T.

Link to comment
Share on other sites

Hmm, just a question.

When you do this clientside, and add an exception to BattlEye, won't this basically open a hole for anyone spawning in whatever they want?

 

Is there any way to do this completely serverside instead?

Yes there will be a whole in a way that certain hacks might allow very minimal things go through. But no one will know what is possible on which server without actually doing it, and it will still log what they are doing.

Link to comment
Share on other sites

 Paste your Script kick error. This is BattleEye.

20.12.2014 19:12:56: [SoA]Darth_Rogue (69.180.175.228:2304) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - #25 "k "B_Carryall_cbr";
player addVest "V_TacVest_camo";
player addItemToBackpack "FirstAidKit";
player addItemToVest "10Rnd_762x51_"
20.12.2014 19:14:42: [SoA]Darth_Rogue (69.180.175.228:2304) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - #26 "inder";
player addWeapon "hgun_Pistol_heavy_01_F";
player addBackpack "B_Carryall_cbr";
player addVest "V_TacVest_camo";
player "

I'm sure I could figure it out but I just spent two days fixing BE restrictions so I could run JSRS and I don't have the brain power left for this.  lol

Link to comment
Share on other sites

Oh boy... custom loadouts. Let the care bears begin.

 

Yeah the more I think about this the more I don't like it.  Stuff is pretty easy to get in Epoch as it is.  The only legit rationale I can think of for doing a starting loadout would be to give freshies a sidearm so they at least have a chance at defending themselves from spawn rapers.  Other than that it's just dumbing things down too much. 

Link to comment
Share on other sites

Personally I am thinking that variety in loadouts is a nice dynamic, for example: Having every player spawn in an array of different clothing items. Or having people from a certain group (eg. admins) carry a certain piece of gear, etc. - you do not necessarily need to use this for "bad" reasons.

Link to comment
Share on other sites

ya, might as well turn off battleye if you let this script run :)

 

 

I do like the idea.  Permits alot of options, such as checking if a player had a 'token' upon death, and enabling them to spawn with different gear.

 

Sort of like a clone bank token..while they are cloning you, they go ahead and spend some credits and energy to reproduce a some gear for you.

Link to comment
Share on other sites

WOW, What a game breaker  :(

now every nub will be adding this to their already empty servers.

What ever happened to Survival Simulation?

The Adventure?

The Hunger?

The Thirst?

The Fear?

 

 

Ahh the memories of when two fresh spawns meet up ingame and worked together to get geared up and start building.  :rolleyes:

These kind of additions only promote spawn killing and headaches for Admins and Moderators alike.

 

I joined a server just yesterday which I will not name, and to my surprise upon spawn there is a huge crate with all sorts of gear in there.

Not just food and clothing ,but everything from M107's to Quad Bikes.

Well my jaw hit the ground "WTF" were my first thoughts.

 

WOW What a Game Breaker!

The Mod is supposed to be difficult!

 

STENCH

Link to comment
Share on other sites

20.12.2014 19:12:56: [SoA]Darth_Rogue (69.180.175.228:2304) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - #25 "k "B_Carryall_cbr";
player addVest "V_TacVest_camo";
player addItemToBackpack "FirstAidKit";
player addItemToVest "10Rnd_762x51_"
20.12.2014 19:14:42: [SoA]Darth_Rogue (69.180.175.228:2304) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - #26 "inder";
player addWeapon "hgun_Pistol_heavy_01_F";
player addBackpack "B_Carryall_cbr";
player addVest "V_TacVest_camo";
player "

I'm sure I could figure it out but I just spent two days fixing BE restrictions so I could run JSRS and I don't have the brain power left for this.  lol

 

 

 

Yea pretty much same kicks I'm getting.

Link to comment
Share on other sites

This won't load from the init oddly. No change in loadouts. Couldn't find anything in the rpt about it either.

Due to this:

player addEventHandler ["Respawn", {
			if (getPlayerUID player in ["0"]) then { \\admin id

it will only  happen on respawn..  Also, you need the player ID's in there...

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...