KF2 Spawn Weapons with Console Commands: GiveWeapon Class List
This reference collects the console commands for spawning weapons in Killing Floor 2, with the class names for current weapons as of the Polar Distress update (v1136, 152 items). It is useful for testing, private games and for server admins; cheats are not available in normal public matches. For the broader cheat topic see cheats overview.
Command format
- Local or cheat-enabled game:
GiveWeapon KFGameContent.KFWeap_<ClassName> - As a server admin:
Admin GiveWeapon KFGameContent.KFWeap_<ClassName>
Use EnableCheats first where needed. ThrowWeapon drops the current weapon.
If you spawn multiple weapons or ones that cannot be dropped, swap between them with:
SwitchWeaponGroup 0- primariesSwitchWeaponGroup 1- secondariesSwitchWeaponGroup 2- meleesSwitchWeaponGroup 3- equipment (syringe, welder, C4, datapad and gear)
The same command in the main menu's Gear tab shows a third-person view of a skin without being in a match; changed skins apply only after you drop the old skinned gun and take the weapon again.
DLC weapons (newest first)
Class names to put after KFGameContent.KFWeap_:
LMG_MG3, Shotgun_S12, HVStormCannon, ZedMKIII, AssaultRifle_G36C, Edged_Scythe,
ShrinkRayGun, AutoTurret, AssaultRifle_Doshinegun, Rifle_ParasiteImplanter,
Pistol_Bladed, Pistol_DualBladed, RocketLauncher_ThermiteBore, AssaultRifle_FAMAS,
GravityImploder, Rifle_FrostShotgunAxe, Minigun, Mine_Reconstructor,
Pistol_Blunderbuss, Pistol_G18C, Pistol_DualG18, Bow_CompoundBow, SMG_G18,
Rifle_MosinNagant, Pistol_ChiappaRhino, Pistol_ChiappaRhinoDual,
Edged_IonThruster, Blunt_ChainBat, Edged_Zweihander
HRG weapons (newest first)
HRG_93R, HRG_93R_Dual, HRG_Warthog, HRG_MedicMissile, HRG_BallisticBouncer,
HRG_Dragonbreath, HRG_Locust, HRG_CranialPopper, HRG_Crossboom, HRG_Stunner,
HRG_Boomy, HRG_Energy, HRG_BarrierRifle, HRG_BlastBrawlers, HRG_SonicGun,
HRG_Vampire, HRG_EMP_ArcGenerator, Pistol_HRGScorcher,
AssaultRifle_HRGTeslauncher, Shotgun_HRG_Kaboomstick,
AssaultRifle_HRGIncendiaryRifle, Rifle_HRGIncision, Pistol_HRGWinterbite,
Pistol_DualHRGWinterbite, HRG_Nailgun, HRG_Healthrower,
HRG_Revolver_Buckshot, HRG_Revolver_DualBuckshot
Note that since v1110 (Feb 2021) the HRG Teslauncher moved from the KFGameContent package to KFGame, so its class path differs.
Stock weapons by perk
- Melee and utility: Blunt_Crovel, Edged_Katana, Edged_FireAxe, Blunt_MedicBat, Blunt_Pulverizer, Eviscerator, Blunt_PowerGloves, Blunt_MaceAndShield, Edged_AbominationAxe, Shotgun_Nailgun
- Commando: AssaultRifle_AR15, AssaultRifle_Bullpup, AssaultRifle_AK12, AssaultRifle_MKB42, AssaultRifle_SCAR, LMG_Stoner63A
- Support: Shotgun_MB500, Shotgun_DoubleBarrel, Shotgun_HZ12, Shotgun_M4, Shotgun_AA12, Shotgun_ElephantGun
- Field Medic: Pistol_Medic, SMG_Medic, Shotgun_Medic, AssaultRifle_Medic, AssaultRifle_MedicRifleGrenadeLauncher, Rifle_Hemogoblin
- Demolitionist: GrenadeLauncher_HX25, Thrown_C4, GrenadeLauncher_M79, RocketLauncher_SealSqueal, AssaultRifle_M16M203, RocketLauncher_RPG7, RocketLauncher_Seeker6, GrenadeLauncher_M32
- Firebug: Flame_CaulkBurn, Pistol_Flare, Pistol_DualFlare, Shotgun_DragonsBreath, Flame_Flamethrower, SMG_Mac10, Beam_Microwave, HuskCannon, AssaultRifle_Microwave
- Gunslinger: Revolver_Rem1858, Revolver_DualRem1858, Pistol_Colt1911, Pistol_DualColt1911, Pistol_Deagle, Pistol_DualDeagle, Revolver_SW500, Revolver_DualSW500, Pistol_AF2011, Pistol_DualAF2011
- Sharpshooter: Rifle_Winchester1894, Rifle_CenterfireMB464, Bow_Crossbow, Rifle_M14EBR, Rifle_RailGun, AssaultRifle_FNFal, Rifle_M99
- SWAT: SMG_MP7, SMG_MP5RAS, AssaultRifle_Thompson, SMG_P90, SMG_HK_UMP, SMG_Kriss
- Survivalist and misc: Ice_FreezeThrower, AssaultRifle_LazerCutter, Pistol_9mm, Pistol_Dual9mm, Healer_Syringe, Welder
- Boss weapons: AssaultRifle_DualMKb42_Hans, Minigun_Patriarch, Minigun_Patriarch_Versus, PowerClaw_Matriarch
- Knives: Edged_Knife, Knife_Berserker, Knife_Commando, Knife_Support, Knife_FieldMedic, Knife_Demolitionist, Knife_Firebug, Knife_Gunslinger, Knife_Sharpshooter, Knife_SWAT, Knife_Survivalist
- Carryables:
KFGameContent.KFCarryable_GearandKFGameContent.KFCarryable_Datapad(note the different prefix)
Junk entries
KFWeap_Random works as a command but does not give anything ("You picked up a"). These do not work: KFWeap_MedicBase (it behaved like KFWeap_Random before), KFInventory_Armor, KFWeap_DualBase, KFWeap_GrenadeLauncher_Base, KFWeap_GrenadeLauncher_CylinderBase, KFWeap_PistolBase and None.
KFWeapDef: Trader Inventory mutator entries
For the Trader Inventory mutator on the Workshop, the entries use CustomItems=KFGame.KFWeapDef_<Name>. Examples by update:
- Deep Blue Z (all 126 weapons):
KFWeapDef_Shotgun_S12,KFWeapDef_HRG_Warthog(andKFWeapDef_HRG_WarthogWeapon; the author was not sure which is the real one). - Polar Distress (124):
KFWeapDef_ZedMKIII,KFWeapDef_HVStormCannon,KFWeapDef_HRG_BallisticBouncer,KFWeapDef_HRG_MedicMissile. - Blood & Bonfires (120):
KFWeapDef_Scythe,KFWeapDef_G36C,KFWeapDef_HRG_Dragonbreath,KFWeapDef_HRG_Locust.
The original lists the full set in the order they appear in the trader menu, such as KFWeapDef_9mm, KFWeapDef_Remington1858, KFWeapDef_Crovel, KFWeapDef_AR15, KFWeapDef_MedicPistol, KFWeapDef_MB500, KFWeapDef_CaulkBurn, KFWeapDef_Winchester1894, KFWeapDef_MP7, KFWeapDef_HX25, KFWeapDef_C4, KFWeapDef_Colt1911, KFWeapDef_Deagle, KFWeapDef_Bullpup, KFWeapDef_M79 and KFWeapDef_Crossbow.
Finding the names yourself
- KFWeap: open
C:\Program Files (x86)\Steam\SteamApps\common\killingfloor2\KFGame\Localization\INT\KFGameContent.intin a text editor and search for "KFWeap", or look at the files starting with "KFWeap" in...\killingfloor2\Development\Src\KFGameContent\Classes. The in-game console commandShowDebug WEAPONshows information about the equipped weapon. - KFWeapDef: files starting with "KFWeapDef" in
...\Development\Src\KFGame\Classes(before v1110 the HRG Teslauncher was in KFGameContent\Classes). - Trader list: in the KF2 SDK Content Browser, search the Packages tab for "GP_Trader_ARCH", fully load it, and open Properties on "DefaultTraderItems". The Development folder needs the KF2 SDK installed (opt into the beta for the SDK if available).
FAQ
- What is the command to spawn a weapon in KF2?
- In the console use GiveWeapon KFGameContent.KFWeap_<ClassName>, or on a server Admin GiveWeapon KFGameContent.KFWeap_<ClassName>.
- What if I spawn several weapons or non-droppable ones?
- Use SwitchWeaponGroup 0 (primaries), 1 (secondaries), 2 (melee) or 3 (equipment: syringe, welder, C4, datapad and gear) to swap between them.
- Where can I find class names myself?
- Open KFGame/Localization/INT/KFGameContent.int in a text editor and search for KFWeap, or browse Development/Src/KFGameContent/Classes in the game folder.