Apc missile: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(forgot about BaseAnimating!)
m (Classifying as model entity)
 
(12 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{lang|Apc missile}}
{{LanguageBar}}
{{ent not in fgd|nolink=1}}
{{ent not in fgd|nolink=1}}
{{distinguish|rpg_missile}} ''(Which comes from the rocket launcher.)''
{{this is a|model entity|game=Half-Life 2 series|name=apc_missile}}
{{hl2 point|apc_missile}} These are the missiles shot by {{ent|prop_vehicle_apc}}s. It's advised to not attempt to spawn these directly, as they will not home towards a target on their own (they may try in some cases, but the results are buggy and inconsistent). The entity can still have some things done to it with methods such as {{ent|AddOutput}}.
{{CD|CAPCMissile|file1=weapon_rpg.cpp}}
This is a specialized version of {{ent|rpg_missile}} shot by {{ent|prop_vehicle_apc}} and {{ent|func_tankapcrocket}}. It's advised to not attempt to spawn these directly, as they will not home towards a target on their own (they may try in some cases, but the results are buggy and inconsistent). The entity can still have some things done to it such as setting a relationship.


{{code class|CAPCMissile|weapon_rpg.cpp}}
{{stray ent|{{portal}}}}


==ConVars/Commands==
==ConVars/Commands==
Line 11: Line 12:
{{varcom|end}}
{{varcom|end}}


==Keyvalues==
[[Category:Half-Life 2 Weapons]]
{{KV BaseCombatCharacter}}
{{KV BaseAnimating|base=1}}
{{KV BaseEntity|base=1}}
 
==Inputs==
{{I BaseCombatCharacter}}
{{I BaseAnimating}}
{{I BaseEntity|base=1}}
 
==Outputs==
{{O BaseAnimating}}
{{O BaseEntity}}

Latest revision as of 04:30, 19 May 2025

English (en)Translate (Translate)
Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map.

apc_missile is a model entity available in Half-Life 2 series Half-Life 2 series.

C++ Class hierarchy
CAPCMissile
CMissile
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity
C++ weapon_rpg.cpp

This is a specialized version of rpg_missile shot by prop_vehicle_apc and func_tankapcrocket. It's advised to not attempt to spawn these directly, as they will not home towards a target on their own (they may try in some cases, but the results are buggy and inconsistent). The entity can still have some things done to it such as setting a relationship.

Note.pngNote:This entity is also in the code for Portal. Its functionality is not guaranteed.


ConVars/Commands

Cvar/Command Parameters or default value Descriptor Effect
sk_apc_missile_damage 15 Health amount Damage done by a rocket.
  • Easy: 7.5
  • Normal: 15
  • Hard: 37.5