http://ufoai.org/w/index.php?title=UFO-Scripts/terrain.ufo&feed=atom&action=historyUFO-Scripts/terrain.ufo - Revision history2024-03-29T15:42:12ZRevision history for this page on the wikiMediaWiki 1.35.4http://ufoai.org/w/index.php?title=UFO-Scripts/terrain.ufo&diff=27792&oldid=prevMattn at 11:00, 6 July 20102010-07-06T11:00:31Z<p></p>
<p><b>New page</b></p><div>This script file allows you to define some terrain settings that depends on the texture. Keep in mind, that this is global in the game - not per map. The given id is a ufo path of the texture - relative to {{path|base/textures}}.<br />
<br />
We have a script in {{path|contrib/scripts/footstepper.sh}} that is parsing the textures from the map source files when they have the [[Mapping/Surface_inspector#Surface_flags|surfaceflag]] [[Mapping/Footsteps|footstep]] set.<br />
<br />
; footstepsound [[V_STRING]]<br />
: Sound to play for footsteps relative to base/sound (see [[Directory tree]])<br />
; bouncefraction [[V_FLOAT]]<br />
: The fraction by which grenade bounces are multiplied. 1.0 means no change, 0.0 means no bounce at all. If not specified, defaults to 1.0.<br />
; particle [[V_STRING]]<br />
: Particle that is shown when an actor walks on this texture<br />
; footstepvolume [[V_FLOAT]]<br />
: The volume of the footstep sound. 1.0 is the loudest, default is 0.2<br />
<br />
==Example==<br />
<pre><br />
// normal grass<br />
terrain tex_nature/grass001 {<br />
footstepsound "footsteps/grass2"<br />
bouncefraction 0.3<br />
}<br />
<br />
// high grass<br />
terrain tex_nature/jungle002 {<br />
footstepsound "footsteps/grass2"<br />
bouncefraction 0.2<br />
}<br />
</pre><br />
<br />
[[Category:UFO-Scripts]]</div>Mattn