Book Image

Source SDK Game Development Essentials

By : Brett Joseph Bernier
Book Image

Source SDK Game Development Essentials

By: Brett Joseph Bernier

Overview of this book

Table of Contents (18 chapters)
Source SDK Game Development Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Actbusy


NPCs have the ability to keep themselves busy without the need for multiple, complex, scripted sequences. The Ai_goal_actbusy entity tells an NPC or group of NPCs to keep themselves busy by acting out certain sequences and animations with the help of info_node_hint entities. Basically, the info_node_hint entity depicts which animations to play, and the ai_goal_actbusy entity picks a random node for the NPC to walk to.

In order for the info_node_hint to tell an NPC what to do, you need to write a set of instructions that are located in a text file called actbusy.txt. This file is located in your scripts folder. For example, I'm using Half-Life 2: Episode Two, so my scripts folder is located at Steam\steamapps\half life 2. If you navigate to this folder right now, there might not be anything in it. Again, we'll need to use GCFScape to extract proper files. Extracting files will let us use Valve's actbusy.txt file, but we could always create our own. If you create your own actbusy.txt...