Back to Workshop

CentralEconomy

by CashewSan
CentralEconomy

Summary

Central Economy allows for dynamic spawning of items around a map with a master config file!

Description

Similar to DayZ's Central Economy system, this mod allows you to dynamically spawn items around a map within set parameters.

These parameters include:
- Name (Should match the item prefab name I.E. the prefab "Smoke_M18_Yellow" should have the name "Smoke_M18_Yellow")
- Prefab (Defines which prefab should spawn as an entity around the map)
- Item Rotation (What should the rotation of the item be when spawning)
- Tier (Currently includes tiers 1-4, but can be configured to add more)
- Usage (Currently includes: Coast, Farm, Hunting, Industrial, Medic, Military, Police, and Town. But can be configured to add more)
- Category (Clothing, Food, Tools, Weapons)
- Item minimum and nominal counts (Minimum being minimum item count across map, Nominal being what item count should target across map)
- Item minimum and maximum quantity (if item is applicable I.E. Magazine ammo count, Jerrycan fuel amount)
- Item Lifetime (Length of time (in seconds) item can stay on the ground before despawning)
- Item Restock (Length of time (in seconds) for item to spawn upon removal)
And this is all controlled via the CE_ItemData.conf, which can be overridden to change parameters for each item.

I have included a default CE_ItemData.conf with default items and parameters for each, but I HIGHLY RECOMMEND adjusting these parameters to fit your needs.

This mod overrides almost EVERY structure in the game to add a usage zone and item spawners to it, as well as the Everon world to add tier zones. You're more than welcome to adjust your own worlds to what tier positions you prefer, BUT THE WORLD MUST INCLUDE A "CE_WorldValidationComponent" IN THE WORLD'S GAMEMODE AND HAVE TIER ZONES SET FOR IT TO SPAWN ITEMS!

System currently runs every 15 seconds for the first run through of tier item batches, then once each tier has been processed, it swaps to running every 120 seconds (2 minutes). While processing initial item batches, some minor lag will be noticeable on the server, but after a couple to a few minutes, it's virtually unnoticeable (from my testing, large populated servers may change this as I was not able to test in that environment). More optimization and bug fixes will happen over time :)

IF YOU EXPERIENCE ISSUES OR BUGS, PLEASE REPORT THEM DIRECTLY TO ME IN THE ARMA DISCORD @cashewsan

Future Plans:
- Add Arland map tiers
- Add ability for Dynamic Event loot spawns
- Add ability to check for items inside storages
- Further bug fixes and optimization

Known Issues:
- Some items that spawn may be invisible to the player (it's actually just clipping with the building, will fix as it's reported)
- Some spawns don't spawn items (probably due to the item data config not being diverse enough)

License

Arma Public License (APL)

Rating
100%
Version
1.0.0
Game Version
1.2.0.124
Version size
244.90 KB
Downloads
135
Created
30.10.2024
Last Modified
30.10.2024
ID
6265238BFD2AC936