Ai goal throw prop: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{obsolete|entity=1|}} {{this is a|point entity|name=ai_goal_throw_prop|sprite=ai_goal_standoff.png|game=Black Mesa}} Initially, this entity should disable/enable prop throwin...")
 
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{obsolete|entity=1|}}
{{CDA|CAI_Goal_Throw_Prop|CAI_GoalEntity|CBaseEntity|}}  
{{this is a|point entity|name=ai_goal_throw_prop|sprite=ai_goal_standoff.png|game=Black Mesa}} Initially, this entity should disable/enable prop throwing for {{ent|npc_alien_controller}}. However, this entity doesn't work in any public version of the game (the mod version as well). Besides this, you can control the throwing mechanic via inputs and outputs from {{ent|npc_xontroller}} and {{ent|npc_alien_controller}}. Used once in <code>bm_c3a2i</code> and does nothing.
{{this is a|point entity|name=ai_goal_throw_prop|sprite=ai_goal_standoff.png|game=Black Mesa}} This entity forces {{ent|npc_alien_controller}} to throw specified [[Prop physics|physics prop]] when activated. For {{ent|npc_xontroller}}, it can be done by using input. This entity used once in <code>bm_c3a2i</code> for nothing.
{{back | Black Mesa Level Creation}}


==Keyvalues==
 
{{KV Targetname}}
 
 
== Keyvalues ==
{{KV|Actor(s) to affect|intn=actor|target_name_or_class|Entity name or [[classname]] (works only with {{ent|npc_alien_controller}}) to affect.}}
{{KV|Actor(s) to affect|intn=actor|target_name_or_class|Entity name or [[classname]] (works only with {{ent|npc_alien_controller}}) to affect.}}
{{KV|Search Type|intn=searchtype|choices|How to search for the entities using the targetname.
{{KV|Search Type|intn=searchtype|choices|How to search for the entities using the targetname.
Line 16: Line 17:
{{KV|Physics Prop Name|intn=propname|string|Name of the physics prop to throw.}}
{{KV|Physics Prop Name|intn=propname|string|Name of the physics prop to throw.}}


==Inputs==  
== Inputs ==  
{{IO|Activate|param=void|Begin contesting position.}}
{{I|Activate|param=void|Start throwing the prop.}}
{{IO|Deactivate|param=void|Cease contesting position.}}
{{I|UpdateActors|param=void|Update actors.|nofgd=1}}
{{I BaseEntity}}
{{I|Deactivate|param=void|Stop throwing the prop.}}
 
== Outputs ==
{{O BaseEntity|}}

Latest revision as of 12:32, 26 May 2025

C++ Class hierarchy
CAI_Goal_Throw_Prop
CAI_GoalEntity
CBaseEntity
Ai goal standoff.png

ai_goal_throw_prop is a point entity available in Black Mesa Black Mesa. This entity forces npc_alien_controller to throw specified physics prop when activated. For npc_xontroller, it can be done by using input. This entity used once in bm_c3a2i for nothing.



Keyvalues

Actor(s) to affect (actor) <target_name_or_class>
Entity name or classname (works only with npc_alien_controller) to affect.
Search Type (searchtype) <choices>
How to search for the entities using the targetname.
  • 0: Entity Name
  • 1: Classname
Start Active (startactive) <choices>
How to search for the entities using the targetname.
  • 0: No
  • 1: Yes
Physics Prop Name (propname) <string>
Name of the physics prop to throw.

Inputs

Activate <void>
Start throwing the prop.
UpdateActors <void> !FGD
Update actors.
Deactivate <void>
Stop throwing the prop.