Grenade tank shell: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Classifying as model entity)
m (Setting bug notice hidetested=1 param on page where the bug might not need tested in param specified)
Line 5: Line 5:
Represented by class <code>CGrenade_TankShell</code>.
Represented by class <code>CGrenade_TankShell</code>.
{{important|In {{bms12|4}}, this grenade type represented by {{ent|grenade_abrams_shell}} entity. See the page for information about this version of the grenade.}}
{{important|In {{bms12|4}}, this grenade type represented by {{ent|grenade_abrams_shell}} entity. See the page for information about this version of the grenade.}}
{{bug|This grenade entity can stuck at dynamic (not physics) objects, such as {{ent|prop_dynamic}}. In such situation, shell will not move until it explodes. Usually happens with objects that have a dynamic collision, or objects that are in motion.
{{bug|hidetested=1|This grenade entity can stuck at dynamic (not physics) objects, such as {{ent|prop_dynamic}}. In such situation, shell will not move until it explodes. Usually happens with objects that have a dynamic collision, or objects that are in motion.
{{tip|If you need to fix this issue, use {{ent|trigger_weaponfire}} that will kill stucked rockets, this trigger should be toggled by {{ent|logic_timer}} every 0.5-1.0 seconds.}}
{{tip|If you need to fix this issue, use {{ent|trigger_weaponfire}} that will kill stucked rockets, this trigger should be toggled by {{ent|logic_timer}} every 0.5-1.0 seconds.}}
{{expand|title=Example.|
{{expand|title=Example.|
Line 13: Line 13:
</gallery>
</gallery>
}}
}}
|hidetested=1}}
}}
{{note|Used model from [[weapon_mp5|MP5]]'s [[Grenade mp5 contact|grenade]] model for some reason.}}
{{note|Used model from [[weapon_mp5|MP5]]'s [[Grenade mp5 contact|grenade]] model for some reason.}}
{{note|For some reason it's spinning.}}
{{note|For some reason it's spinning.}}

Revision as of 07:23, 20 May 2025

Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map because it can only be configured through code.
Grenade tank shell.jpg

grenade_tank_shell is a model entity available in Black Mesa Black Mesa. The grenade entity that used by npc_abrams. This is a projectile fired from the barrel of an Abrams tank. All inputs and outputs are same as CBaseAnimating.

Represented by class CGrenade_TankShell.

Icon-Important.pngImportant:In Black Mesa (mod) Black Mesa (mod), this grenade type represented by grenade_abrams_shell entity. See the page for information about this version of the grenade.
Icon-Bug.pngBug:This grenade entity can stuck at dynamic (not physics) objects, such as prop_dynamic. In such situation, shell will not move until it explodes. Usually happens with objects that have a dynamic collision, or objects that are in motion.
Tip.pngTip:If you need to fix this issue, use trigger_weaponfire that will kill stucked rockets, this trigger should be toggled by logic_timer every 0.5-1.0 seconds.
Example.


Note.pngNote:Used model from MP5's grenade model for some reason.
Note.pngNote:For some reason it's spinning.
Note.pngNote:It disappears if hits skybox.

Dedicated ConVars

Cvar/Command Parameters or default value Descriptor Effect
sk_detenator_tank_shell_dmg 40 Float Amount of damage from this entity.
sk_detenator_tank_shell_radius 256 Float Radius of explosion from this entity.
sk_abrams_shell_speed 2000 Float Speed of this entity.