grenade_spit

From Valve Developer Community
Jump to navigation Jump to search
edit
Info.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 point 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. Other inputs and outputs are same as CBaseAnimating.

Represented by class CGrenade_Spit.

Note.pngNote:It have collision for weapon bullets and the models are using concrete surface property for some reason.
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.


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 ?

Inputs

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

Outputs

OnDetonate <void> (only in Black Mesa)
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 Black Mesa (the mod version)

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