s&
info
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
explore
Discover Games
category
Workshop
sports_esports
Games
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
menu_book
Learn
docs
Documentation
api
Api Reference
school
Tutorials
manage_search
Code Search
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
NpcUsage
chevron_left
Classes
struct
NpcUsage
Constructors
functions
NpcUsage
Properties
data_object
BurstMax
data_object
BurstMin
data_object
CanBePickedUp
data_object
MaxRange
data_object
MinRange
data_object
RestMax
data_object
RestMin
data_object
SpreadScale
NpcUsage
How an NPC fights with a weapon - engagement band, burst cadence and accuracy.
struct
Sandbox.BaseWeapon
.
sealed
Sandbox.Engine
build
Constructors
1
NpcUsage
(
)
How an NPC fights with a weapon - engagement band, burst cadence and accuracy.
data_object
Properties
8
BurstMax
int
Most shots in a burst.
BurstMin
int
Fewest shots in a burst.
CanBePickedUp
bool
Can NPCs pick this up off the ground to arm themselves?
MaxRange
float
Furthest distance the NPC will attack from.
MinRange
float
Closer than this and the NPC shouldn't attack - back off first.
RestMax
float
Longest rest between bursts, seconds.
RestMin
float
Shortest rest between bursts, seconds.
SpreadScale
float
Spread multiplier when an NPC fires this - how forgiving the weapon is in untrained hands. The NPC multiplies in its own skill and applies the result via Sandbox.BaseWeapon.NpcUsage.SpreadScale.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.