Bots do not properly use custom HL Weapon Mod weapons when they are spawned with a forced custom-only loadout.
They hold the weapon and move normally, but often do not fire at all.
The same custom weapons work correctly in normal gameplay, so this looks like a bot AI / weapon-selection issue specific to forced loadouts.
Environment
Game: Half-Life Deathmatch
Bot: jk_botti
Custom weapons: HL Weapon Mod weapons
Server setup: Windows dedicated server
Custom weapons are working for human players
Custom weapons are also used by bots in normal gameplay
Problem
If a bot is stripped and then given only a custom HL Weapon Mod weapon, it may stop using it correctly.
Reproduction
Spawn a bot.
Strip all weapons from the bot.
Give the bot only one custom HL Weapon Mod weapon, for example:
weapon_ar2
weapon_xs
weapon_railgun
other custom wpnmod weapons
Force-select that custom weapon.
Let the bot fight enemies.
Observed behavior
bot runs around normally
bot holds the custom weapon
bot tracks enemies / moves as expected
but bot often does not shoot
Expected behavior
Bots should be able to use and fire a valid custom HL Weapon Mod weapon even if it is the only weapon in their inventory.
Additional findings
The problem changes if stock fallback weapons are also given to the bot.
If I give the bot:
weapon_crowbar
weapon_glock
and then the custom weapon
and also apply temporary bot weapon preferences such as:
jk_botti botweapon weapon_crowbar avoid_this_gun 1
jk_botti botweapon weapon_9mmhandgun avoid_this_gun 1
jk_botti botweapon weapon_9mmhandgun low_ammo_primary 1
then the bot starts using the custom weapon correctly.
Without that fallback setup, bots may just run around with the custom weapon and never fire.
Important note
This does not look like a problem with the weapon itself, because:
the same custom weapons work for human players
the same custom weapons work for bots in normal gameplay
changing the give path (wpnmod_give_item vs touch/create path) did not solve it
The issue seems to be related to how bot AI evaluates or initializes custom weapons when they are the only weapon in inventory.
Possible cause
It may be that custom HL Weapon Mod weapons are not treated as immediately usable by bot weapon-selection logic unless the bot also has at least one stock fallback weapon in inventory.
Bots do not properly use custom HL Weapon Mod weapons when they are spawned with a forced custom-only loadout.
They hold the weapon and move normally, but often do not fire at all.
The same custom weapons work correctly in normal gameplay, so this looks like a bot AI / weapon-selection issue specific to forced loadouts.
Environment
Game: Half-Life Deathmatch
Bot: jk_botti
Custom weapons: HL Weapon Mod weapons
Server setup: Windows dedicated server
Custom weapons are working for human players
Custom weapons are also used by bots in normal gameplay
Problem
If a bot is stripped and then given only a custom HL Weapon Mod weapon, it may stop using it correctly.
Reproduction
Spawn a bot.
Strip all weapons from the bot.
Give the bot only one custom HL Weapon Mod weapon, for example:
weapon_ar2
weapon_xs
weapon_railgun
other custom wpnmod weapons
Force-select that custom weapon.
Let the bot fight enemies.
Observed behavior
bot runs around normally
bot holds the custom weapon
bot tracks enemies / moves as expected
but bot often does not shoot
Expected behavior
Bots should be able to use and fire a valid custom HL Weapon Mod weapon even if it is the only weapon in their inventory.
Additional findings
The problem changes if stock fallback weapons are also given to the bot.
If I give the bot:
weapon_crowbar
weapon_glock
and then the custom weapon
and also apply temporary bot weapon preferences such as:
jk_botti botweapon weapon_crowbar avoid_this_gun 1
jk_botti botweapon weapon_9mmhandgun avoid_this_gun 1
jk_botti botweapon weapon_9mmhandgun low_ammo_primary 1
then the bot starts using the custom weapon correctly.
Without that fallback setup, bots may just run around with the custom weapon and never fire.
Important note
This does not look like a problem with the weapon itself, because:
the same custom weapons work for human players
the same custom weapons work for bots in normal gameplay
changing the give path (wpnmod_give_item vs touch/create path) did not solve it
The issue seems to be related to how bot AI evaluates or initializes custom weapons when they are the only weapon in inventory.
Possible cause
It may be that custom HL Weapon Mod weapons are not treated as immediately usable by bot weapon-selection logic unless the bot also has at least one stock fallback weapon in inventory.