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

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[edit]

Property group 'WeaponInvSniperRifle'[edit]

AdjustZoomSound[edit]

Type: Sound


Default value: Sound'U2WeaponsA.SniperRifle.SR_Zoom'

RingDelayFactor[edit]

Type: float


Default value: 0.05

ZoomInSound[edit]

Type: Sound


Default value: Sound'U2WeaponsA.SniperRifle.SR_ScopeOn'

ZoomOutSound[edit]

Type: Sound


Default value: Sound'U2WeaponsA.SniperRifle.SR_ScopeOff'

Internal variables[edit]

Angle[edit]

Type: float


bWasZoomed[edit]

Type: bool


bZoomed[edit]

Type: bool


PawnLocation[edit]

Type: Object.Vector

track Pawn location to compute "StillTime"

Radius[edit]

Type: float


RingLoc[edit]

Type: Object.Vector


RingLocation[edit]

Type: Object.Point


StillStart[edit]

Type: float

adjust WeaponAimSpread for Bots based on StillTime

StillTime[edit]

Type: float


ZoomFOV[edit]

Type: float


Default value: 30.0

Default values[edit]

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[edit]

Exec functions[edit]

ZoomIn[edit]

exec simulated function ZoomIn ()


ZoomOut[edit]

exec simulated function ZoomOut ()


Other instance functions[edit]

See WeaponInvSniperRifle instance functions.

States[edit]

DownWeapon[edit]

Inherits from: U2Weapon.DownWeapon

Modifiers: simulated

Ignores: AltFire, Fire

DownWeapon.BeginState[edit]

simulated event BeginState ()

Overrides: U2Weapon.DownWeapon.BeginState


Firing[edit]

Inherits from: U2Weapon.Firing

Modifiers: simulated

Ignores: Fire

Firing.AltFire[edit]

simulated function AltFire ()

Overrides: AltFire (global)


Reloading[edit]

Inherits from: U2Weapon.Reloading

Modifiers: simulated

Reloading.BeginState[edit]

simulated event BeginState ()

Overrides: U2Weapon.Reloading.BeginState


Reloading.EndState[edit]

simulated event EndState ()

Overrides: U2Weapon.Reloading.EndState


Unloading[edit]

Modifiers: simulated

Unloading.BeginState[edit]

simulated event BeginState ()

Overrides: Object.BeginState (global)


Unloading.EndState[edit]

simulated event EndState ()

Overrides: Object.EndState (global)