UE2:ClassicSniperFire (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 |
| ||||||||
ShakeOffsetRate |
| ||||||||
ShakeOffsetTime | 1.6 | ||||||||
ShakeRotMag |
| ||||||||
ShakeRotRate |
| ||||||||
ShakeRotTime | 2.0 | ||||||||
TraceRange | 17000.0 | ||||||||
WarnTargetPct | 0.5 |
Instance functions
DoTrace
Overrides: InstantFire.DoTrace
Performs the shot trace, spawns a TracerProjectile and checks for a headshot before applying damage and spawning impact effects.
FlashMuzzleFlash
Overrides: WeaponFire.FlashMuzzleFlash
Updates the muzzle flash effect's orientation before playing it.
InitEffects
Overrides: WeaponFire.InitEffects
Initializes the muzzle flash effect.
PlayFiring
Overrides: WeaponFire.PlayFiring
Randomly selects one of the three FireAnims and plays it.