Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel
UE2:ClassicSniperFire (UT2004)
Object >> WeaponFire >> InstantFire >> ClassicSniperFire |
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 |
|
||||||||
ShakeOffsetRate |
|
||||||||
ShakeOffsetTime | 1.6 | ||||||||
ShakeRotMag |
|
||||||||
ShakeRotRate |
|
||||||||
ShakeRotTime | 2.0 | ||||||||
TraceRange | 17000.0 | ||||||||
WarnTargetPct | 0.5 |
Instance functions[edit]
DoTrace[edit]
Overrides: InstantFire.DoTrace
Performs the shot trace, spawns a TracerProjectile and checks for a headshot before applying damage and spawning impact effects.
FlashMuzzleFlash[edit]
Overrides: WeaponFire.FlashMuzzleFlash
Updates the muzzle flash effect's orientation before playing it.
InitEffects[edit]
Overrides: WeaponFire.InitEffects
Initializes the muzzle flash effect.
PlayFiring[edit]
Overrides: WeaponFire.PlayFiring
Randomly selects one of the three FireAnims and plays it.