Jump to content
Sign in to follow this  
champ-1

Categorized Crate Filler Script

Recommended Posts

Categorized Crate Filler Script v1.3

Download from Dropbox (guaranteed latest version)

Download from Armaholic

With this script you will be able to fill and refill containers with chosen category of items, randomize amount of items in container as well as spawn certain categories with predefined chance.

How to use:

1. Place "CrateFiller.sqf" in you mission folder.

2. Create any container (box or vehicle) in mission editor and add this to it's Init line: nul = [this] execVM "CrateFiller.sqf";

3. Edit categories in "CrateFiller.sqf" to add whatever you want (see examples below).

ccf1.jpg

ccf2.jpg ccf3.jpg

Edit Array for each category to customize crate content for your liking.

_CATEGORY_NAME = [

1 - Amount of items (Number),

2 - Additional random amount (Number),

3 - Probability of appearance (Number),

4 - Multiply amount of items by players count on the server (Boolean)

];

Examples:

_he_nades = [20,10,70,false];

Will spawn 20-30 HE underbarrel grenades, 20-30 frag grenades and 20-30 mini grenades with 70% chance for every type of grenades.

_at_mines = [0,5,100,true];

Will spawn 0-5 AT mines and 0-5 M6 SLAM mines with 100% chance if there is one player on the server.

Or 0-50 of these items if there are 10 players on the server.

All items categories:

//WEAPONS
_B_rifles = [0,0,100,false];
_B_rifles_black = [0,0,100,false];
_B_lmg = [0,0,100,false];
_B_m_rifles = [0,0,100,false];
_B_pdw = [0,0,100,false];

_O_rifles = [0,0,100,false];
_O_lmg = [0,0,100,false];
_O_m_rifles = [0,0,100,false];
_O_pdw = [0,0,100,false];

_I_rifles = [0,0,100,false];
_I_lmg = [0,0,100,false];
_I_m_rifles = [0,0,100,false];
_I_pdw = [0,0,100,false];

_amfib_rifle = [0,0,100,false];
_m320_rifle = [0,0,100,false];
_gm6_rifle = [0,0,100,false];

//AMMO
_ammo = [0,0,100,false];
_tracer = [0,0,100,false];
_lmg_ammo = [0,0,100,false];
_lmg_tracer = [0,0,100,false];
_m_ammo = [0,0,100,false];
_sp_ammo = [0,0,100,false];
_amfib_ammo = [0,0,100,false];
_pdw_ammo = [0,0,100,false];

//LAUNCHERS
_NLAW_launcher = [0,0,100,false];
_RPG_launcher = [0,0,100,false];
_Titan_launcher = [0,0,100,false];
_AA_launcher = [0,0,100,false];
_launch_ammo = [0,0,100,false];
_aa_ammo = [0,0,100,false];

//NADES
_he_nades = [0,0,100,false];
_3rnd_he_nades = [0,0,100,false];
_smoke = [0,0,100,false];
_3rnd_smoke = [0,0,100,false];
_B_ir_nades = [0,0,100,false];
_O_ir_nades = [0,0,100,false];
_I_ir_nades = [0,0,100,false];

//EXPLOSIVES
_at_mines = [0,0,100,false];
_ap_mines = [0,0,100,false];
_exp_charges = [0,0,100,false];
_satch_charges = [0,0,100,false];

//ATTACHMENTS
_optics = [0,0,100,false];
_sp_optics = [0,0,100,false];
_suprs = [0,0,100,false];
_attach = [0,0,100,false];

//OTHER ITEMS
_items = [0,0,100,false];
_basic_items = [0,0,100,false];
_kits = [0,0,100,false];
_firstaid = [0,0,100,false];
_rngfinder = [0,0,100,false];
_ldesignator = [0,0,100,false];
_B_uav_term = [0,0,100,false];
_O_uav_term = [0,0,100,false];
_I_uav_term = [0,0,100,false];

//BACKPACKS
_B_backpack_160 = [0,0,100,false];
_B_backpack_200 = [0,0,100,false];
_B_backpack_320 = [0,0,100,false];
_B_UAV_bag = [0,0,100,false];

_O_backpack_240 = [0,0,100,false];
_O_backpack_320 = [0,0,100,false];
_O_UAV_bag = [0,0,100,false];

_I_backpack_240 = [0,0,100,false];
_I_backpack_320 = [0,0,100,false];
_I_UAV_bag = [0,0,100,false];

