Npc dog: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (ep1 add)
mNo edit summary
Line 1: Line 1:
{{wrongtitle|title=npc_dog}}
{{wrongtitle|title=npc_Dog}}
==Entity Description==
==Entity Description==
[[Image:D0g.jpg|frame|right|Dog]]
[[Image:D0g.jpg|frame|right|Dog]]
Line 19: Line 19:


* '''SetPickupTarget <target_destination>'''
* '''SetPickupTarget <target_destination>'''
: Sets the target entity for d0g to pickup.
: Sets the target entity for Dog to pickup.


* '''StartCatchThrowBehavior <target_destination>'''
* '''StartCatchThrowBehavior <target_destination>'''
: Tells d0g 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.
: 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>'''
* '''StopCatchThrowBehavior <target_destination>'''
Line 28: Line 28:


* '''PlayerPickupObject'''
* '''PlayerPickupObject'''
: Tells d0g the physgun just picked up an object.
: Tells Dog the physgun just picked up an object.


* '''StartWaitAndCatch'''
* '''StartWaitAndCatch'''
: Tells d0g to wait for the player to throw an object at him.
: Tells Dog to wait for the player to throw an object at him.


* '''StopWaitAndCatch'''
* '''StopWaitAndCatch'''
: Tells d0g to stop waiting for the player.
: Tells Dog to stop waiting for the player.


* '''SetThrowArcModifier <float>'''
* '''SetThrowArcModifier <float>'''
: Used to pass in a modifier for d0g's object flight arc.
: Used to pass in a modifier for Dog's object flight arc.


* '''SetThrowTarget <target_destination>'''
* '''SetThrowTarget <target_destination>'''
: Set d0g'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


==Outputs==
==Outputs==
Line 50: Line 50:


* '''OnDogThrow'''
* '''OnDogThrow'''
: Fires when d0g throws an object.
: Fires when Dog throws an object.


* '''OnDogPickup'''
* '''OnDogPickup'''
: Fires when d0g picks up an object.
: Fires when Dog picks up an object.


* '''OnDogCatch'''
* '''OnDogCatch'''
: Fires when d0g catches an object.
: Fires when Dog catches an object.


[[Category:Entities]][[Category:NPCs]]
[[Category:Entities]][[Category:NPCs]]

Revision as of 06:51, 6 August 2006

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

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)
Turn Dog's bone followers off
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.