Grenade spit (Black Mesa): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{TabsBar|main=Grenade spit}}
{{TabsBar|main=Grenade spit}}
{{CDA|CGrenade_Spit|CBlackMesaBaseGrenade|CBlackMesaBaseDetonator|CBaseAnimating|CBaseEntity|}}
{{ent not in fgd|nolink=1|because=it can only be configured through code in [[Steam]] versions of the game. In the mod version, it is invisible if spawned like this}}
{{ent not in fgd|nolink=1|because=it can only be configured through code in [[Steam]] versions of the game. In the mod version, it is invisible if spawned like this}}
[[File:grenade_spit_large.png|200px|right]]
[[File:grenade_spit_large.png|200px|right]]
[[File:grenade_spit_small.png|200px|right]]
[[File:grenade_spit_small.png|200px|right]]
{{this is a|point entity|name=grenade_spit|game=Black Mesa}} The grenade entity that is used by {{ent|npc_bullsquid}} and {{ent|npc_gonarch}}. This is green glowing corrosive acid spit that used by some [[xen]] creatures to attack from distance. The spit is sprayed along a radius after reaching a surface or target. This entity are using 2 models, large and small. [[Steam]] versions use console variables to configure this entity, the mod version provides exclusive inputs and outputs that are cut in Steam versions of the game. Other inputs and outputs are same as [[CBaseAnimating]].
{{this is a|model entity|name=grenade_spit|game=Black Mesa}} The grenade entity that is used by {{ent|npc_bullsquid}} and {{ent|npc_gonarch}}. This is green glowing corrosive acid spit that used by some [[xen]] creatures to attack from distance. The spit is sprayed along a radius after reaching a surface or target. This entity are using 2 models, large and small. [[Steam]] versions use console variables to configure this entity, the mod version provides exclusive inputs and outputs that are cut in Steam versions of the game.
 
Represented by class <code>CGrenade_Spit</code>.


{{note|It have collision for weapon bullets and the models are using concrete surface property for some reason.}}
{{note|It have collision for weapon bullets and the models are using concrete surface property for some reason.}}
{{bug|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.
{{note|It explodes if hits [[skybox]] in the mod version. In Steam versions, it just disappears.}}
{{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 {{not|{{bms12}}}}.
{{expand|title=Example.|
{{expand|title=Example.|
<br>
<br>
Line 15: Line 15:
</gallery>
</gallery>
}}
}}
|hidetested=1}}
}}
{{bug|hidetested=1|Doesn't work properly with {{ent|func_water_analog}} in Steam versions of the game. Instead of ignoring the surface of this entity, it will float in and then stop moving after few seconds. You can find this on ''bm_c4a3c''.}}
{{bug|hidetested=1|Doesn't work properly with {{ent|func_water_analog}} in Steam versions of the game. Instead of ignoring the surface of this entity, it will float in and then stop moving after few seconds. You can find this on ''bm_c4a3c''.}}
{{bug|hidetested=1|Decals from this acid are glitchy on models. {{confirm|Can be fixed ?}}}}
{{bug|hidetested=1|Decals from this acid are glitchy on models. {{confirm|Can be fixed ?}}}}
{{bug|hidetested=1|Decals from this acid doesn't save on corpus created by [[NPC]] (client side ragdolls only.}}
{{bug|hidetested=1|Decals from this acid doesn't save on corpus created by [[NPC]] (client side ragdolls only).}}


==Inputs==
==Inputs==
Line 41: Line 41:
{{varcom|end}}
{{varcom|end}}


{{bms12|4}} (the mod version)
{{bms12|4}}
{{varcom|start}}
{{varcom|start}}
{{varcom|sk_bullsquid_spit_speed|792|Float|Speed value, also affects bullsquid's range.
{{varcom|sk_bullsquid_spit_speed|792|Float|Speed value, also affects bullsquid's range.

Latest revision as of 05:40, 27 May 2025

Source Engine ( General | Half-Life: Source | Black Mesa )
edit
C++ Class hierarchy
CGrenade_Spit
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 can only be configured through code in Steam versions of the game. In the mod version, it is invisible if spawned like this.
Grenade spit large.png
Grenade spit small.png

grenade_spit is a model entity available in Black Mesa Black Mesa. The grenade entity that is used by npc_bullsquid and npc_gonarch. This is green glowing corrosive acid spit that used by some xen creatures to attack from distance. The spit is sprayed along a radius after reaching a surface or target. This entity are using 2 models, large and small. Steam versions use console variables to configure this entity, the mod version provides exclusive inputs and outputs that are cut in Steam versions of the game.

Note.pngNote:It have collision for weapon bullets and the models are using concrete surface property for some reason.
Note.pngNote:It explodes if hits skybox in the mod version. In Steam versions, it just disappears.
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 (not in Black Mesa (mod)).
Example.


Icon-Bug.pngBug:Doesn't work properly with func_water_analog in Steam versions of the game. Instead of ignoring the surface of this entity, it will float in and then stop moving after few seconds. You can find this on bm_c4a3c.
Icon-Bug.pngBug:Decals from this acid are glitchy on models.
Confirm:Can be fixed ?
Icon-Bug.pngBug:Decals from this acid doesn't save on corpus created by NPC (client side ragdolls only).

Inputs

SetTimer <floatRedirectInput/float> (only in Black Mesa (mod))
Sets amount of time before detonate.
Detonate <void> (only in Black Mesa (mod))
Detonates spit.
SetThrower <void> (only in Black Mesa (mod))
Fired by this entity when throwed. Doesn't do anything.

Outputs

OnDetonate <void> (only in Black Mesa (mod))
Fired by this entity when detonated.

Dedicated ConVars

Note.pngNote:ConVars that affects certain NPCs are not listed here.

Black Mesa Black Mesa

Cvar/Command Parameters or default value Descriptor Effect
sk_detenator_spit_airspeed 1000 Float Doesn't seem to affect anything.
sk_detenator_spit_gravity 400 Float Gravity scale, also affects flight altitude.
Icon-Bug.pngBug:May not appear with large values.
sk_detenator_spit_plr_dmg 4 Float Amount of damage from spit.
sk_detenator_spit_plr_dmg_radius 96 Float Damage radius from spit.

Black Mesa (mod) Black Mesa (mod)

Cvar/Command Parameters or default value Descriptor Effect
sk_bullsquid_spit_speed 792 Float Speed value, also affects bullsquid's range.
Icon-Bug.pngBug:May not appear with large values.
sk_bullsquid_spit_dmg 4 Float Amount of damage from spit.
sk_bullsquid_spit_radius 96 Float Damage radius from spit.

See Also