I don't need to test my programs. I have an error-correcting modem.

UE2:SniperRifle (U2)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
U2 Object >> Actor >> Inventory >> Weapon >> SniperRifle
Package: 
Weapons
This class in other games:
UT, UT2003, UT2004

null

Properties

Property group 'SniperRifle'

AdjustZoomSound

Type: Sound


Default value: Sound'WeaponsA.SniperRifle.SR_Zoom'

RingDelayFactor

Type: float


Default value: 6.0

ZoomFOV

Type: float


Default value: 30.0

ZoomInSound

Type: Sound


Default value: Sound'WeaponsA.SniperRifle.SR_ScopeOn'

ZoomOutSound

Type: Sound


Default value: Sound'WeaponsA.SniperRifle.SR_ScopeOff'

Internal variables

Angle

Type: float


bWasZoomed

Type: bool


bZoomed

Type: bool


LastTimeSeconds

Type: float


Muzzleflash

Type: ParticleGenerator


Radius

Type: float


RingDir

Type: Object.Vector


RingLocation

Type: Object.Point


Default values

Property Value
AmmoAmount[0] 3
AmmoAmount[1] 3
AmmoFlags[0]
Member Value
bInstantHit True
AmmoFlags[1]
Member Value
bRepeatFire False
AttachmentClass Class'Weapons.SniperAttachment'
AutoSwitchPriority 16
BloodEffect[0] Class'Weapons.Blood'
BobDamping 0.85
Crosshair "Crosshair_SR"
Damage[0] 75
DirtEffect[0] Class'Weapons.Dirt'
FireLastDownTime[0] 2.44
FireLastDownTime[1] 0.0
FireLastReloadTime[0] 2.53
FireLastReloadTime[1] 0.0
FireLastRoundSound[0] Sound'WeaponsA.SniperRifle.SR_FireLastRound'
FireLastRoundTime[0] 2.27
FireLastRoundTime[1] 0.0
FireSound[0] Sound'WeaponsA.SniperRifle.SR_Fire'
FireSound[1] Sound'WeaponsA.SniperRifle.SR_Crosshair'
FireTime[0] 1.0
FireTime[1] 0.0
GroupOffset 1
IconIndex 14
ItemID "SR"
ItemName "Sniper Rifle"
MaxAmmo[0] 15
MaxAmmo[1] 15
Mesh SkeletalMesh'WeaponsK.SR_FP'
MomentumTransfer[0] 25000.0
MyDamageType[0] Class'U2.SniperDamage'
PickupAmmoCount 18
PlayerViewOffset
Member Value
X 6.0
Y 1.0
Z -24.0
ReloadSound Sound'WeaponsA.SniperRifle.SR_Reload'
ReloadTime 1.875
ReloadUnloadedSound Sound'WeaponsA.SniperRifle.SR_ReloadUnloaded'
ReloadUnloadedTime 1.33
SelectSound Sound'WeaponsA.SniperRifle.SR_Select'
ShakeMag[0] 15.0
ShakeMag[1] 0.0
ShakeTime[0] 0.35
ShakeTime[1] 0.0
SparkEffect[0] Class'Weapons.Sparks'
TraceDist 65536.0

Functions

Exec functions

ZoomIn

exec simulated function ZoomIn ()


ZoomOut

exec simulated function ZoomOut ()


Events

Destroyed

simulated event Destroyed ()

Overrides: Weapon.Destroyed


PostBeginPlay

simulated event PostBeginPlay ()

Overrides: Actor.PostBeginPlay


RenderOverlays

simulated event RenderOverlays (Canvas Canvas)

Overrides: Weapon.RenderOverlays


Other instance functions

AltFire

simulated function AltFire ()

Overrides: Weapon.AltFire


GetCrosshairAngle0

interface function float GetCrosshairAngle0 ()


GetCrosshairAngle120

interface function float GetCrosshairAngle120 ()


GetCrosshairAngle144

interface function float GetCrosshairAngle144 ()


GetCrosshairAngle168

interface function float GetCrosshairAngle168 ()


GetCrosshairAngle192

interface function float GetCrosshairAngle192 ()


GetCrosshairAngle216

interface function float GetCrosshairAngle216 ()


GetCrosshairAngle24

interface function float GetCrosshairAngle24 ()


GetCrosshairAngle240

interface function float GetCrosshairAngle240 ()


GetCrosshairAngle264

interface function float GetCrosshairAngle264 ()


GetCrosshairAngle288

interface function float GetCrosshairAngle288 ()


GetCrosshairAngle312

interface function float GetCrosshairAngle312 ()


GetCrosshairAngle336

interface function float GetCrosshairAngle336 ()


GetCrosshairAngle48

interface function float GetCrosshairAngle48 ()


GetCrosshairAngle72

interface function float GetCrosshairAngle72 ()


GetCrosshairAngle96

interface function float GetCrosshairAngle96 ()


GetCrosshairRadius

interface function float GetCrosshairRadius ()


GetCrosshairRingLocation

interface function Object.Point GetCrosshairRingLocation ()


HandleTargetDetails

simulated function HandleTargetDetails (Actor A, Canvas Canvas, Object.Vector ViewLoc, Object.Rotator ViewRot)

Overrides: Weapon.HandleTargetDetails


HandleTraceImpact

function HandleTraceImpact (Actor Other, Object.Vector HitLocation, Object.Vector HitNormal)

Overrides: Weapon.HandleTraceImpact


NextWeapon

simulated function Weapon NextWeapon (Weapon CurrentChoice, Weapon CurrentWeapon)

Overrides: Weapon.NextWeapon


NotifyCutsceneBegin

simulated function NotifyCutsceneBegin ()


PlayFiring

simulated function PlayFiring ()

Overrides: Weapon.PlayFiring


PlaySelect

simulated function PlaySelect ()

Overrides: Weapon.PlaySelect


PrevWeapon

simulated function Weapon PrevWeapon (Weapon CurrentChoice, Weapon CurrentWeapon)

Overrides: Weapon.PrevWeapon


SetPlayerFOV

simulated function SetPlayerFOV (float NewFOV)


UnZoom

simulated function UnZoom (optional bool bForce)


Zoom

simulated function Zoom ()


States

DownWeapon

Inherits from: Weapon.DownWeapon

Modifiers: simulated

Ignores: AltFire, Fire

DownWeapon.BeginState

simulated event BeginState ()

Overrides: Weapon.DownWeapon.BeginState


Firing

Inherits from: Weapon.Firing

Modifiers: simulated

Ignores: Fire

Firing.AltFire

simulated function AltFire ()

Overrides: AltFire (global)


Reloading

Inherits from: Weapon.Reloading

Modifiers: simulated

Reloading.BeginState

simulated event BeginState ()

Overrides: Weapon.Reloading.BeginState


Reloading.EndState

simulated event EndState ()

Overrides: Weapon.Reloading.EndState


Unloading

Modifiers: simulated

Unloading.BeginState

simulated event BeginState ()

Overrides: Object.BeginState (global)


Unloading.EndState

simulated event EndState ()

Overrides: Object.EndState (global)