CASW_Parasite

From Source Entities
Jump to navigation Jump to search

CASW_Parasite is a code class shared by parasites and the very similar xenonites.

Classnames:

  • asw_parasite (Parasites - Very dangerous aliens that infest marines and use their bodies to reproduce. Infestation will harm the victim until they've been healed enough for the "infested" portion of their health bar to disappear, which is only doable with a heal beacon or medical gun. A health kit can help, but usually is not enough.)
  • asw_parasite_defanged (Not in FGD) (Xenonites (or harvesites) - Less dangerous aliens, which are created by harvesters. They jump at marines and attack them in a suicidal manner. Xenonites will spontaneously explode after a period of inactivity.)

Tip: Parasites and xenonites will never jump over a gap larger than 170 units.

Parasite.
Xenonite.

FGD Code[edit | edit source]

This code is for xenonites. Parasites are already in the FGD. Due to Hammer limitations, the entity will show the yellow parasite model.

@NPCClass base(BaseNPC) studio("models/aliens/parasite/parasite.mdl") sphere() = asw_parasite_defanged :
	"A Xenonite. They're normally spawned by harvesters."
[
	sleepstate(choices) : "Sleep State" : 1 : "Holds the NPC in stasis until specified condition. See also 'Wake Radius' and 'Wake Squad'." =
	[
		0 : "None"
		1 : "Waiting for threat"
		2 : "Waiting for PVS"
		3 : "Waiting for input"
	]
	visiblewhenasleep(choices) : "Visible when asleep" : 0 : "If true, this alien will still get drawn even when asleep (useful for aliens you see far below you)." =
	[
		0 : "No"
		1 : "Yes"
	]
]

ConVars/Commands[edit | edit source]

ConVar/CommandParameters or default valueParameter TypeEffect
asw_parasite_defanged_damage15Damage amountHow much damage is done by a xenonite attack. The final number will be affected by difficulty setting.
asw_parasite_speedboost1MultiplierScales the movement speed of parasites and xenonites.
asw_infest_angle0DegreesYaw angle adjustment for the infesting animation.
asw_infest_pitch-45DegreesPitch angle adjustment for the infesting animation.
asw_parasite_inside00 disables, 1 enablesNo effect.

Flags[edit | edit source]

  • 131072: Use Ground Checks - Do not use. This is unintentionally in the FGD entry for asw_parasite because the entry was copied from npc_antlion.

Keyvalues[edit | edit source]

Alert Radius (radius) <integer>
Do not use, for the same reasons as the Use Ground Checks flag.
Distance until eluded (eludedist) <integer>
Do not use, for the same reasons as the Use Ground Checks flag.

Outputs[edit | edit source]

OnReachedFightGoal
Unusable. Part of a cut concept it seems.

See Also[edit | edit source]