Difference between revisions of "Weapons.meta"
m (Added documentation for FirstPersonScopeOffset, FirstPersonScopeAttachmentOffset, FirstPersonScopeRotationOffset and FirstPersonScopeAttachmentRotationOffset.) |
m (Forgot one small thing) |
||
Line 183: | Line 183: | ||
*Decreasing the '''X value''' rotates the barrel of the gun downwards and the butt of the gun upwards. (Useful if iron sights are misaligned vertically) | *Decreasing the '''X value''' rotates the barrel of the gun downwards and the butt of the gun upwards. (Useful if iron sights are misaligned vertically) | ||
*Decreasing the '''Z value''' rotates the barrel of the gun to the right and the butt of the gun to the left. (Useful if iron sights are misaligned horizontally) | *Decreasing the '''Z value''' rotates the barrel of the gun to the right and the butt of the gun to the left. (Useful if iron sights are misaligned horizontally) | ||
+ | ''You generally want to change the value in increments of 0.X or 0.0X as the rotation offset is less sensitive than the normal offset.'' | ||
===FirstPersonScopeAttachmentRotationOffset=== | ===FirstPersonScopeAttachmentRotationOffset=== | ||
Controls the first person rotation of weapon on the x and y plane '''for scopes'''. Values behave the same as ''FirstPersonScopeRotationOffset''. | Controls the first person rotation of weapon on the x and y plane '''for scopes'''. Values behave the same as ''FirstPersonScopeRotationOffset''. |
Latest revision as of 18:35, 6 January 2022
weapons.meta file in GTA V, like in previous versions of the game, the file contains information about the weapons properties and settings. This file is found found in ..\common\data\ai and can be edited with any text editor.
Parameters
There are a lot parameters in 8 groups.
OrderNumber
Entry
SlotBestOrder
OrderNumber
Entry
TintSpecValues
Name
- SpecFresnel
- SpecFalloffMult
- SpecIntMult
- Spec2Factor
- Spec2ColorInt
- Spec2Color
FiringPatternAliases
Name
- FiringPattern
- Alias
UpperBodyFixupExpressionData
Name
- Idle
- Walk
- Run
AimingInfos
Name
HeadingLimit
SweepPitchMin
SweepPitchMax
Infos (Ammo)
There are 4 seperate Infos sections under the main Infos sections. They're just named Infos, but the groups are: Ammo, Main Weapons, Vehicle Weapons, and Environmental Weapons. The Ammo Infos section is different from the other Weapons sections.
Name
Model
Audio
Slot
AmmoMax
AmmoMax50
AmmoMax100
AmmoMaxMP
AmmoMax50MP
AmmoMax100MP
AmmoFlags
Infos (Weapons)
Name
Model
Audio
Slot
DamageType
Explosion
- Default
- HitCar
- HitTruck
- HitBike
- HitBoat
- HitPlane
FireType
WheelSlot
Group
AmmoInfo
AimingInfo
ClipSize
AccuracySpread
AccurateModeAccuracyModifier
RunAndGunAccuracyModifier
RecoilAccuracyMax
RecoilErrorTime
RecoilRecoveryRate
RecoilAccuracyToAllowHeadShotAI
MinHeadShotDistanceAI
MaxHeadShotDistanceAI
HeadShotDamageModifierAI
RecoilAccuracyToAllowHeadShotPlayer
MinHeadShotDistancePlayer
MaxHeadShotDistancePlayer
HeadShotDamageModifierPlayer
Damage
DamageTime
DamageTimeInVehicle
DamageTimeInVehicleHeadShot
HitLimbsDamageModifier
NetworkHitLimbsDamageModifier
LightlyArmouredDamageModifier
Force
ForceHitPed
ForceHitVehicle
ForceHitFlyingHeli
OverrideForces
- BoneTag
- ForceFront
- ForceBack
ForceMaxStrengthMult
ForceFalloffRangeStart
ForceFalloffRangeEnd
ForceFalloffMin
ProjectileForce
FragImpulse
Penetration
VerticalLaunchAdjustment
DropForwardVelocity
Speed
BulletsInBatch
BatchSpread
ReloadTimeMP
ReloadTimeSP
VehicleReloadTime
AnimReloadRate
BulletsPerAnimLoop
TimeBetweenShots
TimeLeftBetweenShotsWhereShouldFireIsCached
SpinUpTime
SpinTime
SpinDownTime
AlternateWaitTime
BulletBendingNearRadius
BulletBendingFarRadius
BulletBendingZoomedRadius
Fx
- EffectGroup
- FlashFx
- FlashFxAlt
- ShellFx
- TracerFx
- PedDamageHash
- TracerFxChanceSP
- TracerFxChanceMP
- FlashFxChanceSP
- FlashFxChanceMP
- FlashFxAltChance
- FlashFxScale
InitialRumbleDuration
InitialRumbleIntensity
RumbleDuration
RumbleIntensity
RumbleDamageIntensity
NetworkPlayerDamageModifier
NetworkPedDamageModifier
NetworkHeadShotPlayerDamageModifier
LockOnRange
WeaponRange
BulletDirectionOffsetInDegrees
AiSoundRange
AiPotentialBlastEventRange
DamageFallOffRangeMin
DamageFallOffRangeMax
DamageFallOffModifier
VehicleWeaponHash
DefaultCameraHash
CoverCameraHash
CoverReadyToFireCameraHash
AssistedAimingCameraHash
AlternativeOrScopedCameraHash
AssistedAlternativeOrScopedCameraHash
CameraFov
FirstPersonScopeOffset
Controls the first person view offset for iron sights.
- Y value moves the camera front and back (decrease to move the camera away from the sights)
- Z value moves the camera up and down (will fix issues with the bullet impact being too low: increase to move the sights up)
- X value moves the camera left and right (increase the X value to move the gun to the right)
You generally want to change the value in increments of 0.00X or 0.000X.
FirstPersonScopeAttachmentOffset
Controls the first person view offset for scopes. Values behave the same as FirstPersonScopeOffset.
FirstPersonScopeRotationOffset
Controls the first person rotation of weapon on the x and y plane for iron sights.
- Decreasing the X value rotates the barrel of the gun downwards and the butt of the gun upwards. (Useful if iron sights are misaligned vertically)
- Decreasing the Z value rotates the barrel of the gun to the right and the butt of the gun to the left. (Useful if iron sights are misaligned horizontally)
You generally want to change the value in increments of 0.X or 0.0X as the rotation offset is less sensitive than the normal offset.
FirstPersonScopeAttachmentRotationOffset
Controls the first person rotation of weapon on the x and y plane for scopes. Values behave the same as FirstPersonScopeRotationOffset.
ZoomFactorForAccurateMode
RecoilShakeHash
AccuracyOffsetShakeHash
MinTimeBetweenRecoilShakes
RecoilShakeAmplitude
ExplosionShakeAmplitude
ReticuleHudPosition
AimOffsetMin
AimProbeLengthMin
AimOffsetMax
AimProbeLengthMax
TorsoAimOffset
TorsoCrouchedAimOffset
LeftHandIkOffset
ReticuleMinSizeStanding
ReticuleMinSizeCrouched
ReticuleScale
ReticuleStyleHash
FirstPersonReticuleStyleHash
PickupHash
Pickup name used in pickups.meta.
MPPickupHash
Pickup name used in pickups.meta for GTA:O.
HumanNameHash
MovementModeConditionalIdle
StatName
KnockdownCount
KillshotImpulseScale
NmShotTuningSet
AttachPoints
- Components
- AttachBone
- Name
- Model name of the component.
- Default
- Whether or not the component is attached to the weapon by default.
GunFeedBone
TargetSequenceGroup
WeaponFlags
Available flags (incomplete):
- CarriedInHand
- Automatic
- Gun
- CanLockonOnFoot
- CanLockonInVehicle
- CanFreeAim
- AnimReload
- AnimCrouchFire
- TreatAsOneHandedInCover
- UsableOnFoot
- UsableInCover
- AllowEarlyExitFromFireAnimAfterBulletFired
- NoLeftHandIKWhenBlocked
- AllowCloseQuarterKills
- HasLowCoverReloads
- HasLowCoverSwaps
- UseLeftHandIkWhenAiming
- QuitTransitionToIdleIntroOnWeaponChange
- DisableLeftHandIkWhenOnFoot
- ApplyBulletForce
- TwoHanded
- LongWeapon
- ArmourPenetrating
- Launched
- Scary
- DisableStealth
TintSpecValues
FiringPatternAliases
ReloadUpperBodyFixupExpressionData
AmmoDiminishingRate
AimingBreathingAdditiveWeight
FiringBreathingAdditiveWeight
StealthAimingBreathingAdditiveWeight
StealthFiringBreathingAdditiveWeight
AimingLeanAdditiveWeight
FiringLeanAdditiveWeight
StealthAimingLeanAdditiveWeight
StealthFiringLeanAdditiveWeight
ExpandPedCapsuleRadius
HudDamage
Value displayed for damage in the weapon wheel selection screen.
HudSpeed
Value displayed for firing speed in the weapon wheel selection screen.
HudCapacity
Value displayed magazine capacity in the weapon wheel selection screen.
HudAccuracy
Value displayed accuracy in the weapon wheel selection screen.
HudRange
Value displayed range in the weapon wheel selection screen.
Infos (Vehicle Weapons)
Infos (Environmental)
VehicleWeaponInfos
These are weapons mounted on vehicles.
Name
Name used in handling.meta.
KickbackAmplitude
How much force the weapon will kickback when the player shoots the weapon.
KickbackImpulse
How often the kickback will happen
- Value: 0 = it wont ever happen, 1 = it will happen every shot.
Name
Grand Theft Auto V | |
---|---|
File Formats | .awc • .dat • .gfx • .gxt2 • .ide • .meta/.ymt/.xml • .mrf • .patch • .rpf • .ybn/.ybd • .ycd • .ydd • .ydr • .yed • .yfd • .yft • .yld • .ymap • .ymf • .ynd • .ynv • .ypdb • .ysc • .ytd • .ytyp • .yvr |
Documentation | Bink Video • Native functions • Weather types |
Tools | OpenIV • GIMS Evo • CodeWalker |
Multiplayer | GTAForums: GTA Online |
Useful links | Community portal • Discussion forums • GTA V Modding Forum • GTA5-Mods • Native Functions Database (alloc8or) |