Alright here's what I got
https://github.com/SpyderBlack723/Spyder-Ambiance
To install, just download and put the SpyderAmbiance script inside the root of your mission folder. Then add a line to your init.sqf in order to initialize the script (examples included in download)
Just a heads up, it's not the most graceful script but it gets the job done. It was written awhile ago and is in desperate need of a rework. It currently supports
- Spawning animal herds
- Spawning civilian vehicles
- Spawning terrorist vehicles (civ vehicles in disguise)
- Blacklisted areas via markers
- Debug
Terrorist vehicles are civilian vehicles with insurgents inside. If they detect you, they may choose from an array of actions to respond with.
Right now unit types are auto-detected based on maps and mods being used. It only supports Leights Opfor Pack, RDS Civilians, CAF Aggressors, and a few default units to fallback to in case no mods could be detected to use. You can custom define units at the top of getUnitTypes.sqf. This is something I would like to improve upon in the future as well, it's kind of annoying having to go into the file itself to define custom unit classnames. Note, they must be wrapped in quotes ex. "C_man_1"
The locations it chooses are ["NameVillage","NameCity","NameCityCapital","NameLocal"]
You can use blacklist markers (examples inside the init.sqf in the download) to stop the script from spawning anything in certain areas.
Vehicles may not be as heavy as you may want, this could be changed rather easily by editing a few numbers. Performance will lessen with the more vehicles spawned per zone though. (This would be a cool bit to allow the user to customize as well)
Objects are spawned when at least one player is in range of a location (currently 1000m or so, would like to make it customizable in the future). The objects will then despawn when all players leave that area.
Known Issues: Seems to execute several times at the very start of the mission. I'm not sure what's causing this as I've even included a check to try and combat this. If it becomes a big problem at the start of missions, just place a 1100 x 1100m blacklist marker over your base location.
Also, remember this was kind of released at random due to the request. There may be issues, report any you may see and I'll try to deal with them.