-
Notifications
You must be signed in to change notification settings - Fork 0
en:class GunVariantData
DerpyNewbie edited this page Oct 19, 2022
·
6 revisions
EN | JA
GunVariantData holds and provides all relevant data for use in GunManager and ManagedGun.
Which makes adding and summoning flexible amount of variants so much easier than cloning and pooling each single Gun variants.
Property: | Function: |
---|---|
Unique Id | The unique id for this variant. Values should not be (> 0 or == 255) because - (-1) is USED to reset managed guns. - (255) is RESERVED as fallback variant. |
Weapon Name | Human-readable Weapon Name. Should be able to be used for printing user information (e.x. weapon name in kill logs) |
Holster Size | Minimum required holster size for this variant. |
Available Firing Modes | Sets of available firing modes for this variant. This should not contain duplicated FireMode type as it cannot go further than that duplicated element. |
Max Rounds Per Second | How many rounds can be shot in one second. |
Model | The Gun Model for this variant. Gun Animation will be played on this object if the Animator component was attached. |
Projectile Data | The Projectile data for this variant. @seealso ProjectileDataProvider, GunBulletDataStore |
Audio Data | The Audio data for this variant. @seealso GunAudioDataStore |
Haptic Data | The Haptic data for this variant. @seealso GunHapticDataStore |
Camera Data | The Camera data for this variant. @seealso GunCameraDataStore |
Behaviour | The Gun Behaviour for this variant. |
Is Double Handed | Is this variant double-handed? |
Use Re Pickup Delay For Main Handle | Make unable to pickup MainHandle after dropping it, for short period of time. |
Use Re Pickup Delay For Sub Handle | Make unable to pickup SubHandle after dropping it, for short period of time. |
Model Offset | Model offset transform. |
Shooter Offset | The transform where projectile come out from. Z forward Y up. |
Main Handle Offset | The transform where MainHandle should be at. |
Main Handle Pitch Offset | (VR-ONLY) Adjust angle of MainHandle for more accurate holding angle. |
Sub Handle Offset | The transform where SubHandle should be at. |
Collider Setting | The Box Collider setting for this variant. |
Desktop Tooltip | MainHandle tooltip for Desktop user. |
Vr Tooltip | MainHandle tooltip for VR user. |
Property: | Function: |
---|---|
UniqueId | b |
WeaponName | |
HolsterSize | |
AvailableFiringModes | |
MaxRoundsPerSecond | |
Model | |
ProjectileData | |
AudioData | |
CameraData | |
HapticData | |
Behaviour | |
IsDoubleHanded | |
UseRePickupDelayForMainHandle | |
UseRePickupDelayForSubHandle | |
ModelPositionOffset | |
ModelRotationOffset | |
FiringPositionOffset | |
FiringRotationOffset | |
MainHandlePositionOffset | |
MainHandleRotationOffset | |
SubHandlePositionOffset | |
SubHandleRotationOffset | |
MainHandlePitchOffset | |
HasColliderSetting | |
ColliderCenter | |
ColliderSize | |
TooltipMessage |