Ai goal throw prop: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by the same user 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.
 
 


Represented by class <code>CAI_Goal_Throw_Prop</code>.
{{back | Black Mesa Level Creation}}


== Keyvalues ==
== Keyvalues ==
{{KV Targetname}}
{{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.

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.