Gah - a solution with more questions. – EntropicLqd
Difference between revisions of "UE3:UTWeapon internal variables (UT3)"
(Talk) |
m (added missing members) |
||
Line 51: | Line 51: | ||
Ammo / Pickups / Inventory | Ammo / Pickups / Inventory | ||
+ | |||
+ | ====AmmoRechargeRate==== | ||
+ | '''Type:''' [[float]] | ||
+ | |||
+ | recharge rate in ammo per second | ||
+ | |||
+ | '''Default value:''' 1.2 | ||
====AttachmentClass==== | ====AttachmentClass==== | ||
Line 61: | Line 68: | ||
whether to allow this weapon to fire by uncontrolled pawns | whether to allow this weapon to fire by uncontrolled pawns | ||
+ | |||
+ | ====bAutoCharge==== | ||
+ | '''Type:''' [[bool]] | ||
+ | |||
+ | If true, weapon auto recharges ammo | ||
====bCanDestroyBarricades==== | ====bCanDestroyBarricades==== | ||
Line 433: | Line 445: | ||
Last Rotation update time for this weapon | Last Rotation update time for this weapon | ||
+ | |||
+ | ====LastWeaponFireTime==== | ||
+ | '''Type:''' [[float]] | ||
+ | |||
+ | timeseconds when last fired | ||
====LocationSpeech==== | ====LocationSpeech==== | ||
Line 631: | Line 648: | ||
mesh for overlay - Each weapon will need to add its own overlay mesh in its default props | mesh for overlay - Each weapon will need to add its own overlay mesh in its default props | ||
+ | |||
+ | ====PartialCharge==== | ||
+ | '''Type:''' [[float]] | ||
+ | |||
+ | partial (less than 1) ammo charge | ||
====PivotTranslation==== | ====PivotTranslation==== | ||
Line 794: | Line 816: | ||
| 255 | | 255 | ||
|} | |} | ||
+ | |||
+ | ====WeaponFireWaveForm==== | ||
+ | '''Type:''' {{cl|ForceFeedbackWaveform}} | ||
+ | |||
+ | controller rumble to play when firing. | ||
+ | |||
+ | '''Default value:''' {{cl|ForceFeedbackWaveform}}'UTGame.Default__UTWeapon:ForceFeedbackWaveformShooting1' | ||
====WidescreenRotationOffset==== | ====WidescreenRotationOffset==== |
Latest revision as of 07:31, 16 August 2009
Contents
- 1 Internal variables
- 1.1 AdditionalHintString
- 1.2 AimError
- 1.3 AimingHelpRadius
- 1.4 AmmoCount
- 1.5 AmmoDisplayType
- 1.6 AmmoPickupClass
- 1.7 AmmoRechargeRate
- 1.8 AttachmentClass
- 1.9 bAllowFiringWithoutController
- 1.10 bAutoCharge
- 1.11 bCanDestroyBarricades
- 1.12 bConsiderProjectileAcceleration
- 1.13 bDebugWeapon
- 1.14 bExportMenuData
- 1.15 bFastRepeater
- 1.16 bForceHidden
- 1.17 bHasLocationSpeech
- 1.18 bLeadTarget
- 1.19 bLockedAimWhileFiring
- 1.20 bMuzzleFlashAttached
- 1.21 bMuzzleFlashPSCLoops
- 1.22 bNeverForwardPendingFire
- 1.23 bPendingShow
- 1.24 bRecommendSplashDamage
- 1.25 bShowAltMuzzlePSCWhenWeaponHidden
- 1.26 bSmallWeapons
- 1.27 bSniping
- 1.28 bSplashJump
- 1.29 bSuperWeapon
- 1.30 bSuppressSounds
- 1.31 bUseCustomCoordinates
- 1.32 bUsingAimingHelp
- 1.33 bWarnIfInLocker
- 1.34 bWasLocked
- 1.35 bZoomedFireMode
- 1.36 CrosshairColor
- 1.37 CrossHairCoordinates
- 1.38 CrosshairImage
- 1.39 CrosshairScaling
- 1.40 CrouchHintString
- 1.41 CurrentLockedScale
- 1.42 CurrentRating
- 1.43 CustomCrosshairCoordinates
- 1.44 DroppedPickupOffsetZ
- 1.45 EffectSockets
- 1.46 FinalLockedScale
- 1.47 FireCameraAnim
- 1.48 GroupWeight
- 1.49 HiddenWeaponsOffset
- 1.50 HitEnemy
- 1.51 IconCoordinates
- 1.52 IconHeight
- 1.53 IconWidth
- 1.54 IconX
- 1.55 IconY
- 1.56 InventoryGroup
- 1.57 InventoryWeight
- 1.58 JumpHintString
- 1.59 LastHitEnemyTime
- 1.60 LastRotation
- 1.61 LastRotUpdate
- 1.62 LastWeaponFireTime
- 1.63 LocationSpeech
- 1.64 LockedCrossHairCoordinates
- 1.65 LockedScaleTime
- 1.66 LockedStartTime
- 1.67 LockerAmmoCount
- 1.68 LockerOffset
- 1.69 LockerRotation
- 1.70 MaxAmmoCount
- 1.71 MaxPitchLag
- 1.72 MaxYawLag
- 1.73 MinReloadPct
- 1.74 MuzzleFlashAltPSCTemplate
- 1.75 MuzzleFlashColor
- 1.76 MuzzleFlashLight
- 1.77 MuzzleFlashLightClass
- 1.78 MuzzleFlashPSC
- 1.79 MuzzleFlashPSCTemplate
- 1.80 MuzzleFlashSocket
- 1.81 NeedToPickUpAnnouncement
- 1.82 OldLeadMag
- 1.83 OldMaxDiff
- 1.84 OldRotDiff
- 1.85 OverlayMesh
- 1.86 PartialCharge
- 1.87 PivotTranslation
- 1.88 PrimaryFireHintString
- 1.89 ProjectileSpawnOffset
- 1.90 QuickPickGroup
- 1.91 QuickPickWeight
- 1.92 ReturnChgSpeed
- 1.93 RotChgSpeed
- 1.94 SecondaryFireHintString
- 1.95 ShotCost
- 1.96 SimpleCrossHairCoordinates
- 1.97 StartLockedScale
- 1.98 SwitchAbortTime
- 1.99 UseHintString
- 1.100 WeaponCanvasXPct
- 1.101 WeaponCanvasYPct
- 1.102 WeaponColor
- 1.103 WeaponFireWaveForm
- 1.104 WidescreenRotationOffset
- 1.105 ZoomedFireModeNum
- 1.106 ZoomedRate
- 1.107 ZoomedTargetFOV
- 1.108 ZoomFadeTime
- 1.109 ZoomInSound
- 1.110 ZoomOutSound
- UTWeapon internal variables in other games:
- UDK
- Other member categories for this class:
- instance functions
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Internal variables[edit]
AdditionalHintString[edit]
Type: string
Modifiers: localized
AimError[edit]
Type: float
How much error to add to each shot
Default value: 525.0
AimingHelpRadius[edit]
Type: float
Array size: 2
Distance from target collision box to accept near miss when aiming help is enabled
Default value, index 0: 20.0
Default value, index 1: 20.0
AmmoCount[edit]
Type: int
Modifiers: databinding, repnotify
Current ammo count
AmmoDisplayType[edit]
Type: AmmoWidgetDisplayStyle
AmmoPickupClass[edit]
Type: class<UTAmmoPickupFactory>
Ammo / Pickups / Inventory
AmmoRechargeRate[edit]
Type: float
recharge rate in ammo per second
Default value: 1.2
AttachmentClass[edit]
Type: class<UTWeaponAttachment>
The class of the attachment to spawn
bAllowFiringWithoutController[edit]
Type: bool
whether to allow this weapon to fire by uncontrolled pawns
bAutoCharge[edit]
Type: bool
If true, weapon auto recharges ammo
bCanDestroyBarricades[edit]
Type: bool
This weapon can be used to destroy barricades
bConsiderProjectileAcceleration[edit]
Type: bool
Whether should consider projectile acceleration when leading targets
Default value: True
bDebugWeapon[edit]
Type: bool
bExportMenuData[edit]
Type: bool
if set, when this class is compiled, a menu entry for it will be automatically added/updated in its package.ini file (abstract classes are skipped even if this flag is set)
Default value: True
bFastRepeater[edit]
Type: bool
Whether bots should consider this a spray/fast firing weapon
bForceHidden[edit]
Type: bool
bHasLocationSpeech[edit]
Type: bool
bLeadTarget[edit]
Type: bool
Lead targets with this weapon (true by default, ignored for instant hit - set false for special cases like targeting with AVRiL
Default value: True
bLockedAimWhileFiring[edit]
Type: bool
set for weapons that lock weapon rotation while firing, so bots know to retarget after each shot when shooting moving targets
bMuzzleFlashAttached[edit]
Type: bool
Whether muzzleflash has been initialized
bMuzzleFlashPSCLoops[edit]
Type: bool
Set this to true if you want the flash to loop (for a rapid fire weapon like a minigun)
bNeverForwardPendingFire[edit]
Type: bool
If true, this will will never accept a forwarded pending fire
bPendingShow[edit]
Type: bool
If true, will be un-hidden on the next setPosition call.
bRecommendSplashDamage[edit]
Type: bool
bShowAltMuzzlePSCWhenWeaponHidden[edit]
Type: bool
If true, always show the muzzle flash even when the weapon is hidden.
bSmallWeapons[edit]
Type: bool
Modifiers: globalconfig, databinding
If true, use smaller 1st person weapons
bSniping[edit]
Type: bool
bSplashJump[edit]
Type: bool
AI Hints
bSuperWeapon[edit]
Type: bool
If true, this weapon is a super weapon. Super Weapons have longer respawn times a different pickup base and never respect weaponstay
bSuppressSounds[edit]
Type: bool
Animations and Sounds
bUseCustomCoordinates[edit]
Type: bool
Modifiers: config
bUsingAimingHelp[edit]
Type: bool
Set for ProcessInstantHit based on whether aiminghelp was used for this shot
bWarnIfInLocker[edit]
Type: bool
whether having this weapon in a weapon locker should generate a map check warning
bWasLocked[edit]
Type: bool
bZoomedFireMode[edit]
If set to non-zero, this fire mode will zoom the weapon.
CrosshairColor[edit]
Type: Object.Color
Modifiers: config
color to use when drawing the crosshair
Default value:
Member | Value |
---|---|
A | 255 |
B | 255 |
G | 255 |
R | 255 |
CrossHairCoordinates[edit]
Type: UIRoot.TextureCoordinates
Default value:
Member | Value |
---|---|
U | 192.0 |
UL | 64.0 |
V | 64.0 |
VL | 64.0 |
CrosshairImage[edit]
Type: Texture2D
Holds the image to use for the crosshair.
Default value: Texture2D'UI_HUD.HUD.UTCrossHairs'
CrosshairScaling[edit]
Type: float
Default value: 1.0
CrouchHintString[edit]
Type: string
Modifiers: localized
CurrentLockedScale[edit]
Type: float
Locked indicator current scale
Default value: 1.0
CurrentRating[edit]
Type: float
Most recently calculated rating
Default value: 0.5
CustomCrosshairCoordinates[edit]
Type: UIRoot.TextureCoordinates
Modifiers: config
DroppedPickupOffsetZ[edit]
Type: float
offset for dropped pickup mesh
EffectSockets[edit]
Default value, index 0: 'MuzzleFlashSocket'
Default value, index 1: 'MuzzleFlashSocket'
FinalLockedScale[edit]
Type: float
Locked indicator final scale
Default value: 1.0
FireCameraAnim[edit]
Type: array<CameraAnim>
camera anim to play when firing (for camera shakes)
GroupWeight[edit]
Type: float
position within inventory group. (used by prevweapon and nextweapon)
HiddenWeaponsOffset[edit]
Type: Object.Vector
special offset when using hidden weapons, as we need to still place the weapon for e.g. attached beams
Default value:
Member | Value |
---|---|
X | 0.0 |
Y | -50.0 |
Z | -50.0 |
HitEnemy[edit]
Type: byte
Modifiers: repnotify
Replicated flag set when hitscan hits enemy
IconCoordinates[edit]
Type: UIRoot.TextureCoordinates
Default value:
Member | Value |
---|---|
U | 600.0 |
UL | 111.0 |
V | 341.0 |
VL | 58.0 |
IconHeight[edit]
Type: int
Default value: 45
IconWidth[edit]
Type: int
Default value: 31
IconX[edit]
Type: int
Default value: 458
IconY[edit]
Type: int
Default value: 83
InventoryGroup[edit]
Type: byte
Modifiers: databinding
The weapon/inventory set, 0-9.
InventoryWeight[edit]
Type: float
The final inventory weight. It's calculated in PostBeginPlay()
JumpHintString[edit]
Type: string
Modifiers: localized
LastHitEnemyTime[edit]
Type: float
Used to decide whether to red color crosshair
Default value: -1000.0
LastRotation[edit]
Type: Object.Rotator
Last Rotation update for this weapon
LastRotUpdate[edit]
Type: float
Last Rotation update time for this weapon
LastWeaponFireTime[edit]
Type: float
timeseconds when last fired
LocationSpeech[edit]
Type: array<SoundNodeWave>
LockedCrossHairCoordinates[edit]
Type: UIRoot.TextureCoordinates
Holds the image to use for the crosshair.
Default value:
Member | Value |
---|---|
U | 406.0 |
UL | 76.0 |
V | 320.0 |
VL | 77.0 |
LockedScaleTime[edit]
Type: float
Locked indicator scale time
Default value: 0.15
LockedStartTime[edit]
Type: float
Lock start time
LockerAmmoCount[edit]
Type: int
Modifiers: databinding
Initial ammo count if in weapon locker
LockerOffset[edit]
Type: Object.Vector
Default value:
Member | Value |
---|---|
X | 0.0 |
Y | 0.0 |
Z | -15.0 |
LockerRotation[edit]
Type: Object.Rotator
Weapon locker
Default value:
Member | Value |
---|---|
Pitch | 16384 |
Roll | 0 |
Yaw | 0 |
MaxAmmoCount[edit]
Type: int
Modifiers: databinding
Max ammo count
Default value: 1
MaxPitchLag[edit]
Type: float
Limit for pitch lead
Default value: 600.0
MaxYawLag[edit]
Type: float
Limit for yaw lead
Default value: 800.0
MinReloadPct[edit]
Holds the min. amount of reload time that has to pass before you can switch
Default value, index 0: 0.6
Default value, index 1: 0.6
MuzzleFlashAltPSCTemplate[edit]
Type: ParticleSystem
Normal Fire and Alt Fire Templates
MuzzleFlashColor[edit]
Type: Object.Color
UTWeapon looks to set the color via a color parameter in the emitter
MuzzleFlashLight[edit]
Type: UTExplosionLight
dynamic light
MuzzleFlashLightClass[edit]
Type: class<UTExplosionLight>
dynamic light class
MuzzleFlashPSC[edit]
Type: UTParticleSystemComponent
Muzzle flash PSC and Templates
MuzzleFlashPSCTemplate[edit]
Type: ParticleSystem
Normal Fire and Alt Fire Templates
MuzzleFlashSocket[edit]
Type: name
Holds the name of the socket to attach a muzzle flash too
Default value: 'MuzzleFlashSocket'
NeedToPickUpAnnouncement[edit]
Type: UTPlayerController.ObjectiveAnnouncementInfo
Default value:
Member | Value |
---|---|
AnnouncementText | "Grab the Super Weapon!" |
OldLeadMag[edit]
Type: float
Array size: 2
How far weapon was leading last tick
OldMaxDiff[edit]
Type: float
Array size: 2
max lead amount last tick
OldRotDiff[edit]
Type: int
Array size: 2
rotation magnitude last tick
OverlayMesh[edit]
Type: MeshComponent
Modifiers: protected
mesh for overlay - Each weapon will need to add its own overlay mesh in its default props
PartialCharge[edit]
Type: float
partial (less than 1) ammo charge
PivotTranslation[edit]
Type: Object.Vector
Adjust pivot of rotating pickup
Default value:
Member | Value |
---|---|
X | 0.0 |
Y | -25.0 |
Z | 0.0 |
PrimaryFireHintString[edit]
Type: string
Modifiers: localized
Hint strings
Default value: "triggers the primary fire of this weapon."
ProjectileSpawnOffset[edit]
Type: float
Default value: 20.0
QuickPickGroup[edit]
Type: int
The index in to the Quick Pick radial menu to use
Default value: -1
QuickPickWeight[edit]
Type: float
Used to sort it within a group
ReturnChgSpeed[edit]
Type: float
Scaling faster for returning speed
Default value: 3.0
RotChgSpeed[edit]
Type: float
Scaling faster for leading speed
Default value: 3.0
SecondaryFireHintString[edit]
Type: string
Modifiers: localized
Default value: "triggers the alternate fire of this weapon."
ShotCost[edit]
Modifiers: databinding
Holds the amount of ammo used for a given shot
Default value, index 0: 1
Default value, index 1: 1
SimpleCrossHairCoordinates[edit]
Type: UIRoot.TextureCoordinates
Default value:
Member | Value |
---|---|
U | 276.0 |
UL | 22.0 |
V | 84.0 |
VL | 25.0 |
StartLockedScale[edit]
Type: float
Locked indicator start scale
Default value: 2.0
SwitchAbortTime[edit]
Type: float
used when aborting a weapon switch (WeaponAbortEquip and WeaponAbortPutDown)
UseHintString[edit]
Type: string
Modifiers: localized
WeaponCanvasXPct[edit]
Type: float
Percent (from right edge) of screen space taken by weapon on x axis.
Default value: 0.35
WeaponCanvasYPct[edit]
Type: float
Percent (from bottom edge) of screen space taken by weapon on y axis.
Default value: 0.35
WeaponColor[edit]
Type: Object.Color
Modifiers: databinding
The Color used when drawing the Weapon's Name on the Hud
Default value:
Member | Value |
---|---|
A | 255 |
B | 255 |
G | 255 |
R | 255 |
WeaponFireWaveForm[edit]
Type: ForceFeedbackWaveform
controller rumble to play when firing.
Default value: ForceFeedbackWaveform'UTGame.Default__UTWeapon:ForceFeedbackWaveformShooting1'
WidescreenRotationOffset[edit]
Type: Object.Rotator
rotational offset only applied when in widescreen
Default value:
Member | Value |
---|---|
Pitch | 900 |
Roll | 0 |
Yaw | 0 |
ZoomedFireModeNum[edit]
Type: byte
Holds the fire mode num of the zoom
ZoomedRate[edit]
Type: float
ZoomedTargetFOV[edit]
Type: float
ZoomFadeTime[edit]
Type: float
ZoomInSound[edit]
Type: SoundCue
Sounds to play when zooming begins/ends/etc.
Default value: SoundCue'A_Weapon_Sniper.Sniper.A_Weapon_Sniper_ZoomIn_Cue'
ZoomOutSound[edit]
Type: SoundCue
Sounds to play when zooming begins/ends/etc.
Default value: SoundCue'A_Weapon_Sniper.Sniper.A_Weapon_Sniper_ZoomOut_Cue'