CASW_Grenade_Vindicator

From Source Entities
Jump to navigation Jump to search

CASW_Grenade_Vindicator is a code class shared by some projectile entities in Alien Swarm.

Classnames:

Asw grenade vindicator.png

ConVars/Commands[edit | edit source]

ConVar/CommandParameters or default valueParameter TypeEffect
asw_vindicator_grenade_friction-1Arbitrary number?Sets friction for the grenade, but no effect observed.
asw_vindicator_grenade_gravity0.8MultiplierScalar for the grenade's weight. 0 does not work, but very small decimals and negative values do.
asw_vindicator_grenade_elasticity1.8Arbitrary number?How much the grenade is able to bounce.
asw_vindicator_grenade_min_detonation_time0.05?To do: Effect description.
asw_vindicator_grenade_mass10?To do: Effect description.
asw_vindicator_grenade_fuse3SecondsHow long grenades take to explode.

FGD Code[edit | edit source]

This FGD code will let you place these asw_grenade_vindicators in a map. Due to their short lifetime, it's logical to spawn them with point_template.

@PointClass base(Targetname, Parentname, Angles) studioprop("models/swarm/grenades/VindicatorGrenadeProjectile.mdl") = asw_grenade_vindicator : "Vindicator shotgun secondary fire grenade. Use with point_template. Can be targeted by an ai_relationship."
[
]