Apc missile: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{ent not in fgd}} {{distinguish|rpg_missile}} ''(Which comes from the rocket launcher.)'' {{hl2 point|apc_missile}} These are the missiles shot by {{ent|prop_vehicle_apc}}s....")
 
m (Classifying as model entity)
 
(15 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{ent not in fgd}}
{{LanguageBar}}
{{distinguish|rpg_missile}} ''(Which comes from the rocket launcher.)''
{{ent not in fgd|nolink=1}}
{{hl2 point|apc_missile}} These are the missiles shot by {{ent|prop_vehicle_apc}}s. It's advised to not attempt to use this directly, as they will not home towards a target on their own (they may try in some cases, but the results are buggy).
{{this is a|model entity|game=Half-Life 2 series|name=apc_missile}}
{{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==
{{varcom|start}}
{{varcom|sk_apc_missile_damage|15|Health amount|Damage done by a rocket. {{skill|7.5|15|37.5}}}}
{{varcom|end}}
 
[[Category:Half-Life 2 Weapons]]

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