UE2:ClassicSniperFire (UT2004)

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

Primary fire mode for the ClassicSniperRifle.

Properties

Property group 'ClassicSniperFire'

DamageTypeHeadShot

Type: class<DamageType>

Separate damage type for headshots.

Default value: Class'UTClassic.DamTypeClassicHeadshot'

HeadShotDamageMult

Type: float

Multiplier applied to regular damage output for headshots.

Default value: 2.0

Internal variables

FireAnims

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

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

DoTrace

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

function FlashMuzzleFlash ()

Overrides: WeaponFire.FlashMuzzleFlash

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

InitEffects

function InitEffects ()

Overrides: WeaponFire.InitEffects

Initializes the muzzle flash effect.

PlayFiring

function PlayFiring ()

Overrides: WeaponFire.PlayFiring

Randomly selects one of the three FireAnims and plays it.