_parachute = [0,0,100,false];

_dome_tent_backpack = [0,0,100,false];
_A_tent_backpack = [0,0,100,false];
_green_sleeping_bag_backpack = [0,0,100,false];
_brown_sleeping_bag_backpack = [0,0,100,false];

//HEADGEAR
_B_ech_headgear = [0,0,100,false];
_B_ech_light_headgear = [0,0,100,false];
_B_sf_headgear = [0,0,100,false];
_B_crew_headgear = [0,0,100,false];
_B_heli_pilot_headgear = [0,0,100,false];
_B_pilot_headgear = [0,0,100,false];
_B_cap_headgear = [0,0,100,false];

_O_protector_headgear = [0,0,100,false];
_O_crew_headgear = [0,0,100,false];
_O_heli_pilot_headgear = [0,0,100,false];
_O_pilot_headgear = [0,0,100,false];
_O_cap_headgear = [0,0,100,false];

_I_mich_headgear = [0,0,100,false];
_I_crew_headgear = [0,0,100,false];
_I_heli_pilot_headgear = [0,0,100,false];
_I_pilot_headgear = [0,0,100,false];
_I_cap_headgear = [0,0,100,false];

//UNIFORM
_B_uniform = [0,0,100,false];
_B_tshirt_uniform = [0,0,100,false];
_B_recon_uniform = [0,0,100,false];
_B_ghillie_uniform = [0,0,100,false];
_B_wetsuit_uniform = [0,0,100,false];
_B_heli_pilot_uniform = [0,0,100,false];
_B_pilot_uniform = [0,0,100,false];

_O_uniform = [0,0,100,false];
_O_ghillie_uniform = [0,0,100,false];
_O_wetsuit_uniform = [0,0,100,false];
_O_pilot_uniform = [0,0,100,false];

_I_uniform = [0,0,100,false];
_I_tshirt_uniform = [0,0,100,false];
_I_ghillie_uniform = [0,0,100,false];
_I_wetsuit_uniform = [0,0,100,false];
_I_heli_pilot_uniform = [0,0,100,false];
_I_pilot_uniform = [0,0,100,false];

//VESTS
_B_vest_60 = [0,0,100,false];
_B_vest_100 = [0,0,100,false];
_B_vest_120 = [0,0,100,false];
_B_rebreather = [0,0,100,false];

_O_vest_60 = [0,0,100,false];
_O_vest_100 = [0,0,100,false];
_O_vest_120 = [0,0,100,false];
_O_rebreather = [0,0,100,false];

_I_vest_60 = [0,0,100,false];
_I_vest_100 = [0,0,100,false];
_I_vest_120 = [0,0,100,false];
_I_rebreather = [0,0,100,false];

Feel free to modify, fix, do whatever. I don't care :D

Changelog:

v1.3

- new: option to create a local crate with content personal for every client

v1.26

- new: ability to refill crate when player joining game in progress

v1.25

- new: ability to multiply crate content by players count on the server

- new: added some new items

v1.21

- new: option to return container to it's original spawn position after refill

v1.2

- fix: optimized code for easier editing

v1.1

- fix: MP compatibility

v1.0

- first release

Download script with example mission!

Edited by Champ-1
Updated to v1.3

Share this post


Link to post
Share on other sites

Do NOT follow download link! Its a trojan out there.

I have my PC burned because of it! Fire from PC jump into room and burn down whole flat! My brother died in this fire!

I`m just warning you, do not download this.

P.S. Posting here via calculator from box under the brige

Share this post


Link to post
Share on other sites
Guest

Release frontpaged on the Armaholic homepage.

================================================

We have also "connected" these pages to your account on Armaholic.

This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Edited by Guest

Share this post


Link to post
Share on other sites

Updated

Not sure how to edit it on Armaholic. Doesn't seem like I have rights for that.

Edited by Champ-1

Share this post


Link to post
Share on other sites
Guest

It will be working once our new website is ready and released. Sadly due to the limitted ammount of staff we have progress is slow. However It should be done "soon". From that point on you will be able to update your own pages. For now, I have updated the pages ;)

Release frontpaged on the Armaholic homepage.

================================================

We have also "connected" these pages to your account on Armaholic.

This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Edited by Guest
updated mirror to latest

Share this post


Link to post
Share on other sites
Guest

New version frontpaged on the Armaholic homepage.

================================================

We have also "connected" these pages to your account on Armaholic.

This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×