Search the Community
Showing results for tags 'fortifications'.
Found 1 result
-
[Release] Collapsed Pattern Generator
mrcurry posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I had need of a way to make new decent looking defenses for anti-air and artillery sites on the fly. So I wrote a little tile layer, called it CPG, and realized someone else might find this useful so here we are. What does CPG do? It takes a predefined set of tiles and lays them in an organic-looking pattern according to the connection rules of the tiles. It provides functions for the mission maker to easily create and edit tilesets as well as spawn patterns made from those tilesets in both the 3DEN editor as well as during mission runtime. The TL;DR is it makes this happen: How does it work? Tilesets are defined in the editor and exported to memory and/or .sqf-file. Tiles come in a limited number of types related to how they may connect. Each type can have multiple variants of which 1 is randomly selected on generation of each tile. A funky hybrid of BFS and Wave Function Collapse algorithm generates a grid and places the tiles according to the connection rules. How do I use it? First see installation steps below. Once installed you can activate the generator by calling CPG_fnc_generate (See below spoiler for examples). The "generate" function differentiates between 3DEN and mission runtime and spawns the objects appropriately. Installation Download the demo mission: https://www.dropbox.com/s/b5gzyv4q3im0tcu/CPG_demo_v1_1.zip?dl=0 Copy the CPG folder to your mission. In your description.ext > CgFunctions class include the file "CPG\functions.ext" like so: class CfgFunctions { #include "CPG\functions.ext" }; Creating your own tileset Here's a quick guide how to create your own tilesets for the generator: If you do create your own tilesets and feel like sharing please post them to this thread. 🙂 Old releases: v1.0 - https://www.dropbox.com/s/e8p4n46cvp5acb4/CPG_demo_v1_0.zip?dl=0- 4 replies
-
- 8
-
- fortifications
- generator
-
(and 5 more)
Tagged with: