BetterDeadThanZed

[RELEASE] Random Starting Loadouts/Uniforms

82 posts in this topic

I posted about this back in March, but I thought I'd organize a post and make it so it can be presented in an easy to follow format:

This allows you to specify an array of uniforms, food and drink for a fresh spawn and respawning players. Following the code in the below files, you could add additional items to a player. You adjust the following lines to determine the uniforms, food and drink: _bambiuniforms, _bambifood and _bambidrink.

1. In your mission pbo, create a folder called "custom" and inside that create a folder called "loadout". 

2. In the "loadout" folder, place these two files:
ExileServer_object_player_network_createPlayerRequest.sqf: http://pastebin.com/1ybrVdmt
ExileServer_object_player_createBambi.sqf: http://pastebin.com/dtVEXYic

3. Open your mission pbo's config.cpp folder and find the "class CfgExileCustomCode" section and add this to it:

			ExileServer_object_player_createBambi = "custom\loadout\ExileServer_object_player_createBambi.sqf";
			ExileServer_object_player_network_createPlayerRequest = "custom\loadout\ExileServer_object_player_network_createPlayerRequest.sqf";	

Enjoy!

Thank you to @second_coming for the updated files for 0.9.8!
Thank you to @kuplion for the updated files for 1.0.2!

NOTE: The default files includes a TON of uniforms that you may not want to start a player with. I recommend you edit those lists to include only civilian clothes.

6 people like this

Share this post


Link to post
Share on other sites
Advertisement

Just going to bump this since it was finally approved by a moderator. :)

Share this post


Link to post
Share on other sites

Posted (edited)

i like the idea, even if i thing, that is not really useful for our servers! gonna check it out anyways! 

xD

 

 

edit:

WOW, yes, works as supposed to! awesome! after a first test, its fuc*** usefull! didnt know, that u changed the bambi overall as well! 

perfect! thx

 

Edited by John Lemon

Share this post


Link to post
Share on other sites
On 6/2/2016 at 8:34 PM, John Lemon said:

i like the idea, even if i thing, that is not really useful for our servers! gonna check it out anyways! 

xD

WOW, yes, works as supposed to! awesome! after a first test, its fuc*** usefull! didnt know, that u changed the bambi overall as well! 

perfect! thx

The bambi coveralls is what pushed me to do this. I hated that they had 40 slots but other clothes had 20 or 30. There was never initiative to take those items. Now this spawns you with a random outfit other than the coveralls. I'm sure this could be expanded to give a player a weapon if you wanted, but I don't want my new spawns to have a weapon so I left that out. 

Share this post


Link to post
Share on other sites

That's nice, but how to give new players money? 10,000 coins for example, and 1 Respect

Share this post


Link to post
Share on other sites
5 minutes ago, koriaba said:

That's nice, but how to give new players money? 10,000 coins for example, and 1 Respect

That's not really within the capabilities of this script. I think the poptabs has to be done in the database. You'll have to search the forum for that answer.

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.