Worst-case scenario: the UEd Goblin wipes the map and burns down your house.

UE2:ClassicSniperFire (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT2004 Object >> WeaponFire >> InstantFire >> ClassicSniperFire
Package: 
UTClassic
This class in other games:
UT2003

Primary fire mode for the ClassicSniperRifle.

Properties[edit]

Property group 'ClassicSniperFire'[edit]

DamageTypeHeadShot[edit]

Type: class<DamageType>

Separate damage type for headshots.

Default value: Class'UTClassic.DamTypeClassicHeadshot'

HeadShotDamageMult[edit]

Type: float

Multiplier applied to regular damage output for headshots.

Default value: 2.0

Internal variables[edit]

FireAnims[edit]

Type: name

Array size: 3

Names of firing animation sequences.

Default value, index 0: 'Fire1'

Default value, index 1: 'Fire2'

Default value, index 2: 'Fire3'

Default values[edit]

Property Value
AimError 850.0
AmmoClass Class'UTClassic.ClassicSniperAmmo'
AmmoPerFire 1
BotRefireRate 0.4
DamageMax 60
DamageMin 60
DamageType Class'UTClassic.DamTypeClassicSniper'
FireAnimRate 1.5
FireForce "NewSniperShot"
FireRate 1.33
FireSound Sound'NewWeaponSounds.NewSniperShot'
FlashEmitterClass Class'XEffects.AssaultMuzFlash1st'
ShakeOffsetMag
Member Value
X -15.0
Y 0.0
Z 10.0
ShakeOffsetRate
Member Value
X -4000.0
Y 0.0
Z 4000.0
ShakeOffsetTime 1.6
ShakeRotMag
Member Value
X 0.0
Y 0.0
Z 0.0
ShakeRotRate
Member Value
X 0.0
Y 0.0
Z 0.0
ShakeRotTime 2.0
TraceRange 17000.0
WarnTargetPct 0.5

Instance functions[edit]

DoTrace[edit]

function DoTrace (Object.Vector Start, Object.Rotator Dir)

Overrides: InstantFire.DoTrace

Performs the shot trace, spawns a TracerProjectile and checks for a headshot before applying damage and spawning impact effects.

FlashMuzzleFlash[edit]

function FlashMuzzleFlash ()

Overrides: WeaponFire.FlashMuzzleFlash

Updates the muzzle flash effect's orientation before playing it.

InitEffects[edit]

function InitEffects ()

Overrides: WeaponFire.InitEffects

Initializes the muzzle flash effect.

PlayFiring[edit]

function PlayFiring ()

Overrides: WeaponFire.PlayFiring

Randomly selects one of the three FireAnims and plays it.