Npc dog: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Robot: fixing template case.)
Line 43: Line 43:
* '''SetThrowTarget <target_destination>'''
* '''SetThrowTarget <target_destination>'''
: Set Dog's throw target (pass in !player if you want the player)
: Set Dog's throw target (pass in !player if you want the player)
* '''{{ep1 add|TurnBoneFollowersOff}}'''
* '''{{EP1 add|TurnBoneFollowersOff}}'''
: Turn Dog's bone followers off
: Turn Dog's bone followers off
* '''{{ep1 add|TurnBoneFollowersOn}}'''
* '''{{EP1 add|TurnBoneFollowersOn}}'''
: Turn Dog's bone followers on
: Turn Dog's bone followers on



Revision as of 19:18, 19 January 2009

Template:Wrongtitle

Entity Description

Dog

Dog is one of the main characters introduced in Half-Life 2. Dog can play fetch and pick up things.

Also see descriptions for Dog and other Half-Life Continuity

Dog does not have any battle AI, and therefore will simply run away when faced with enemies. All of Dog's battle scenes in Half-Life 2 were scripted.

Note.pngNote:Some keyvalues, spawnflags, effect flags, inputs, or outputs might not affect an NPC, based on the functionality and coding of the NPC.

Keyvalues

Flags

Inputs

  • SetPickupTarget <target_destination>
Sets the target entity for Dog to pickup.
  • StartCatchThrowBehavior <target_destination>
Tells Dog to start playing with the player. You can pass the name of the object you want him to play with, otherwise he'll just use the closest phys_object.
  • StopCatchThrowBehavior <target_destination>
Stop the catch and throw behavior.
  • PlayerPickupObject
Tells Dog the physgun just picked up an object.
  • StartWaitAndCatch
Tells Dog to wait for the player to throw an object at him.
  • StopWaitAndCatch
Tells Dog to stop waiting for the player.
  • SetThrowArcModifier <float>
Used to pass in a modifier for Dog's object flight arc.
  • SetThrowTarget <target_destination>
Set Dog's throw target (pass in !player if you want the player)
  • TurnBoneFollowersOff (in all games since Half-Life 2: Episode One)
Turn Dog's bone followers off
  • TurnBoneFollowersOn (in all games since Half-Life 2: Episode One)
Turn Dog's bone followers on

Outputs

  • OnDogThrow
Fires when Dog throws an object.
  • OnDogPickup
Fires when Dog picks up an object.
  • OnDogCatch
Fires when Dog catches an object.

Template:Otherlang:en Template:Otherlang:en:ru