CASW_Grenade_Vindicator
Jump to navigation
Jump to search
Code classes:
CASW_Grenade_Vindicator
is a code class shared by some projectile entities in Alien Swarm.
Classnames:
asw_grenade_vindicator
(shot by the vindicator shotgun)
ConVars/Commands[edit | edit source]
ConVar/Command | Parameters or default value | Parameter Type | Effect |
---|---|---|---|
asw_vindicator_grenade_friction | -1 | Arbitrary number? | Sets friction for the grenade, but no effect observed. |
asw_vindicator_grenade_gravity | 0.8 | Multiplier | Scalar for the grenade's weight. 0 does not work, but very small decimals and negative values do. |
asw_vindicator_grenade_elasticity | 1.8 | Arbitrary number? | How much the grenade is able to bounce. |
asw_vindicator_grenade_min_detonation_time | 0.05 | ? | To do: Effect description. |
asw_vindicator_grenade_mass | 10 | ? | To do: Effect description. |
asw_vindicator_grenade_fuse | 3 | Seconds | How long grenades take to explode. |
FGD Code[edit | edit source]
This FGD code will let you place these asw_grenade_vindicator
s 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."
[
]