RHS: Status Quo
  • Red Hammer Studios
  • Join the Team!
  • Frequently Asked Questions
  • Team
  • Arma Reforger
    • RHS: Status Quo
      • EULA
      • Roadmap
      • Feedback
        • How to help us fixing a bug
      • Installation
      • Server Setup
      • Changelog
        • 0.10
        • 0.9
        • 0.8
        • 0.7
        • 0.6
        • 0.5
        • 0.4
        • 0.3
        • 0.2
      • General Systems
        • Spectrum Device
        • PMF-5.1
        • RHS IR, NV and "Thermals"
        • RHS Extended Inventory System
        • RHS Radial Menu
        • Close Air Support
        • Navigation and Positioning
        • EARHS
        • GPS Radio Beacon
        • Default Key Bindings
      • For Developers
        • Sliding Attachments
        • Detacheable Bipods
        • Custom pouch presets
        • Patches
      • BLUFOR
        • What is BLUFOR?
          • USMC
        • Uniforms
          • Backpacks
            • FILBE Hydration Pack
            • FILBE Backpack
            • 6.11 Tactical RUSH 12 2.0 Backpack
          • Clothing
            • Jackets/Shirts
              • Crye Combat Shirt
              • FROG Combat Shirt
              • Parka
              • Waffle Top
            • Pants
              • BDU Combat Pants
              • Crye Combat Pants
              • FROG Combat Pants
          • Eye Protection
          • Footware
            • BCT Boots
            • USMC Combat Boot
            • Rocky SV2 Boots
            • Luma Military Boots
            • Salomon X Ultra
            • Altama
            • Altama Boots
          • Gloves
            • M-Pact
          • Helmets
            • 3Mâ„¢ PELTORâ„¢ ComTacâ„¢ VI
            • ECH
            • CVC
            • ACH
            • MICH
          • Mask
          • Vest
            • APC Vest
            • PC Gen III
        • Gadgets
          • AN/PRC-152A
          • AN/PVS-14
          • Vector 21
        • Weapons
          • Glock 17
          • Glock 45
          • M17
          • M18
          • M27
          • M4A1
          • M4A1 Block II
          • M38 SDMR
          • M40A5
          • MK153 SMAW Mod 2
        • Weapon Attachments
          • AN/PEQ-15
          • AN/PEQ-16A
          • AN/PSQ-23
          • SU-233
          • M300c
          • LT706 Harris Bipods
          • M4A1 Carry Handle
          • RMR Optic
          • Trijicon TA31RCO Optic
          • Trijicon TA648MDO Optic
          • M8541 Scope
          • Leupold Mark 4 Tactical Scope
          • Leupold TS-30A2 Mark 4 Scope
        • Ammunition
          • 9x19mm M17 24-Round Magazine
          • 9x19mm M17 17-Round Magazine
          • 9x19mm Glock 17-Round Magazine
          • 5.56x45mm STANAG 30-Round M855A1 Magazine
          • 5.56x45mm STANAG 30-Round M995 Magazine
          • M249 200-Round M855A1 Belt
          • 7.62x51mm M40 5-Round Magazine
          • 7.62x51mm M40 M61AP 5-Round Magazine
          • 7.62x51mm M40 M62 Tracer (T) 5-Round Magazine
          • 7.62x51mm M40 M80 5-Round Magazine
          • 40mm M713 Marker Grenade (Red)
          • 40mm M715 Marker Grenade (Yellow Smoke)
          • 40mm M716 Marker Grenade (Violet Smoke)
          • 40mm M585 Star Cluster Grenade
          • 40mm XM663 Star Cluster Grenade (Green)
          • 40mm XM664 Star Cluster Grenade (Red)
          • Mk153 NE (Novel Explosive) Round
          • Mk153 HEDP (High-Explosive Dual-Purpose) Round
          • Mk153 HEAA (High-Explosive Anti-Armor) Round
        • Vehicles
      • REDFOR
        • What is REDFOR?
        • Uniforms
          • Summer VKPO
          • Demi Season VKPO
          • Helmets
            • 6M2
            • TOR (S/M/L)
            • TOR-2 (M/L)
            • LShZ 1+
            • 6B7-1M
            • 6B47
        • Gadgets
          • R-187-P1E Azart
          • 1PN138
          • PDU-4
        • Weapons
          • Attachments
            • Optics
              • PO4x24P
              • INFRATECH TWS-1
              • 1PN93
              • 1P21
              • 1P63
              • 1P78
              • 1P86
              • 1P87
                • 1P87 + 1P90
                • 1P87 + 1PN138
              • PGO-7V3
            • Lasers
              • LTSU-1
              • Zenitco Perst "Klassika" V4.0
          • SP-81
          • APS
          • AK-74M
          • AKS-74UN
          • RPK-74M
          • AK-105
          • AN-94
        • Ammunition
        • Vehicles
          • K-17 Boomerang
          • T-14
          • 2S1
      • INDFOR
        • What is INDFOR?
        • Uniforms
        • Gadgets
        • Weapons
          • Glock 17
          • Glock 45
          • Reference BLUFOR M4A1
          • Reference BLUFOR M4A1 Block I
          • Reference BLUFOR M4A1 Block II
          • AR15 GA UD115
          • AR15 GA UD145
          • AK-101
          • AK-102
          • VZ58P
          • VZ58V
          • MG249
          • M60
        • Ammunition
        • Vehicles
    • RHS: TerraCore
  • Arma 3
    • RHS: Escalation
