summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/Sections.c4d/SectCloudTemple.c4d/Script.c
diff options
context:
space:
mode:
authorJan <>2015-07-10 18:11:22 +0200
committerJan <_>2015-07-10 18:47:01 +0200
commitf1ece16c08d8c01e1d49a25f0314a96c021e73cb (patch)
tree9bc9f547f2524dee8e62f168f317df465a6cbcdd /TemplePushing.c4s/Sections.c4d/SectCloudTemple.c4d/Script.c
parent80b15646d73587f4e15a2897314692b58aa1a47f (diff)
downloadtempelschubsen-f1ece16c08d8c01e1d49a25f0314a96c021e73cb.tar.gz
tempelschubsen-f1ece16c08d8c01e1d49a25f0314a96c021e73cb.zip
r0.921
Diffstat (limited to 'TemplePushing.c4s/Sections.c4d/SectCloudTemple.c4d/Script.c')
-rw-r--r--TemplePushing.c4s/Sections.c4d/SectCloudTemple.c4d/Script.c56
1 files changed, 32 insertions, 24 deletions
diff --git a/TemplePushing.c4s/Sections.c4d/SectCloudTemple.c4d/Script.c b/TemplePushing.c4s/Sections.c4d/SectCloudTemple.c4d/Script.c
index b2f1c25..ead2b17 100644
--- a/TemplePushing.c4s/Sections.c4d/SectCloudTemple.c4d/Script.c
+++ b/TemplePushing.c4s/Sections.c4d/SectCloudTemple.c4d/Script.c
@@ -4,35 +4,36 @@
public func SectionName() { return "CloudTemple"; }
-public func SpawnpointLocations() { return [[70, 100], [140, 310], [1105, 310], [431, 443], [830, 160], [420, 160], [300, 90], [230, 440], [320, 310], [530, 90], [625, 160],[720, 90], [930, 310], [820, 440], [950, 90], [1180, 100]]; }
+public func SpawnpointLocations() { return [[70, 100], [140, 310], [1105, 310], [431, 443], [830, 160], [420, 160], [300, 90], [230, 440], [320, 310], [530, 90], [625, 160],[720, 90], [930, 310], [820, 440], [950, 90], [1180, 100], [1020, 440]]; }
protected func Initialize()
{
Music();
- // Create "Clouds"
- for (var i; i < 100; ++i)
+ if (ambienceEnabled)
{
- if (mode == MODE_Apocalyptic)
- {
- CreateParticle("Fog3", Random(LandscapeWidth()), RandomX(570, 700) -10, 0, 0, RandomX(1250, 2000), RGB(255,0,0));
- }
- else
+ // Create "Clouds"
+ for (var i; i < 80; ++i)
{
- CreateParticle("Fog3", Random(LandscapeWidth()), RandomX(570, 700) -10, 0, 0, RandomX(1250, 2000));
+ if (mode == MODE_Apocalyptic)
+ {
+ CreateParticle("Fog3", Random(LandscapeWidth()), RandomX(570, 700) -10, 0, 0, RandomX(1250, 2000), RGB(255,0,0));
+ }
+ else
+ {
+ CreateParticle("Fog3", Random(LandscapeWidth()), RandomX(570, 700) -10, 0, 0, RandomX(1250, 2000));
+ }
}
- }
-
- if (ambienceEnabled)
- {
- // Create background sound
- if (mode != MODE_Apocalyptic && mode != MODE_Festive) SoundLevel("CloudAmbience", 50);
// Create sun and lenseflare
CreateObject(SONE, 0, 0, NO_OWNER);
CreateObject(LENS, 0, 0, NO_OWNER);
+
+ // Create crystals
+ CreateObject(BCRY, LandscapeWidth()/2, 171, NO_OWNER);
+ // CreateObject(BCRS, 100, 100, NO_OWNER);
}
-
+
if (mode == MODE_Apocalyptic)
{
// Rock fall
@@ -45,20 +46,27 @@ protected func Initialize()
AddEffect("FireRain", 0, 20, 1);
CreateObject(FRRN, 0, 0, NO_OWNER);
- // Background sound
- SoundLevel("ExtremeAmbience", 100);
-
// Modulate brick and crystal colour
SetMaterialColor(Material("Brick"), 100, 0, 0, 150, 0, 0, 20, 0, 0);
SetMaterialColor(Material("SkyCrystal"), 245, 0, 0, 255, 0, 0, 20, 0, 0);
+
+ // Modulate huge/giant crystal colour
+ // SetColor
}
if (mode == MODE_Festive)
- {
- // Chilly ambience
- SoundLevel("FestiveAmbience", 60);
+ {
+ // Modulate material colour
+ SetMatAdjust(RGBa(175, 230, 255, 55));
- // Modulate brick colour
- SetMaterialColor(Material("Brick"), 100, 100, 230, 150, 150, 255, 30, 30, 50);
+ // Modulate crystal colour
+ SetClrModulation(RGBa(175, 230, 255, 55), FindObject(BCRY));
}
+}
+
+public func SectionAmbienceSounds()
+{
+ if (mode == MODE_Festive) return [["FestiveAmbience.ogg", 25]];
+ else if (mode == MODE_Apocalyptic) return [["ExtremeAmbience.ogg", 75]];
+ else return [["CloudAmbience.ogg", 50]];
} \ No newline at end of file