Weapons and ammo¶
Starting gear¶
<property name="DSDNpcWeapon" value="gunHandgunT1Pistol,gunRifleT1HuntingRifle,meleeWpnClubT1BaseballBat"/>
<property name="DSDNpcAmmo" value="45"/>
One item is picked at random when the NPC spawns. Guns get DSDNpcAmmo rounds of their first ammo type. Hired NPCs
keep what their owner gave them instead.
What works¶
- Every melee weapon and gun, including other mods' weapons.
- Not used: launchers and throwables.
- Guns use the game's own shooting: damage, range, spread, muzzle flash and sound come from the item.
How they shoot¶
| Spacing | Shotgun (name contains "shotgun") ~7 m, pistol ~10 m, rifle ~16 m. Backs off inside 4 m. |
| Rate | The gun's own rounds per minute. Automatics (faster than 5 shots a second) fire bursts of 3-6. |
| Magazine | The gun's magazine size, then a reload of about 2.5 s (faster with reload-speed bonuses). |
| Aim | DSDNpcAim meters of error at 20 m, more while moving, less with kills. |
| Ammo | One round of the NPC's ammo per shot. Out of ammo: fists. |
Animation sets¶
The held item picks the animation set by its item name:
| Set | Item name contains |
|---|---|
| Pistol | pistol, handgun, magnum, revolver, deagle, desertvulture, 44 |
| Rifle | any other gun |
| Two-handed melee | sledge, spear, pickaxe, fireaxe, shovel |
| One-handed melee | any other melee weapon |
| Unarmed | nothing / fists |
Guns sit in the hand the way the player holds them in third person: NPC Utilities moves the hand bone exactly as the player animations do and the game applies its own per-weapon offsets.