nkv123 / avorion_mods

avorion mods

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

avorion_mods

added files

  1. data/scripts/entity/ai/lazymine.lua
  2. data/scripts/entity/ai/lazymineall.lua
  3. data/scripts/entity/ai/lazysalvage.lua
  4. data/scripts/entity/ai/mineall.lua
  5. data/scripts/entity/ai/preparetransfer.lua
  6. data/scripts/entity/ai/finishtransfer.lua
  7. data/scripts/commands/turrets.lua
  8. data/scripts/commands/upgrades.lua
  9. data/scripts/commands/uturrets.lua

modded files

  1. data/scripts/entity/craftorders.lua
  2. data/scripts/lib/defaultscripts.lua

existing mods

  1. loglevels from https://github.com/dirtyredz

Script explanation and changes

lazymine

highest priority is mining first, check if there is an asteroid to mine, then, if there's no asteroid, check if there is loot to collect.

lazysalvage

highest priority is wrecking the wreckages first, check if there is a wreckage to mine then, if there's no wreckage, check if there is loot to collect

lazymineall

check the sector for an asteroid if there is one highest priority is mining first, check if there is an asteroid to mine then, if there's no asteroid, check if there is loot to collect

mineall

check the sector for an asteroid if there is one highest priority is collecting the resources first, check if there is loot to collect then, if there's no loot, check if there is an asteroid to mine

preparetransfer

follows waypoints:

  1. 5km in front of player ship
  2. 1.5 km in front of player ship, slowly approach
  3. intersection with radius of player ship sphere and the front vector of player ship
  4. intersection with radius of player ship sphere and the above vector, then go passive.

range from player ship and commanded ship should be 0 km sometimes 0.01 km, after that transfer of cargo/crew/fighters between them is possable.

finishtransfer

follows waypoints:

  1. intersection with radius x 2 of player ship sphere and the above vector which makes range is 0 km
  2. intersection with radius of player ship sphere and the back vector of player ship
  3. 1.5 km in behind of player ship, normal speed after waypoint
  4. 5km in behind of player ship, then go passive.

turrets

adds 12 cannons, lasers, railguns plasmagun, lightningguns, teslaguns, pulseguns turrets

uturrets

adds 12 mining, salvage, hull repair, shield repair turrets

upgrades

adds 5 hyperspace, minining systems, tradeoverview, civiltcs, militarycts, scanboosters, radarboosters

craftorders

added commands for lazy mine, lazy salvage, lazy mine all, mine all, preparetransfer, finishtransfer. added command to add entitydbg.lua to player entities

defaultscripts.lua

added entitydbg.lua to ships added entitydbg.lua to stations

usage

  • for turrets type /turrets in console
  • for uturrets type /uturrets in console
  • for upgrades type /upgrades in console

About

avorion mods


Languages

Language:HTML 50.1%Language:Lua 49.9%