Skip to content

Weapon Structure Definition

zeroKilo edited this page Apr 22, 2020 · 16 revisions

Weapon Structure Definition

  • For the 3 classes up to 3 weapons are defined over the packet GetAllDefaultLoadoutKits in InventoryService
  • Weapons in game are defined over the packet GetTemplateWeaponMaps in WeaponService

Template Weapon Maps

  • in the packet for the weapon definitions are 4 std::maps with mapkeys
  1. TemplateWeaponList containing information about the weapon itself (TWL)
  2. WeaponCompatibilityBridge containing list of DWORD ids (WCB)
  3. TemplateComponentLists containing list of map keys (TCL)
  4. Components containing information about components of a weapon

BoneStructure Parameter

Is a bitfield. For now, all bone structure parameters are set to 255 except the weaponbody where its set to 8

Weapon Body

  1. TCL should contain 1 item with key of weapon and as value the key of 1 component
  2. this component should have type = 0
  3. from this components the key member is used to load the GAO

Stock

  1. TCL should contain 1 item with key of weapon and as value the key of 1 component
  2. this component should have type = 4
  3. from this components the key member is used to load the GAO

ForeGrip and Barrel

  1. TCL should contain 1 item with key of weapon and as value the key of 1 component
  2. this component should have type = 20 to refer to the GripAndBarrel Component
  3. from the components the modefierlistid is used to select a modefierlist
  4. 2 skill modefiers should exist there with modtype 2 and proptype 105 (WCPT_Package_RDVForeGripID_I) & 106 (WCPT_Package_RDVBarrelID_I)
  5. their methodvalue selects components again by mapkey
  6. these components should have type 5 (WCMT_ForeGrip) & 6 (WCMT_Barrel)
  7. from these components the key member is used to load the GAOs

Scope

  1. TCL should contain 1 item with key of weapon and as value the key of 1 component
  2. this component should have type = 8
  3. from this components the key member is used to load the GAO

Clip / Magazine

  1. TCL should contain 1 item with key of weapon and as value the key of 1 component
  2. this component should have type = 9
  3. from this components the key member is used to load the GAO

Possible Asset Keys

Body Component (type = 0)

  • 0xAD102B48

Grip Component (type = 5)

  • 0x14803873

Barrel Component (type = 6)

  • 0x14803878

Scope (type = 8)

  • 0xF7700653

Clip / Magazine (type = 9)

  • 0xAD102AA2

GripAndBarrel Parent Component (type = 20)

  • 0x14802EBA
Clone this wiki locally