UE2:DamageType (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 16:11, 17 May 2008 by imported>Wormbo (Auto-generated page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
UT2004 Object >> Actor >> DamageType

Contents

Package: 
Engine
Known custom subclasses:
Crusha/DynamicWeather, Crusha/DynamicWeather/NatureDamageTypes

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

Properties

Property group 'DamageType'

bAlwaysGibs

Type: bool


bAlwaysSevers

Type: bool


bArmorStops

Type: bool

does regular armor provide protection against this damage

Default value: True

bCauseConvulsions

Type: bool


bCausesBlood

Type: bool


Default value: True

bDetonatesGoop

Type: bool


bFastInstantHit

Type: bool

done by fast repeating trace hit weapon

bInstantHit

Type: bool

done by trace hit weapon

bKUseOwnDeathVel

Type: bool

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

bKUseTearOffMomentum

Type: bool

For ragdoll death. Add entirety of killing hit's momentum to ragdoll's initial velocity.

bLocationalHit

Type: bool


Default value: True

bSkeletize

Type: bool

swap model to skeleton

bSpecial

Type: bool


bSuperWeapon

Type: bool

if true, also damages teammates even if no friendlyfire

DamageDesc

Type: int

Describes the damage

Default value: 1

DamageEffect

Type: class<Effects>

Special effect.

DamageKick

Type: Object.Vector


DamageOverlayMaterial

Type: Material

for changing player's shader when hit

DamageOverlayTime

Type: float

timing for this

DamageThreshold

Type: int

How much damage much occur before playing effects

DamageWeaponName

Type: string

weapon that caused this damage

DeathOverlayMaterial

Type: Material

for changing player's shader when hit

DeathOverlayTime

Type: float

timing for this

Default value: 6.0

DeathString

Type: string

Modifiers: localized

string to describe death by this type of damage

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

FemaleSuicide

Type: string

Modifiers: localized


Default value: "%o killed herself."

FlashFog

Type: Object.Vector


Default value:

Member Value
X 900.0
Y 0.0
Z 0.0

FlashScale

Type: float

for flashing victim's screen

Default value: 0.3

GibModifier

Type: float


Default value: 1.0

GibPerterbation

Type: float

When gibbing, the chunks will fly off in random directions.

Default value: 0.06

LowDetailEffect

Type: class<Effects>

Low Detail effect

LowDetailEmitter

Type: class<Emitter>

Low Detail emitter

LowGoreDamageEffect

Type: class<Effects>

effect to spawn when low gore

LowGoreDamageEmitter

Type: class<Emitter>

Emitter to use when it's low gore

LowGoreDamageSounds

Type: array<Sound>

Sound Effects to play with Damage occurs with low gore

MaleSuicide

Type: string

Modifiers: localized


Default value: "%o killed himself."

PawnDamageEffect

Type: class<Effects>

effect to spawn when pawns are damaged by this damagetype

PawnDamageEmitter

Type: class<Emitter>

effect to spawn when pawns are damaged by this damagetype

PawnDamageSounds

Type: array<Sound>

Sound Effect to Play when Damage occurs

ViewFlash

Type: float

View flash to play.

ViewFog

Type: Object.Vector

View fog to play.

Property group 'Karma'

KDamageImpulse

Type: float

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

Default value: 8000.0

KDeathUpKick

Type: float

Amount of upwards kick ragdolls get when they die

KDeathVel

Type: float

How fast ragdoll moves upon death

Internal variables

bBulletHit

Type: bool


bCausedByWorld

Type: bool

this damage was caused by the world (falling off level, into lava, etc)

bDelayedDamage

Type: bool

for delayed damage damagetypes that set Pawn's DelayedDamageInstigatorController

bDirectDamage

Type: bool


bExtraMomentumZ

Type: bool

Add extra Z to momentum on walking pawns

Default value: True

bFlaming

Type: bool


bLeaveBodyEffect

Type: bool


bNeverSevers

Type: bool


bRagdollBullet

Type: bool


bRubbery

Type: bool


bThrowRagdoll

Type: bool


bVehicleHit

Type: bool

caused by vehicle running over you

VehicleDamageScaling

Type: float

multiply damage by this for vehicles

Default value: 1.0

VehicleMomentumScaling

Type: float


Default value: 1.0

Static functions

DeathMessage

static function string DeathMessage (PlayerReplicationInfo Killer, PlayerReplicationInfo Victim)


GetHitEffects

static function GetHitEffects (out class<xEmitterHitEffects[4], int VictemHealth)


GetPawnDamageEffect

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


GetPawnDamageEmitter

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


GetPawnDamageSound

static function Sound GetPawnDamageSound ()


GetWeaponClass

static function string GetWeaponClass ()


IncrementKills

static function IncrementKills (Controller Killer)


IsOfType

static function bool IsOfType (int Description)


ScoreKill

static function ScoreKill (Controller Killer, Controller Killed)


SuicideMessage

static function string SuicideMessage (PlayerReplicationInfo Victim)