Skip to content

zCTouchDamage

Quick Infos

Class Name: zCTouchDamage
Version Identifiers:
β€” Gothic I: 36865
β€” Gothic II: 36865
Source:
β€” spacerhilfedatei.sph
β€” gothic-library.ru
β€” zk.gothickit.dev

A VObject which damages other VObjects colliding with it.

Class members

Class member overview

damage

The amount of damage being dealt.

Barrier

Accepted values:

  • TRUE β€” Deal barrier damage
  • FALSE β€” Do not deal barrier damage

Blunt

Accepted values:

  • TRUE β€” Deal blunt damage (blunt weapons)
  • FALSE β€” Do not deal blunt damage

Edge

Accepted values:

  • TRUE β€” Deal edge damage (sharp weapons)
  • FALSE β€” Do not deal edge damage

Fire

Accepted values:

  • TRUE β€” Deal fire damage
  • FALSE β€” Do not deal fire damage

Fly

Accepted values:

  • TRUE β€” Deal knockout damage
  • FALSE β€” Do not deal knockout damage

Magic

Accepted values:

  • TRUE β€” Deal magic damage
  • FALSE β€” Do not deal magic damage

Point

Accepted values:

  • TRUE β€” Deal point damage (bows and crossbows)
  • FALSE β€” Do not deal point damage

Fall

Accepted values:

  • TRUE β€” Deal fall damage
  • FALSE β€” Do not deal fall damage

damageRepeatDelaySec

The delay between damage ticks when applying continuous damage. If set to 0, only deals the damage once per collision. If set to a value greater than 0, deals damage every damageRepeatDelaySec seconds.

damageVolDownScale

A scale value used in conjunction with damageCollType. Its function depends on the type of collision detection used.

damageCollType

The type of collision detection to use for damage calculations.

Accepted values:

  • NONE β€” Disable collision detection and thus damage application.
  • BOX β€” Scale the bbox3dws of the zCTouchDamage object by damageVolDownScale and use this new bounding box to calculate collisions with other VObjects
  • POINT β€” Scale the bbox3dws of the colliding object by damageVolDownScale and only deal damage if it contains the center point of the zCTouchDamage object. If the visual of the zCTouchDamage object is a particle effect, test against every particle instead.