Grenade mortar small: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(DON'T TOUCHED THE {{Notify|}}!!!!!! THIS IS DONE DUE TO TEXT!!!!!!)
Line 1: Line 1:
{{DISPLAYTITLE:grenade_mortar_small / grenade_mortar_large}}
{{CDA|CGrenade_Mortar_Small|CBlackMesaBaseGrenade|CBlackMesaBaseDetonator|CBaseAnimating|CBaseEntity|}}
{{CDA|CGrenade_Mortar_Large|CBlackMesaBaseGrenade|CBlackMesaBaseDetonator|CBaseAnimating|CBaseEntity|}}
{{ent not in fgd|nolink=1|because=it doesn't work properly in [[Steam]] versions of the game if not spawned via {{ent|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}}
{{ent not in fgd|nolink=1|because=it doesn't work properly in [[Steam]] versions of the game if not spawned via {{ent|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}}
[[File:grenade_mortar_image.jpg|500px|right]]
[[File:grenade_mortar_image.jpg|435px|right]]


{{this is a|model entity|name=grenade_mortar_small|game=Black Mesa}} The grenade entity that used by {{ent|env_mortar_launcher}}. This is a mortar shell that was used as an airstrike bomb.
{{this is a|model entity|name=grenade_mortar_small|name1=grenade_mortar_large|game=Black Mesa|notitlechange=1}} Both are grenade entities that used by {{ent|env_mortar_launcher}}. Both are mortar shells that was used as an airstrike bomb. The only difference is between these entities is the [[Particle System|particle effects]] from explosion, they are identical in other stuff.
{{expand|title=Example of the explosion effects for both versions.|
<gallery mode=packed heights=450px>
File:mortarexp_small.jpg| thumb | right | 510px |Explosion effect from {{ent|grenade_mortar_small}}.
File:mortarexp_large.jpg| thumb | right | 510px |Explosion effect from {{ent|grenade_mortar_large}}.
</gallery>
}}


This game also have {{code|grenade_mortar_large}}, the only difference is the [[Particle System|particle effects]] from explosion. Both are using same inputs, outputs and console variables.
{{Notify| mode = inline| img = AltNames.png| size = 10px| type = AltNames| color = 150,150,250| offset = {{{offset|}}}|The {{code|grenade_mortar_small}} entity is also tied to {{code|grenade_mortar}}.}}


Most inputs and outputs are same as [[CBaseAnimating]].
Small version represented by class <code>CGrenade_Mortar_Small</code>.
Large version represented by class <code>CGrenade_Mortar_Large</code>.
{{altnames|name1=grenade_mortar}}
{{bug|hidetested=1|This entity is not functional if created via {{command|ent_create|grenade_mortar_small}} in [[Steam]] versions of the game.}}
{{bug|hidetested=1|This entity is not functional if created via {{command|ent_create|grenade_mortar_small}} in [[Steam]] versions of the game.}}
{{bug|hidetested=1|It bounce of dynamic (not physics) objects, such as {{ent|prop_dynamic}}. Usually happens with objects that have a dynamic collision, or objects that are in motion.
{{bug|hidetested=1|It bounce of dynamic (not physics) objects, such as {{ent|prop_dynamic}}. Usually happens with objects that have a dynamic collision, or objects that are in motion.
Line 24: Line 26:
{{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|It explodes if hits [[skybox]] in the mod version. In Steam versions, it just disappears.}}
{{note|It explodes if hits [[skybox]] in the mod version. In Steam versions, it just disappears.}}
<gallery mode=packed heights=450px>
 
File:mortarexp_small.jpg| thumb | right | 510px |Explosion effect from {{ent|grenade_mortar_small}}.grenademortarbounce.jpg
File:mortarexp_large.jpg| thumb | right | 510px |Explosion effect from {{ent|grenade_mortar_large}}.
</gallery>
==Inputs==
==Inputs==
{{I|OverrideDamage|param=float|Fired by {{ent|env_mortar_launcher}} if not used -1 value. This input overrides damage from the shell.}}
{{I|OverrideDamage|param=float|Fired by {{ent|env_mortar_launcher}} if not used -1 value. This input overrides damage from the shell.}}

Revision as of 05:27, 27 May 2025

C++ Class hierarchy
CGrenade_Mortar_Small
CBlackMesaBaseGrenade
CBlackMesaBaseDetonator
CBaseAnimating
CBaseEntity
C++ Class hierarchy
CGrenade_Mortar_Large
CBlackMesaBaseGrenade
CBlackMesaBaseDetonator
CBaseAnimating
CBaseEntity
Icon-NotInFGD.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 and grenade_mortar_large are model entities available in Black Mesa Black Mesa. Both are grenade entities that used by env_mortar_launcher. Both are mortar shells that was used as an airstrike bomb. The only difference is between these entities is the particle effects from explosion, they are identical in other stuff.

Example of the explosion effects for both versions.
AltNames.pngAltNames:The grenade_mortar_small 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 (mod))
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 <floatRedirectInput/float>
Fired by env_mortar_launcher if not used -1 value. This input overrides damage from the shell.
OverrideDamageRadius <floatRedirectInput/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/Command Parameters or default value Descriptor Effect
sk_grenade_mortar_dmg 15 Float Amount of damage from the shell.
sk_grenade_mortar_range 400 Float Range of explosion from the shell.
sk_grenade_mortar_shakeduration 1.5 Float Duration of camera shake.
sk_grenade_mortar_shakeradius 640 Float Radius in which player will get the shake.
sk_grenade_mortar_gravity 400 Float Speed 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_speed 2000 Float Max possible speed. Doesn't seems to affect anything.
sk_grenade_mortar_track_drag 0.8 Float Doesn't seems to affect anything.
sk_grenade_mortar_track_acceleration 400 Float Doesn't seems to affect anything.

Black Mesa (mod) Black Mesa (mod)

Cvar/Command Parameters or default value Descriptor Effect
sk_grenade_mortar_dmg 15 Float Amount of damage from the shell.
sk_grenade_mortar_range 400 Float Range of explosion from the shell.
sk_grenade_mortar_shakeduration 1.5 Float Duration of camera shake.
sk_grenade_mortar_shakeradius 640 Float Radius in which player will get the shake.

See Also