Airstrike for Rust

Call an airstrike using a supply signal/chat command

Total Downloads: 7,667 - First Release: Dec 2, 2015 - Last Update: Jun 19, 2017

5/5, 29 likes
  1. k1lly0u
    Optional Dependencies:
    http://oxidemod.org/plugins/economics.717/
    Configuration File:
    Yes
    Call an airstrike either by throwing a supply signal or using a chat command (for players with permission &/or admin)

    Chat Commands
    /airstrike - Shows available commands to the player

    /airstrike signal <strike/squad> - Turns a supply signal into a airstrike make to call either a squad strike or airstrike (Requires: airstrike.signal.strike or airstrike.signal.squad)

    /airstrike buy <strike/squad> - Allows players to purchase a airstrike/squadstrike to their position, costs are set in the config
    (Requires: airstrike.purchase.strike or airstrike.purchase.squad)

    /airstrike call <strike/squad> - Allows players to call a airstrike/squadstrike on their position
    /airstrike call <strike/squad> <x> <z> - Allows players to call a airstrike/squadstrike to the specified co-ordinates
    /airstrike call <strike/squad> <playername> - Allows players to call a airstrike/squadstrike on another player
    (Requires: airstrike.chat.strike or airstrike.chat.squad)

    Console Commands
    airstrike <strike/squad> random - Will call a strike to a random location
    airstrike <strike/squad> <playername> - Will call a strike on a player
    airstrike <strike/squad> <x> <z> - Will call a strike to co-ordinates X Y Z

    Permissions
    airstrike.signal.strike - Allows players to use a supply signal to call a airstrike
    airstrike.signal.squad - Allows players to use a supply signal to call a squad strike
    airstrike.purchase.strike - Allows players to purchase a airstrike
    airstrike.purchase.squad - Allows players to purchase a squad strike
    airstrike.chat.strike - Allows players to call a 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

    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 (ServerRewards) 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

    Example:
    Code (C#):
    "Cost to purchase a standard strike (shortname, amount)": {
          "RP": 50,
          "Economics": 100
        },
    API
    Code (C#):
    bool isStrikePlane(CargoPlane plane) // returns true if plane is a strike plane
     
    Configuration
    Code (C#):

    {
      "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
    Pur3x, SmO.Oke, khaz-rusya and 6 others like this.