import { BotWeaponGenerator } from "https://deno.land/x/sptaki@1.2.0/generators/BotWeaponGenerator.d.ts";
Constructors
Properties
Methods
Add ammo to the secure container
Insert a cartridge(s) into a weapon Handles all chambers - patron_in_weapon, patron_in_weapon_000 etc
Add cartridge item to weapon Item array, if it already exists, update
Add Grendaes for UBGL to bots vest and secure container
Create array with weapon base as only element and add additional properties based on weapon type
Fill each Camora with a bullet
Fill existing magazines to full, while replacing their contents with specified ammo
Add desired ammo tpl as item to weaponmods array, placed as child to UBGL
Get a weapons magazine tpl from a weapon template
Get the mods necessary to kit out a weapon to its preset level
Get a weapons compatible cartridge caliber
Finds and return a compatible ammo tpl based on the bots ammo weightings (x.json/inventory/equipment/ammo)
Checks if all required slots are occupied on a weapon and all it's mods
Generates extra magazines or bullets (if magazine is internal) and adds them to TacticalVest and Pockets. Additionally, adds extra bullets to SecuredContainer
Pick a random weapon based on weightings and generate a functional weapon
Generated a weapon based on the supplied weapon tpl
Get a random weighted weapon from a bots pool of weapons