Granules ‐ Components - APintOfGravy/H3VR-GravyScripts GitHub Wiki

The current components are included with Granules:

DATA

RevolverData

Intended for use with work-in-progress revolver patches. Do not use.

ChamberData

A part of GravyBoat's ammo loading animations, has no effect without GravyBoat's patches. Recommended to apply this if you have issues with GravyBoat's ammo animating. Should only be added to GameObjects with either the FVRFireArmChamber or the FVRFireArmMagazineReloadTrigger components.

  • ShouldUseChamberAnimations - Unused?
  • LoadDirection - Determines if the ammo is loaded front-first, like most weapons, or back-first, for muzzle-loaded weapons like the RPG-7.
  • LoadPivotPoint - Corresponds to where ammo is positioned relative to the GameObject in question. For chambers, this should be the center. For things like tube magazines, this should be the rear.

AmmoData

A part of GravyBoat's ammo loading animations, has no effect without GravyBoat's patches. This only currently handles the speed at which ammo pivots in the player's hand. The underlying calculations behind this are likely to change. Do not use.

ATTACHMENT SCRIPTS

AttachableFlammenwerfer

Attachable flamethrower. Shares properties with the base flamethrower script. Untested.

AttachableOpenBoltReceiver

Attachable open-bolt firearm. Shares properties with open-bolt firearms. Belt boxes currently unsupported. Also has AttachableOpenBoltChargingHandle and AttachableOpenBoltReceiverBolt as companion scripts, supplementing vanilla scripts that do not function properly with the attachable open bolt.

AttachableClosedBoltHandle

Companion script for the vanilla AttachableClosedBolt. Supplements ClosedBoltHandle for attachable firearms that aren't compatible with it.

ATTACHMENT SUBSCRIPTS

MagPoser

Enhanced version of OpenScripts2's Magazine Poser script. Assumes grabbing position based on hand rotation. Feel free to experiment with this, but it's likely to be replaced with a better version at a later date.