Add reddish dust to red sea. Actor by Stan, reviewed by _kali.

This was SVN commit r18543.
This commit is contained in:
elexis 2016-07-21 11:20:33 +00:00
parent 41474760e2
commit 34c26767ca
3 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<actor version="1">
<group>
<variant name="Base">
<particles file="dust_storm_reddish.xml"/>
</variant>
</group>
<material>basic_trans.xml</material>
</actor>

View file

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<particles>
<texture>art/textures/particles/blowing_sand.png</texture>
<blend mode="over"/>
<start_full/>
<constant name="emissionrate" value="2.0"/>
<uniform name="lifetime" min="15.0" max="30.0"/>
<uniform name="position.x" min="-50.0" max="50.0"/>
<uniform name="position.z" min="-50.0" max="50.0"/>
<constant name="position.y" value="3.0"/>
<uniform name="velocity.x" min="1.0" max="2.0"/>
<uniform name="velocity.angle" min="-0.1" max="0.15"/>
<uniform name="size" min="20.0" max="40.0"/>
<uniform name="color.r" min="1.0" max="0.9"/>
<uniform name="color.g" min="0.6" max="0.6"/>
<uniform name="color.b" min="0.4" max="0.4"/>
</particles>

View file

@ -55,6 +55,7 @@ g_Decoratives.rockLarge = "actor|geology/stone_desert_med.xml";
g_Decoratives.rockMedium = "actor|geology/stone_savanna_med.xml";
g_Decoratives.bushMedium = "actor|props/flora/bush_desert_dry_a.xml";
g_Decoratives.bushSmall = "actor|props/flora/bush_medit_sm_dry.xml";
g_Decoratives.dust = "actor|particle/dust_storm_reddish.xml";
initBiome();
log("Resetting terrain...");
@ -253,6 +254,25 @@ createObjectGroups(
scaleByMapSize(100, 1000),
500
);
RMS.SetProgress(85);
log("Adding dust...");
createObjectGroups(
new SimpleGroup(
[new SimpleObject(g_Decoratives.dust, 1, 1, 1, 4)],
false
),
0,
[
stayClasses(g_TileClasses.dirt, 1),
avoidClasses(
g_TileClasses.player, 10,
g_TileClasses.water, 3
)
],
Math.pow(scaleByMapSize(5, 20), 2),
500
);
RMS.SetProgress(90);
ExportMap();