From 1642ec65eaf83b8c1a6b1ea44d65331475fd3bf2 Mon Sep 17 00:00:00 2001 From: Mittendrein Markus Date: Fri, 4 Mar 2016 21:27:02 +0100 Subject: Move some mode-specific stuff into the modes' scripts --- TemplePushing.c4s/Modes.c4d/FestivePushing.c4d/Script.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'TemplePushing.c4s/Modes.c4d/FestivePushing.c4d/Script.c') diff --git a/TemplePushing.c4s/Modes.c4d/FestivePushing.c4d/Script.c b/TemplePushing.c4s/Modes.c4d/FestivePushing.c4d/Script.c index db6da20..cea0302 100644 --- a/TemplePushing.c4s/Modes.c4d/FestivePushing.c4d/Script.c +++ b/TemplePushing.c4s/Modes.c4d/FestivePushing.c4d/Script.c @@ -2,4 +2,19 @@ #strict 2 +static const MODE_Festive = FSTV; + protected func Activate(int player) { MessageWindow(GetDesc(), player); } + +func Initialize() +{ + if (ambienceEnabled) CreateObject(SNOR, 0, 0, NO_OWNER); + SetSkyAdjust(RGB(189, 189, 255)); + SetGamma(RGB(0, 0, 50), RGB(100, 100, 128), RGB(200, 200, 255)); + SetScrollSpells([MICS, ABLA, MFWV, MLGT, MGPL, ICNL, AFST, MDFL, MGCY, MATT]); +} + +func ModeName() { return "$ModeName$"; } +func SpawnpointDefinitions() { return [[TSWB, 7], [SCRL, 5], [ICE1, 3]]; } +func SpawnpointInterval() { return 600; } +func AmbienceSounds() { return [["FestiveAmbience.ogg", 25]]; } -- cgit v1.2.3-54-g00ecf