#Can someone go into a bit more detail about the CAP Enumerations?

5 messages · Page 1 of 1 (latest)

signal reef
#

The full list is here: https://wiki.facepunch.com/gmod/Enums/CAP

I am mostly interested in the ones here.

CAP_WEAPON_RANGE_ATTACK1 -- Can do a weapon range attack 1
CAP_WEAPON_RANGE_ATTACK2 -- Can do a weapon range attack 2
CAP_WEAPON_MELEE_ATTACK1 -- Can do a weapon melee attack 1
CAP_WEAPON_MELEE_ATTACK2 -- Can do a weapon melee attack 2
CAP_INNATE_RANGE_ATTACK1 -- Can do a innate range attack 1
CAP_INNATE_RANGE_ATTACK2 -- Can do a innate range attack 2
CAP_INNATE_MELEE_ATTACK1 -- Can do a innate melee attack 1
CAP_INNATE_MELEE_ATTACK2 -- Can do a innate melee attack 2

I know what CAP_WEAPON_RANGE_ATTACK1 and CAP_WEAPON_MELEE_ATTACK1 are about, but I am bit more confused about the others.
Does the 2 variants refer to the Secondary fire?

And what are the innate ones? Are they specifically for NPCs who can't use weapons?

granite widget
#

Yes the 2 variants are for secondary fire

#

INNATE is for natural attacks built into the NPC (bullsquid spit, fisticuffs, headcrab leap, antlion slashing)

signal reef
granite widget
#

Try it