k1lly0u
Call an airstrike using a supply signal/chat command

Supported Games

Call an airstrike either by throwing a supply signal or using a chat command (for players with permission and/or admin.)

Permissions

  • airstrike.signal.strike -- Allows players to use a supply signal to call an airstrike
  • airstrike.signal.squad -- Allows players to use a supply signal to call a squad strike
  • airstrike.purchase.strike -- Allows players to purchase an airstrike
  • airstrike.purchase.squad -- Allows players to purchase a squad strike
  • airstrike.chat.strike -- Allows players to call an airstrike via chat commands
  • airstrike.chat.squad -- Allows players to call a squad strike via chat commands
  • airstrike.ignorecooldown -- Players with this permission will not be affected by cooldowns

Chat Commands

  • /airstrike -- Show available airstrike commands
  • /airstrike signal <strike/squad> -- Turn a supply signal into an airstrike make to call either a squad strike or airstrike (requires: airstrike.signal.strike or airstrike.signal.squad)
  • /airstrike buy <strike/squad> -- Purchase an airstrike/squadstrike to current position (costs are set in the config, requires: airstrike.purchase.strike or airstrike.purchase.squad)
  • /airstrike call <strike/squad> -- Call an airstrike/squadstrike on current position
  • /airstrike call <strike/squad> <x> <z> -- Call an airstrike/squadstrike to the specified co-ordinates
  • /airstrike call <strike/squad> <playername> -- Call an airstrike/squadstrike on another player (requires: airstrike.chat.strike or airstrike.chat.squad)

Console Commands

  • airstrike <strike/squad> random -- Call a strike to a random location
  • airstrike <strike/squad> -- Call a strike on a player
  • airstrike <strike/squad> <x> <z> -- Call a strike to co-ordinates X Y Z

Cooldowns

Cooldowns will affect all the various methods to call a strike. If you have a squadstrike cooldown you will not be able to call a squadstrike from an alternative method. Cooldowns can be ignored by granting the player the permission airstrike.ignorecooldown.

Strike Purchases

You can allow players to purchase airstrikes to their position. The cost to buy can be set in the config. You can also specify RP (Server Rewards) or Coins (Economics) as part of the cost.

To include RP in the cost set the shortname to "RP" and the amount as the value.To include coins in the cost set the shortname to "Economics" and the amount as the value

"Cost to purchase a standard strike (shortname, amount)": {
      "RP": 50,
      "Economics": 100
    },

Developer API

bool isStrikePlane(CargoPlane plane) // returns true if plane is a strike plane

Configuration

{
  "Cooldown Options": {
    "Squad cooldown time (seconds)": 3600,
    "Strike cooldown time (seconds)": 3600,
    "Use cooldown timers": true
  },
  "Other Options": {
    "Broadcast strikes to chat": true,
    "Can call squad strikes using a supply signal": true,
    "Can call standard strikes using a supply signal": true,
    "Random timer (minimum, maximum. In seconds)": [
      1800,
      3600
    ],
    "Use random airstrikes": true,
    "Use random squad strikes": true
  },
  "Plane Options": {
    "Distance from target to engage": 900.0,
    "Flight speed (meters per second)": 105.0
  },
  "Purchase Options": {
    "Can purchase squad strike": true,
    "Can purchase standard strike": true,
    "Cost to purchase a squad strike (shortname, amount)": {
      "metal.refined": 100,
      "targeting.computer": 1,
      "techparts": 50
    },
    "Cost to purchase a standard strike (shortname, amount)": {
      "metal.refined": 50,
      "targeting.computer": 1
    },
    "Require permission to purchase squad strike": true,
    "Require permission to purchase strike": true
  },
  "Rocket Options": {
    "Accuracy of rocket (a lower number is more accurate)": 1.5,
    "Amount of rockets to fire": 15,
    "Chance of a fire rocket (when using both types)": 4,
    "Damage modifier": 1.0,
    "Interval between rockets (seconds)": 0.6,
    "Speed of the rocket": 110.0,
    "Type of rocket (Normal, Napalm)": "Normal",
    "Use both rocket types": true
  }
}

Squadron Strike

https://youtu.be/YdjBzx24-1s

MIT License


Copyright (c) 2019 k1lly0u


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:


The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.