From c27cf4b89eec901e43ffc42213b311b83492e2a3 Mon Sep 17 00:00:00 2001 From: Ben C Date: Sat, 26 Nov 2022 01:30:13 +0000 Subject: [PATCH] Updated Schemas --- NewHorizons/Schemas/body_schema.json | 47 ++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/NewHorizons/Schemas/body_schema.json b/NewHorizons/Schemas/body_schema.json index 6dfc5b3b..7352718a 100644 --- a/NewHorizons/Schemas/body_schema.json +++ b/NewHorizons/Schemas/body_schema.json @@ -2573,6 +2573,13 @@ "description": "Add ruleset volumes to this planet.", "$ref": "#/definitions/RulesetModule" }, + "speedTrapVolumes": { + "type": "array", + "description": "Add speed trap volumes to this planet. Slows down the player when they enter this volume.", + "items": { + "$ref": "#/definitions/SpeedTrapVolumeInfo" + } + }, "visorEffects": { "description": "Add visor effect volumes to this planet.", "$ref": "#/definitions/VisorEffectModule" @@ -3391,6 +3398,46 @@ } } }, + "SpeedTrapVolumeInfo": { + "type": "object", + "additionalProperties": false, + "properties": { + "position": { + "description": "The location of this volume. Optional (will default to 0,0,0).", + "$ref": "#/definitions/MVector3" + }, + "radius": { + "type": "number", + "description": "The radius of this volume.", + "format": "float", + "default": 1.0 + }, + "parentPath": { + "type": "string", + "description": "The relative path from the planet to the parent of this object. Optional (will default to the root sector)." + }, + "isRelativeToParent": { + "type": "boolean", + "description": "Whether the positional coordinates are relative to parent instead of the root planet object." + }, + "rename": { + "type": "string", + "description": "An optional rename of this volume." + }, + "speedLimit": { + "type": "number", + "description": "The speed the volume will slow you down to when you enter it.", + "format": "float", + "default": 10.0 + }, + "acceleration": { + "type": "number", + "description": "How fast it will slow down the player to the speed limit.", + "format": "float", + "default": 3.0 + } + } + }, "VisorEffectModule": { "type": "object", "additionalProperties": false,