k1lly0u
Custom event that adds meteor showers to the game

Supported Games

This plugin adds random meteor showers to the game. Meteors drop resources and have a chance to start a fire.https://www.youtube.com/watch?v=3l8_Qaa0UWQ

Admin Commands

  • /rof random - Start random event right now. (does not reset the timed event)
  • /rof intervals <time> - Sets the time(seconds) between the events. Set to zero to disable timed events.
  • /rof droprate <multiplier> - Sets the multiplier on dropped items. Set to zero to disable item drops.
  • /rof onplayer <player name> - Start event on a player's position. If player name is not specified, it will be called on your position.
  • /rof onplayer_extreme <player name> - Start fast paced, small area event on a player's position. If player name is not specified, it will be called on your position.
  • /rof onplayer_mild <player name> - Start slow paced, large area event on a player's position. If player name is not specified, it will be called on your position.
  • /rof barrage - Launches a barrage of rockets in the direction you are looking. (aim this carefully)
  • /rof togglemsg - Toggles event notifications.
  • /rof damagescale <amount> - Sets the damage done by meteors. 1.0 is the default rocket damage, 0.5 is 50%, 0.25 is 25% etc

Console Commands

  • rof.random - Start random event right now. (does not reset the timed event)
  • rof.onposition x z - Start event at specified coordinates.

Configuration

{
  "BarrageSettings": { // Settings for the rocket barrage
    "NumberOfRockets": 20,
    "RocketDelay": 0.33, // Time between rockets
    "RocketSpread": 16.0
  },
  "DamageControl": {
    "DamageMultiplier": 0.2 // Global damage modifier for "meteors"
  },
  "Options": {
    "EnableAutomaticEvents": true, // Toggle events starting automatically
    "EventTimers": {
      "EventInterval": 30, // Standard time between events
      "RandomTimerMax": 45,
      "RandomTimerMin": 15,
      "UseRandomTimer": false // Activate random timers using a value between the min and max setting
    },
    "GlobalDropMultiplier": 1.0, // Multiplier for item drops
    "NotifyEvent": true // Broadcast event
  },
  "z_IntensitySettings": { // Settings for each event type
    "Settings_Extreme": {
      "Duration": 30, // Time in seconds the event will last
      "FireRocketChance": 10, // The chance of getting a fire rocket (ie 1 in 10)
      "ItemDropControl": {
        "EnableItemDrop": true, // Toggle item drops
        "ItemsToDrop": [
          {
            "Maximum": 400, // Maximum amount of item to drop
            "Minimum": 250, // Minimum amount of item to drop
            "Shortname": "stones" // Item shortname
          },
          {
            "Maximum": 300,
            "Minimum": 125,
            "Shortname": "metal.fragments"
          },
          {
            "Maximum": 50,
            "Minimum": 20,
            "Shortname": "metal.refined"
          },
          {
            "Maximum": 120,
            "Minimum": 45,
            "Shortname": "sulfur.ore"
          }
        ]
      },
      "Radius": 100.0, // The radius in which the rockets will fall
      "RocketAmount": 70 // The amount of rockets to be launched
    },
    "Settings_Mild": {
      "Duration": 240,
      "FireRocketChance": 30,
      "ItemDropControl": {
        "EnableItemDrop": true,
        "ItemsToDrop": [
          {
            "Maximum": 120,
            "Minimum": 80,
            "Shortname": "stones"
          },
          {
            "Maximum": 50,
            "Minimum": 25,
            "Shortname": "metal.ore"
          }
        ]
      },
      "Radius": 500.0,
      "RocketAmount": 20
    },
    "Settings_Optimal": {
      "Duration": 120,
      "FireRocketChance": 20,
      "ItemDropControl": {
        "EnableItemDrop": true,
        "ItemsToDrop": [
          {
            "Maximum": 250,
            "Minimum": 160,
            "Shortname": "stones"
          },
          {
            "Maximum": 120,
            "Minimum": 60,
            "Shortname": "metal.fragments"
          },
          {
            "Maximum": 50,
            "Minimum": 20,
            "Shortname": "hq.metal.ore"
          }
        ]
      },
      "Radius": 300.0,
      "RocketAmount": 45
    }
  }
}

Credits

  • emu, for the original version of this plugin

MIT License


Copyright (c) 2020 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.