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

UE2:AssaultRifle (UT2004)

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

Assault Rifle

Properties[edit]

bDualMode[edit]

Type: bool


bFireLeft[edit]

Type: bool


bWasDualMode[edit]

Type: bool


DualPickupTime[edit]

Type: float


OffhandActor[edit]

Type: AssaultAttachment


Default values[edit]

Property Value
AIRating 0.4
AttachmentClass Class'XWeapons.AssaultAttachment'
BobDamping 1.7
bShowChargingBar True
CenteredOffsetY -5.0
CenteredRoll 3000
CenteredYaw -1500
CurrentRating 0.4
CustomCrosshair 4
CustomCrossHairScale 0.6667
CustomCrossHairTextureName "Crosshairs.Hud.Crosshair_Cross5"
Description The optional M355 Grenade Launcher provides the punch that makes this weapon effective against heavily armored enemies. Pick up a second assault rifle to double your fire power."
DisplayFOV 70.0
DrawScale 0.8
EffectOffset
Member Value
X 100.0
Y 25.0
Z -10.0
FireModeClass[0] XWeapons.AssaultFire
FireModeClass[1] XWeapons.AssaultGrenade
HighDetailOverlay Material'UT2004Weapons.WeaponSpecMap2'
HudColor
Member Value
A 255
B 192
G 128
R 255
IconCoords
Member Value
X1 245
X2 329
Y1 39
Y2 79
IconMaterial Material'HudContent.Generic.HUD'
InventoryGroup 2
ItemName "Assault Rifle"
LightBrightness 255.0
LightEffect LE_NonIncidence
LightHue 30
LightPeriod 3
LightRadius 4.0
LightSaturation 150
LightType LT_Pulse
Mesh Mesh'NewWeapons2004.AssaultRifle'
OldCenteredOffsetY 0.0
OldCenteredRoll 3000
OldMesh Mesh'Weapons.AssaultRifle_1st'
OldPickup "WeaponStaticMesh.AssaultRiflePickup"
OldPlayerViewOffset
Member Value
X -8.0
Y 5.0
Z -6.0
OldPlayerViewPivot
Member Value
Pitch 400
Roll 0
Yaw 0
OldSmallViewOffset
Member Value
X 4.0
Y 11.0
Z -12.0
PickupClass Class'XWeapons.AssaultRiflePickup'
PlayerViewOffset
Member Value
X 4.0
Y 5.5
Z -6.0
PlayerViewPivot
Member Value
Pitch 400
Roll 0
Yaw 0
Priority 3
PutDownAnim 'PutDown'
SelectForce "SwitchToAssaultRifle"
SelectSound Sound'WeaponSounds.AssaultRifle.SwitchToAssaultRifle'
SmallViewOffset
Member Value
X 13.0
Y 12.0
Z -10.0

Functions[edit]

Events[edit]

PostNetBeginPlay[edit]

simulated event PostNetBeginPlay ()

Overrides: Actor.PostNetBeginPlay


RenderOverlays[edit]

simulated event RenderOverlays (Canvas Canvas)

Overrides: Weapon.RenderOverlays


Other instance functions[edit]

AttachToPawn[edit]

function AttachToPawn (Pawn P)

Overrides: Inventory.AttachToPawn


BestMode[edit]

function byte BestMode ()

Overrides: Weapon.BestMode


ChargeBar[edit]

simulated function float ChargeBar ()

Overrides: Weapon.ChargeBar


DetachFromPawn[edit]

simulated function DetachFromPawn (Pawn P)

Overrides: Weapon.DetachFromPawn


DrawWeaponInfo[edit]

simulated function DrawWeaponInfo (Canvas Canvas)

Overrides: Weapon.DrawWeaponInfo


GetAIRating[edit]

function float GetAIRating ()

Overrides: Weapon.GetAIRating


HandlePickupQuery[edit]

function bool HandlePickupQuery (Pickup Item)

Overrides: Weapon.HandlePickupQuery


Loaded[edit]

simulated function Loaded ()

Overrides: Weapon.Loaded


MaxAmmo[edit]

simulated function int MaxAmmo (int mode)

Overrides: Weapon.MaxAmmo


NewDrawWeaponInfo[edit]

simulated function NewDrawWeaponInfo (Canvas Canvas, float YPos)

Overrides: Weapon.NewDrawWeaponInfo


RenderDualOverlay[edit]

simulated function RenderDualOverlay (Canvas Canvas)


WeaponCentered[edit]

simulated function bool WeaponCentered ()

Overrides: Weapon.WeaponCentered