CASW_Grenade_Cluster

From Source Entities
Jump to navigation Jump to search

CASW_Grenade_Cluster is a code class that shouldn't have anything inheriting it except for actual cluster grenades, but it does because the ASW devs didn't know how to program. It's a grenade-type class that explodes.

Classnames:

  • asw_grenade_cluster (A deployed hand grenade. This is the same entity spawned in the first and second wave of explosives. These grenades will also explode instantly if they come into contact with aliens. These grenades are also spawned by the grenade launcher, but those ones will always explode on impact with anything.)

Asw grenade cluster.png

ConVars/Commands[edit | edit source]

ConVar/CommandParameters or default valueParameter TypeEffect
asw_cluster_grenade_min_detonation_time0.9SecondsNo effect observed.
asw_cluster_grenade_fuse4SecondsFuse time of the first cluster grenade.
asw_cluster_grenade_radius_check_interval0.5SecondsHow often grenades check for aliens to explode on.
asw_cluster_grenade_radius_check_scale0.6PercentWhat inner portion of the grenade's damage radius to use for checking aliens. By default, the damage radius is 220 world units but this can change by difficulty level and the origin/firer of the grenade.
asw_cluster_grenade_child_fuse_min0.5SecondsMinimum fuse time for secondary grenades.
asw_cluster_grenade_child_fuse_max0.5SecondsMaximum fuse time for secondary grenades.

FGD Code[edit | edit source]

This FGD code will let you place asw_grenade_clusters 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/HandGrenadeProjectile.mdl") = asw_grenade_cluster : "Deployed Hand Grenade. Use with point_template. Can be targeted by an ai_relationship."
[
]