I'm a doctor, not a mechanic

UE2:DamageType (U2)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2 Object >> Actor >> DamageType
Package: 
Engine
Direct subclasses:
AssaultDamage, Burned, CarnivalMGDamage, Corroded, Crushed, DamTypeTelefragged, DamageTypeBiological, DamageTypeDeployableBase, DamageTypeEMP, DamageTypeElectrical, DamageTypeImpact, DamageTypePhysical, DamageTypeThermal, Depressurized, Drowned, Fell, FlamethrowerDamage, GardenMGDamage, Gibbed, Impact, JuggernautCannonDamage, MortarDamage, PistolDamage, RaptorMGDamage, RocketDamage, RoundHouseMGDamage, ShotgunDamage, SniperDamage, Suicided, VehicularManslaughterDamage, WingedCannonDamage, Zapped
This class in other games:
RTNP, U1, UT, U2XMP, UE2Runtime, UT2003, UT2004, UDK, UT3

DamageType, the base class of all damagetypes. this and its subclasses are never spawned, just used as information holders

Properties[edit]

Property group 'DamageType'[edit]

ArmorHealthRatio[edit]

Type: float

0 is all health and 1 is all armor, 0.5 is fifty-fifty

Default value: 0.5

bAlwaysGibs[edit]

Type: bool


bArmorStops[edit]

Type: bool

does regular armor provide protection against this damage

Default value: True

bCausesBlood[edit]

Type: bool


Default value: True

bFastInstantHit[edit]

Type: bool

done by fast repeating trace hit weapon

bInstantHit[edit]

Type: bool

done by trace hit weapon

bKUseOwnDeathVel[edit]

Type: bool

For ragdoll death. Rather than using default - use death velocity specified in this damage type.

bNoSpecificLocation[edit]

Type: bool


bSkeletize[edit]

Type: bool

swap model to skeleton

DamageDesc[edit]

Type: int

Describes the damage

Default value: 1

DamageEffect[edit]

Type: class<Effects>

Special effect.

DamageKick[edit]

Type: Object.Vector


DamageThreshold[edit]

Type: int

How much damage much occur before playing effects

DamageWeaponName[edit]

Type: string

weapon that caused this damage

DeathString[edit]

Type: string

Modifiers: localized

string to describe death by this type of damage

Default value: "%o was killed by %k."

FemaleSuicide[edit]

Type: string

Modifiers: localized


Default value: "%o killed herself."

FlashFog[edit]

Type: Object.Vector


Default value:

Member Value
X 900.0

FlashScale[edit]

Type: float

for flashing victim's screen

Default value: 0.3

GibModifier[edit]

Type: float


Default value: 1.0

LowDetailEffect[edit]

Type: class<Effects>

Low Detail effect

LowGoreDamageEffect[edit]

Type: class<Effects>

effect to spawn when low gore

LowGoreDamageSounds[edit]

Type: array<Sound>

Sound Effects to play with Damage occurs with low gore

MaleSuicide[edit]

Type: string

Modifiers: localized


Default value: "%o killed himself."

MercyKilled[edit]

Type: string

Modifiers: localized


Default value: "%o was KO-wned by %k"

PawnDamageEffect[edit]

Type: class<Effects>

effect to spawn when pawns are damaged by this damagetype

PawnDamageSounds[edit]

Type: array<Sound>

Sound Effect to Play when Damage occurs

Property group 'Karma'[edit]

KDamageImpulse[edit]

Type: float

magnitude of impulse applied to KActor due to this damage type.

Default value: 8000.0

KDeathUpKick[edit]

Type: float

Amount of upwards kick ragdolls get when they die

KDeathVel[edit]

Type: float

How fast ragdoll moves upon death

Static functions[edit]

DeathMessage[edit]

static function string DeathMessage (PlayerReplicationInfo Killer, PlayerReplicationInfo Victim)


GetPawnDamageEffect[edit]

static function class<EffectsGetPawnDamageEffect (Object.Vector HitLocation, float Damage, Object.Vector Momentum, Pawn Victim, bool bLowDetail)


GetPawnDamageSound[edit]

static function Sound GetPawnDamageSound ()


GetWeaponClass[edit]

static function string GetWeaponClass ()


IncrementKills[edit]

static function IncrementKills (Controller Killer)


IsOfType[edit]

static function bool IsOfType (int Description)


MercyKillMessage[edit]

static function string MercyKillMessage (PlayerReplicationInfo Victim)


SuicideMessage[edit]

static function string SuicideMessage (PlayerReplicationInfo Victim)