Mostly Harmless

UE2:WeaponInvSniperRifle (U2XMP)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2XMP Object >> Actor >> Inventory >> Weapon >> U2Weapon >> WeaponInvSniperRifle
Package: 
U2Weapons
Direct subclass:
WeaponInvSniperRifleSmall

WeaponInvSniperRifle.uc $Author: Aleiby $ $Date: 12/02/02 5:28p $ $Revision: 47 $

Properties

Property group 'WeaponInvSniperRifle'

AdjustZoomSound

Type: Sound


Default value: Sound'U2WeaponsA.SniperRifle.SR_Zoom'

RingDelayFactor

Type: float


Default value: 0.05

ZoomInSound

Type: Sound


Default value: Sound'U2WeaponsA.SniperRifle.SR_ScopeOn'

ZoomOutSound

Type: Sound


Default value: Sound'U2WeaponsA.SniperRifle.SR_ScopeOff'

Internal variables

Angle

Type: float


bWasZoomed

Type: bool


bZoomed

Type: bool


PawnLocation

Type: Object.Vector

track Pawn location to compute "StillTime"

Radius

Type: float


RingLoc

Type: Object.Vector


RingLocation

Type: Object.Point


StillStart

Type: float

adjust WeaponAimSpread for Bots based on StillTime

StillTime

Type: float


ZoomFOV

Type: float


Default value: 30.0

Default values

Property Value
AIRating 0.5
AIRatingAltFire -50.0
AIRatingFire 0.5
AltFireLastDownTime 0.0
AltFireLastReloadTime 0.0
AltFireTime 0.0
AltRefireRate 99.9
AltShakeMag 0.0
AltShakeTime 0.0
AmmoName Class'U2Weapons.ammoInvSniperRifle'
AutoSwitchPriority 9
bCrosshairGlows True
bInstantHit True
BobDamping 0.975
bRepeatAltFire False
bSnipe True
CockingSound Sound'U2WeaponsA.SniperRifle.SR_Reload'
CrosshairName "SR_Cross"
Damage 80.0
DecoEffects[0]
Member Value
AnimSequence 'Fire'
DecoClass Class'ParticleSystems.ParticleSalamander'
MountNode "#Muzzleflash"
Particles ParticleSalamander'SniperFX.ParticleSalamander0'
DecoEffects[1]
Member Value
AnimSequence 'Fire'
bRequiresWorldZBuffer True
bTriggerUpdateOnly True
DecoClass Class'ParticleSystems.PulseLineGenerator'
MountNode "#Muzzleflash"
Particles PulseLineGenerator'SniperTracer.PulseLineGenerator1'
DecoEffects[2]
Member Value
AnimSequence 'Fire'
DecoClass Class'U2Weapons.SR_LightEffect'
MountNode "#Muzzleflash"
MountOffset
Member Value
X 15.0
Z 15.0
FireLastDownTime 2.437
FireLastReloadTime 2.529
FireLastRoundSound Sound'U2WeaponsA.SniperRifle.SR_FireLastRound'
FireOffset
Member Value
X 62.0
Y 14.0
Z -8.0
FireSound Sound'U2WeaponsA.SniperRifle.SR_Fire'
FireTime 1.4
FiringSpeed 1.8
FirstPersonOffset
Member Value
X -70.0
Y -8.0
Z 14.0
FlashSkin Shader'WeaponFXT.Sniper.SR_Skin2FX'
GroupOffset 1
IconIndex 14
ImpactHandlerClass Class'U2Weapons.impactSniperRifle'
InventoryGroup 4
ItemID "SR"
ItemName "Sniper Rifle"
Mesh LegendMesh'GlmWeaponsG.SR_FP'
MomentumTransfer 25000.0
MyDamageType Class'U2.DamageTypeSniperRifle'
PickupAmmoCount 10
PickupClass Class'U2Weapons.weaponSniperRifle'
PlayerViewOffset
Member Value
X 0.0
Z 0.0
PreferProneMultiplier 3.0
RangeIdealFire 256.0
RangeLimitFire 32767.0
RangeMaxFire 2048.0
RangeMinFire 0.0
RatingRangeIdealFire 0.5
RatingRangeMaxFire 0.15
RatingRangeMinFire 0.5
RefireRate 1.0
ReloadTime 1.875
ReloadUnloadedSound Sound'U2WeaponsA.SniperRifle.SR_ReloadUnloaded'
SelectSound Sound'U2WeaponsA.SniperRifle.SR_Select'
ShakeMag 3.0
ShakeTime 0.15
ThirdPersonMesh LegendMesh'GlmWeaponsG.SR_TP'
TraceRange 28800.0
WeaponAnimationType AT_Shoulder

Functions

Exec functions

ZoomIn

exec simulated function ZoomIn ()


ZoomOut

exec simulated function ZoomOut ()


Other instance functions

See WeaponInvSniperRifle instance functions.

States

DownWeapon

Inherits from: U2Weapon.DownWeapon

Modifiers: simulated

Ignores: AltFire, Fire

DownWeapon.BeginState

simulated event BeginState ()

Overrides: U2Weapon.DownWeapon.BeginState


Firing

Inherits from: U2Weapon.Firing

Modifiers: simulated

Ignores: Fire

Firing.AltFire

simulated function AltFire ()

Overrides: AltFire (global)


Reloading

Inherits from: U2Weapon.Reloading

Modifiers: simulated

Reloading.BeginState

simulated event BeginState ()

Overrides: U2Weapon.Reloading.BeginState


Reloading.EndState

simulated event EndState ()

Overrides: U2Weapon.Reloading.EndState


Unloading

Modifiers: simulated

Unloading.BeginState

simulated event BeginState ()

Overrides: Object.BeginState (global)


Unloading.EndState

simulated event EndState ()

Overrides: Object.EndState (global)