Tides

Tides 1.0.0

No permission to download
Compatible With:
  1. Oxide
  2. Carbon
Features :

  • Automated ocean tide system.
  • Adjustable tide interval, step size, and hold duration
  • Optional tide milestone chat messages
  • Developer API included for plugin integration
  • Support for chat and console overrides and settings.
Permissions :

  • tides.admin : Allows use of the tide commands.

Commands : Console and Chat
  • tide pause
  • tide resume
  • tide set <value>
  • tide clear
  • tide max <value>
  • tide step <value>
  • tide interval <seconds>
  • tide hold <seconds>
  • tide rising
  • tide falling
Configuration :

JSON:
{
  "Tides Enabled": true,
  "Update Interval Seconds": 1.0,
  "Increment Amount Per Tick": 0.005,
  "Maximum Tide Level": 1.15,
  "Time Between Tides Seconds": 600.0,
  "Send Tide Milestone Messages": false,
  "Debug": false,
  "Plugin Version (Do not edit)": "1.0.0"
}

Language :

JSON:
{
  "Prefix": "[Tides]",
  "NoPermission": "You don't have permission to use this command.",
  "Usage": "Usage: tide pause | resume | set <value> | clear | max <value> | step <value> | interval <seconds> | hold <seconds> | rising | falling",
  "TidesPaused": "Tides paused.",
  "TidesResumed": "Tides resumed.",
  "ManualSet": "Manual ocean level override enabled: {0:0.###}.",
  "ManualCleared": "Manual override cleared. Incremental tides resumed.",
  "MaxSet": "Maximum tide level set to {0:0.###}.",
  "StepSet": "Increment amount per tick set to {0:0.###}.",
  "IntervalSet": "Update interval set to {0:0.###} seconds.",
  "HoldSet": "Time between tides set to {0:0.###} seconds.",
  "DirectionRising": "Tide direction set to rising.",
  "DirectionFalling": "Tide direction set to falling.",
  "InvalidValue": "Invalid value.",
  "ReachedHigh": "High tide reached. Ocean level: {0:0.0}",
  "ReachedLow": "Low tide reached. Ocean level: {0:0.0}"
}

Developer API :

C#:
API

object GetTideState()
// Returns the current tide state.
// Possible values: Rising, HighTide, Falling, LowTide

object GetTideStateIndex()
//Returns the tide state index.
// 0 = Rising
// 1 = HighTide
// 2 = Falling
// 3 = LowTide

object GetCurrentTideLevel()
//Returns the current ocean level.

object TideIsRising()
//Returns true if the tide is currently rising.

object TideIsFalling()
//Returns true if the tide is currently falling.

object TideIsHigh()
//Returns true if the tide is currently at high tide.

object TideIsLow()
//Returns true if the tide is currently at low tide.

object GetTimeUntilNextStateChange()
//Returns the seconds until the next tide state change.

object GetTimeUntilRising()
//Returns the seconds until the tide begins rising.

object GetTimeUntilFalling()
//Returns the seconds until the tide begins falling.

object GetTimeUntilHighTide()
//Returns the seconds until the next high tide.

object GetTimeUntilLowTide()
//Returns the seconds until the next low tide.

object GetHoldRemaining()
//Returns the remaining hold time during high or low tide.
Author
KrunghCrow
Downloads
0
Views
101
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from KrunghCrow

Back
Top
CodeForged Cart

CodeForged Cart