Fandom

Wrack Wiki

Surfacedef

88pages on
this wiki
Add New Page
Comments0 Share

Surfacedef is used to give textures additional properties and flags to all instances of that texture.

Surfacedef flagsEdit

  • +nodynamicshadow
Objects don't leave shadows on this texture (excluding the player's shadow).
  • +nodecals
Decals cannot spawn on this texture.

Surfacedef propertiesEdit

  • texture = "<texture name>"
The texture you want to modify.
  • damage = {<easy damage>, <normal damage>, <hard damage>}
The amount of damage inflicted on objects that make contact with this texture. The argument used is determined by your difficulty (see skilldef).
  • impactevent = "<event name>"
The event to call when an object (e.g, a bullet from your pistol) impacts this texture. See aiscripts for more information.

ExamplesEdit

Wrack's lava and toxic waste textures:

{
texture = "flr_toxicwaste1.png"
impactevent = "wall impact"
damage = { 10, 16, 25 }
+nodynamicshadow
+nodecals
}

{
texture = "flr_moltenlava1.png"
impactevent = "wall impact"
damage = { 9999, 9999, 9999 }
+nodynamicshadow
+nodecals
}

{
texture = "flr_moltenlava2.png"
impactevent = "wall impact"
damage = { 9999, 9999, 9999 }
+nodynamicshadow
+nodecals
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.