Template:Archived Page History/Npc dog/en: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{langsp}}
{{APH|npc_dog}}
<!-- Add the categories to the main page, not here -->
'''Dog''' is one of the main characters introduced in Half-Life 2.  '''Dog''' can play fetch and pick up things.
 
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.
 
{{warning|If '''Dog''' has an active [[ai goal follow|follow behavior]] (the only extra behavior he's capable of), he will prioritize it, and will not be able to use his fetching behavior. Turning it off (with <code>deactivate</code> input) allows him to play fetch.}}
 
{{note|The [[convar]] <code>dog_max_wait_time</code> controls for how long he waits after throwing an object before giving up and searching for another, if it's not thrown back at him. The default is 7 seconds.}}
 
{{NPCNote}}
 
{{todo|Describe how to use Dog's inputs and outputs to stage his fetch game. HL2's scene with it is very complex, but can actually be summed up quite simply.}}
 
 
==Keyvalues==
{{KV BaseNPC}}
 
==Flags==
{{Fl BaseNPC}}
 
==Inputs==
 
{{IO|SetPickupTarget|Sets the target entity for Dog to pickup.|param=target_destination}}
 
{{IO|SetThrowTarget|Set Dog's throw target (pass in !player if you want the player).|param=target_destination}}
{{note|If blank, or points to an missing entity, Dog will default to the player.}}
 
{{IO|StartCatchThrowBehavior|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.|param=target_destination}}
 
{{IO|StopCatchThrowBehavior|Stop the catch and throw behavior.|param=target_destination}}
 
{{IO|PlayerPickupObject|Tells Dog the physgun just picked up an object.|}}
 
{{IO|StartWaitAndCatch|Tells Dog to wait for the player to throw an object at him.|}}
{{bug|Seems non-functional. Interrupts catch-throw behavior, but then doesn't do anything else.}}
 
{{IO|StopWaitAndCatch|Tells Dog to stop waiting for the player.|}}
{{IO|SetThrowArcModifier|Used to pass in a modifier for Dog's object flight arc.|param=float}}
 
{{IO|TurnBoneFollowersOff|Turn Dog's bone followers off.|}}
 
{{IO|TurnBoneFollowersOn|Turn Dog's bone followers on.|}}
 
{{note|Bone followers mean that individual parts of Dog's skeleton (specifically, his head and pelvis) have their own physics shadows, i. e. more detailed physics.<br>It improves his collision at the cost of consuming an [[edict]] per follower.<br>Turning them off frees up an edict and makes him less prone to knocking stuff over, which may be desirable during scripted events.}}
 
{{I BaseNPC}}
 
==Outputs==
{{O BaseNPC}}
 
{{IO|OnDogThrow|Fires when Dog throws an object.|}}
 
{{IO|OnDogPickup|Fires when Dog picks up an object.|}}
 
{{IO|OnDogCatch|Fires when Dog catches an object.|}}
 
==See also==
* [[Dog]]

Latest revision as of 14:24, 18 August 2024

Note.pngNote:Archived rest of page history of page npc_dog
Icon-Important.pngImportant:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.