From 9edc9c065ad153567be8112a226538d8591fcf42 Mon Sep 17 00:00:00 2001 From: ArthurErlich Date: Sun, 4 Oct 2026 22:33:47 +0200 Subject: [PATCH] feat(mod): add hello-world script mod Co-Authored-By: Claude Sonnet 5.5 --- mod/_metadata/modinfo.json | 15 +++++++++++++++ mod/content/mod.script.tl | 11 +++++++++++ mod/mod.json | 13 +++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 mod/_metadata/modinfo.json create mode 100644 mod/content/mod.script.tl create mode 100644 mod/mod.json diff --git a/mod/_metadata/modinfo.json b/mod/_metadata/modinfo.json new file mode 100644 index 0000000..aaee126 --- /dev/null +++ b/mod/_metadata/modinfo.json @@ -0,0 +1,15 @@ +{ + "authors": [ + { + "name": "haylan", + "role": "CREATOR" + } + ], + "description": "Lets road vehicles overtake slower vehicles (work in progress).", + "summary": "Vehicle overtaking (WIP)", + "name": "Overtake", + "tags": [ + "script" + ], + "url": "" +} diff --git a/mod/content/mod.script.tl b/mod/content/mod.script.tl new file mode 100644 index 0000000..1ffcafa --- /dev/null +++ b/mod/content/mod.script.tl @@ -0,0 +1,11 @@ +local mod = {} + +mod.preRunFn = function(_configDict : {{string, string}}, _allModParams : {string : {string : integer}}, _baseConfig : BaseConfig) + print("[haylan_tf3_overtake] hello from preRunFn") +end + +mod.postRunFn = function(_configDict : {{string, string}}, _allModParams : {string : {string : integer}}) + print("[haylan_tf3_overtake] hello from postRunFn") +end + +return mod diff --git a/mod/mod.json b/mod/mod.json new file mode 100644 index 0000000..524d4d7 --- /dev/null +++ b/mod/mod.json @@ -0,0 +1,13 @@ +{ + "modId": "haylan_tf3_overtake", + "revision": 1, + "severityAdd": "None", + "severityRemove": "Warning", + "cosmetic": false, + "preRunScript": { + "fileName": "haylan_tf3_overtake::mod.script@preRunFn" + }, + "postRunScript": { + "fileName": "haylan_tf3_overtake::mod.script@postRunFn" + } +}