List of memory bits

From Valve Developer Community
Jump to navigation Jump to search
Wikipedia - Letter.png
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
Dead End - Icon.png
This article has no Wikipedia icon links to other VDC articles. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024

List retrieved from game\server\ai_basenpc.h

Caption text
Internal name Associated bit Developer comment Notes
bits_MEMORY_PROVOKED 1 right now only used for houndeyes.  
bits_MEMORY_INCOVER 2 npc knows it is in a covered position.  
bits_MEMORY_SUSPICIOUS 3 Ally is suspicious of the player, and will move to provoked more easily  
bits_MEMORY_TASK_EXPENSIVE 4 NPC has completed a task which is considered costly,
so don't do another task this frame
 
Unused 5    
bits_MEMORY_PATH_FAILED 6 Failed to find a path  
bits_MEMORY_FLINCHED 7 Has already flinched  
Unused 8    
bits_MEMORY_TOURGUIDE 9 I have been acting as a tourguide.  
Unused 10    
bits_MEMORY_LOCKED_HINT 11    
Unused 12 and 13    
bits_MEMORY_TURNING 14 Turning, don't interrupt me.  
bits_MEMORY_TURNHACK 15    
bits_MEMORY_HAD_ENEMY 16 Had an enemy  
bits_MEMORY_HAD_PLAYER 17 Had player  
bits_MEMORY_HAD_LOS 18 Had LOS to enemy  
bits_MEMORY_MOVED_FROM_SPAWN 19 Has moved since spawning.  
Unused 20 through 28    
bits_MEMORY_CUSTOM4 29 NPC-specific memory  
bits_MEMORY_CUSTOM3 30 NPC-specific memory  
bits_MEMORY_CUSTOM2 31 NPC-specific memory  
bits_MEMORY_CUSTOM1 32 NPC-specific memory