Skip to content

limonovthesecond2/vela-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vela Attack Logic

Units automatically repair near the nearest active repair turret if it’s not too far away. They will approach to the nearest enemy core if there are no dangerous enemy units or turrets around them. If a unit can’t land to attack, it switches to kamikaze mode, flying straight at the enemy until it lands or explodes. You can select the desired bomb type in the sorter or place an unassigned one. You can also direct units to attack automatically repairing them

How to use

The easiest way is to download vela-ai-scheme.msch and import it from mindustry's Schematics menu.

  1. Open vela-ai-scheme.msch file
  2. Click the Download button (the icon on the top right):

Download-file

  1. Launch Mindustry
  2. Open DatabaseSchematics
  3. Click Import SchematicsImport File, and select the downloaded .msch file

Note

There’s also a version optimized for the Eradication Rapid server: vela-ai-scheme-rapid.msch

Development

The source code is written in MindCode, so, please, read the documentation first if you are not already familiar with it. For syntax highlighting, you can use VSCode with Mindcode extension.

The scheme consists of 2 cloned Main hyperprocessors and 1 Message microprocessor.

Their purpose:

  • Main: All logic related to units, including repair, bomb loading, attack, approach etc
  • Message: Writes messages, defines the item in the unloader/item source and enables the logic if the player controls the arc turret

About

Attack Logic for Vela units in Mindustry

Topics

Resources

Stars

Watchers

Forks

Contributors