Npc dog: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎Inputs: targetdestination)
Line 18: Line 18:
* {{i basenpc}}
* {{i basenpc}}


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


* '''StartCatchThrowBehavior <targetname>'''
* '''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 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.


* '''StopCatchThrowBehavior <targetname>'''
* '''StopCatchThrowBehavior <target_destination>'''
: Stop the catch and throw behavior.
: Stop the catch and throw behavior.


Line 39: Line 39:
: Used to pass in a modifier for d0g's object flight arc.
: Used to pass in a modifier for d0g's object flight arc.


* '''SetThrowTarget <targetname>'''
* '''SetThrowTarget <target_destination>'''
: Set d0g's throw target (pass in !player if you want the player)
: Set d0g's throw target (pass in !player if you want the player)



Revision as of 17:32, 6 April 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 d0g to pickup.
  • 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.
  • StopCatchThrowBehavior <target_destination>
Stop the catch and throw behavior.
  • PlayerPickupObject
Tells d0g the physgun just picked up an object.
  • StartWaitAndCatch
Tells d0g to wait for the player to throw an object at him.
  • StopWaitAndCatch
Tells d0g to stop waiting for the player.
  • SetThrowArcModifier <float>
Used to pass in a modifier for d0g's object flight arc.
  • SetThrowTarget <target_destination>
Set d0g's throw target (pass in !player if you want the player)

Outputs

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