grenade_mortar_small

From Valve Developer Community
(Redirected from Grenade mortar)
Jump to navigation Jump to search
Info.png
This entity is not in the FGD by default.
It should not be put directly in a map because it doesn't work properly in Steam versions of the game if not spawned via env_mortar_launcher. It's possible to use it without the entity in mod version of the game, but still easier to launch it with the entity.
Grenade mortar image.jpg

grenade_mortar_small is a point entity available in Black Mesa Black Mesa. The grenade entity that used by env_mortar_launcher. This is a mortar shell that was used as an airstrike bomb.

This game also have grenade_mortar_large, the only difference is the particle effects from explosion. Both are using same inputs, outputs and console variables.

Most inputs and outputs are same as CBaseAnimating.

Small version represented by class CGrenade_Mortar_Small.

Large version represented by class CGrenade_Mortar_Large.

AltNames.pngAltNames: This entity is also tied to grenade_mortar.
Icon-Bug.pngBug:This entity is not functional if created via ent_create grenade_mortar_small in Steam versions of the game.
Icon-Bug.pngBug:It bounce of dynamic (not physics) objects, such as prop_dynamic. Usually happens with objects that have a dynamic collision, or objects that are in motion.
Example.


(not in Black Mesa)
Note.pngNote:Used model from MP5's grenade model for some reason.
Note.pngNote:It explodes if hits skybox in the mod version. In Steam versions, it just disappears.

Inputs

OverrideDamage <float>
Fired by env_mortar_launcher if not used -1 value. This input overrides damage from the shell.
OverrideDamageRadius <float>
Fired by env_mortar_launcher if not used -1 value. This input overrides damage radius from the shell.

Dedicated ConVars

Black Mesa Black Mesa: Definitive Edition

Cvar/CommandParameters or default valueDescriptorEffect
sk_grenade_mortar_dmg15FloatAmount of damage from the shell.
sk_grenade_mortar_range400FloatRange of explosion from the shell.
sk_grenade_mortar_shakeduration1.5FloatDuration of camera shake.
sk_grenade_mortar_shakeradius640FloatRadius in which player will get the shake.
sk_grenade_mortar_gravity400FloatSpeed of the shell.
Icon-Bug.pngBug:Starting from 875, your shells can disappear. Max value depends on Path Start property from env_mortar_launcher.
sk_grenade_mortar_max_speed2000FloatMax possible speed. Doesn't seems to affect anything.
sk_grenade_mortar_track_drag0.8FloatDoesn't seems to affect anything.
sk_grenade_mortar_track_acceleration400FloatDoesn't seems to affect anything.

Black Mesa Black Mesa (the mod version)

Cvar/CommandParameters or default valueDescriptorEffect
sk_grenade_mortar_dmg15FloatAmount of damage from the shell.
sk_grenade_mortar_range400FloatRange of explosion from the shell.
sk_grenade_mortar_shakeduration1.5FloatDuration of camera shake.
sk_grenade_mortar_shakeradius640FloatRadius in which player will get the shake.

See Also