Skip to main content

ROCK 1.0 behaviour consumers see

Behaviour of ROCK 1.0 that shapes how a consumer reads and requests. The exact contracts are on each interface page.

Two equipped weapons​

The player can equip two weapons, one per hand. They are weapon slots 0 and 1, the native equipment indices.

  • Weapon getWeaponState, getGrip and copyEmitters publish both slots; a slot's hands are in its WeaponState (firingHand, supportHand), never implied by the slot.
  • Hands getRoles names, for each physical hand, the weapon slot it holds and whether it is the Firing or a Support grip.
  • Grab hand state reports the hand holding the second weapon as Holding with FiringGrip | NativeWeaponCarry, so it reads as busy.
  • WeaponState carries each slot's own ammo counter (loadedRounds, reserveRounds with AmmoKnown).
  • WeaponParts serves slot 1's copyEvidenceDetails, copySources, querySourcePose and setDriveTargets/clearDriveTargets for the bones its animation graph writes, with one drive owner at a time; slot 1's other WeaponParts calls, physical reload leases and the other per-weapon features return TargetUnavailable.

Equipping and unequipping​

  • requestInventoryEquip equips into the requested hand and replaces the weapon that hand fires or carries; that weapon returns to the inventory and outgoingFormId names it. A weapon the other hand holds stays equipped. Nothing is dropped loose.
  • unequipWeapon returns one slot's weapon to the inventory. When slot 0 empties, a slot-1 weapon moves to slot 0 in the same hand on the next frame.
  • The shoulder gesture returns the weapon in that hand to the inventory, for either slot. ROCK no longer sheathes a weapon at the shoulder.
  • requestInventoryDraw and getFiringAimWorld let a holster mod show a weapon in the hand before ROCK reveals the real one, then ease into the grip. setWarmInventoryWeapons keeps up to eight inventory firearms ready, so their first draw after a load does not wait on the engine.

Grip zone​

ROCK's firing-grip handoff and reattach zone is a quarter sector on each side of the grip, from straight out to straight down the grip. A handling authority lease with FiringGripCylinderZone replaces it with one cylinder per side while the lease holds.

No event streams​

ROCK publishes state once per frame and keeps no per-owner event buffers. Poll state and compare its sequence counters; a lost lease shows up as a failed renew. The Grab event callback still reports one-off moments (pull, catch, impact, release) as they happen.

Drawing​

ROCK keeps its own hand and weapon visualization but draws nothing for other mods. Debug shapes, indicators and labels go through RPS UI Framework.

Player body colliders​

The player's body colliders cover the torso and arms. Leg and foot colliders are removed, so body contacts never report those zones.

Holding and placing objects​

A grab always ends with the object in the palm, locked to the hand. A held loose object can be placed as a fixed object through Grab's held placement (an add-on owns the gesture; ROCK validates contact and the whole body set and saves the placement). A dropped item can be watched until it rests, then frozen in place (Collision watchObjectRest).