Powered by GitBook
On this page
  • Patch Objects
  • Morph Targets
  • Prefab
  • Receiving Objects
  • Headgear
  • Vests
  • Jackets
  1. Arma Reforger
  2. RHS: Status Quo
  3. For Developers

Patches

Last updated 3 hours ago

Patch Objects

To follow this tutorial you can use the following Blender file that contains all the geometry necessary to create new patches on your own (either by swapping the textures of this sample or creating your own shape geometry). This tutorial will not teach you how to UV and texture, so pre-existing knowledge of these topics is required.

When you open the file you will see the following:

The highlighted object is the patch geometry, and the purple box is the collider. You can leave the collider as is.

Patches in RHS follow very simple rules:

  • No bones or rigging necessary

  • The world origin must be at backside (velcro) of the patch center

  • The patch must be facing in the direction of Y+ axis

  • You can use morphs to make them fit the curvature of the objects they are attached to.

Morph Targets

In order to ensure the curving of the patch on rounded objects such as helmets and sleeves, you can add a "Curve" shape key and modify the geometry to fit with the sample above. The Curve key at 1.0 setting is the maximum curvature. The Basis key should represent your patch in fully flat position.

When you are importing your FBX into Workbench, make sure the Export Morphs import setting is enabled.

You will then be able to control the morph in the xob editor, but you can leave it at 0:

Prefab

While you are making your own mod with RHS: Status Quo as dependency, find Patch_Base.et in SQ and right click on it. Select "Inherit in 'MyNewPatchMod'". This should prompt you to create a new inherited prefab in your own mod. Edit this prefab.

In the InventoryItemComponent change the Name and Description values.

In the MeshObject component set the Object value to your newly created xob.

NOTE: If you are just changing textures and using the same mesh for the patches, then just change the material. You dont need a new xob for every patch.

In the BaseLoadoutClothComponent change the material overrides like shown below to your new materials. Change the Area Type value if necessary (just filter for Velcro to find all RHS velcto area types) depending on the general size of your patch.

Your patch is now ready to be accepted on RHS patch system compliant cloth items.

Receiving Objects

If you are setting up cloth items that should receive patches there are a few steps that are different for objects like Helmets, Jackets and Vests, because they interact with the AR inventory system differently.

The simplest approach for any item type is to inherit from a pre-existing RHS object that most closely resembles your new object.

Headgear

First add a RHS_ClothNodeStorageComponent and set it up in a similar fashion, changing values where appropriate:

In the BaseLoadoutClothComponent make sure you have Debug Worn Model value set to true when editing positions of velcro attachment slots.

Do not forget to turn Debug Worn Model to off when you are done editing.

In the Slots array of BaseLoadoutClothComponent make an new slot of type RHS_LoadoutSlotInfo. The name of the slot MUST be one of the following (Top Velcro, Left Velcro, etc.). If you name it wrong it will not work:

Use the following reference to set up the slot:

The Offset and Angle properties should be used to align the patch positioning. Load a patch prefab into the Prefab property to see it while modifying position:

Set the Name and Area Type settings appropriate for your patch attachment (name must be same as the slot name and area type must be one of the RHS velcro slot areas). Use morph settings to indicate how much the patch should bend if it has morphs:

Morph Value setting indicates by how much between 0 and 1 the patch will bend.

Vests

For armored vests the setup is exactly the same as for helmets but the name of the slot should be ChestVelcro.

Jackets

For jackets and other upper torso objects, the component structure is a little bit different:

The RHS_ClothNodeStorageComponent must be setup with above settings as a child of SCR_UniversalInventoryStorageCOmponent that is setup as follows:

The BaseLoadoutClothComponent is then setup ehactly the same way as for the Headgear:

Note that the slot names SleeveRight and LeftVelcro must be maintained for it to work.

934KB
rhs_patch_sample.blend