setstepmaterial

From Arx Libertatis Wiki
Revision as of 12:42, 9 July 2022 by Ds (talk | contribs) (Created page with "{{ScriptCommandPage |description=set the step sound material |context=any |special= none |parameters= stepmaterial string Material to use for step sounds |intro=The step sound is played at times defined in the (walking) animation except for the player where it is played every 120 world units walked. The sound sample used is configured in <code>localisation/snd_armor.ini</code>, <code>localisation/snd_step.ini</code> or <code>localisation/snd_weapon.ini</code> in increas...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The setstepmaterial script command is used to set the step sound material for an entity. The step sound is played at times defined in the (walking) animation except for the player where it is played every 120 world units walked.

The sound sample used is configured in localisation/snd_armor.ini, localisation/snd_step.ini or localisation/snd_weapon.ini in increasing order of priority. Here the step material determines the section and the world material determines the key in that section.

For the player, the step material from the equipped leggings is used if not empty. Otherwise, an empty step material is equivalent to foot_bare and you need to explicitly set something like none that does not have a configured sound to disable it.

To set the sound material for collisions, use setmaterial. To set the sound material for combat strikes, use setarmormaterial and setweaponmaterial.

Usage

setstepmaterial <stepmaterial>
setstepmaterial none

Context: Any Entity

Parameters:

ParameterTypeDescription
stepmaterial string Material to use for step sounds

Material names

The step material can be any string configured in localisation/snd_armor.ini, localisation/snd_step.ini orlocalisation/snd_weapon.ini, the namespace is shared with armor materials (when an NPC is hit) and weapon materials (when hitting the world, items, props or damaging NPCs).

Arx Fatalis comes with the following step materials in localisation/snd_step.ini:

  • foot_large
  • foot_bare
  • foot_shoe
  • foot_metal_plate
  • foot_metal_chain
  • foot_stealth