Cockroaches scurry around in the dark, looking for things to eat. They are easily scared. Stepping on them will kill them. A useful entity to make a place feel more... alive.
Half-Life cockroach
Attributes
- Name (targetname) - Property used to identify entities.
- Pitch Yaw Roll (Y Z X) (angles) - Sets the pitch (up / down), yaw (left / right) and roll (bank) respectively. The compass in WorldCraft / Hammer / J.A.C.K. corresponds to Yaw. Monsters will spawn facing this direction.
- Patrol Path or Target (target) - Name of a
path_corner
that the monster entity would start patrolling. Not used by cockroaches.
- Render FX (renderfx) - Gives objects special render effects. Think of it as modifying whatever the Render Mode puts out. The options are as follows:
- 0 = Normal
- 1 = Slow Pulse
- 2 = Fast Pulse
- 3 = Slow Wide Pulse
- 4 = Fast Wide Pulse
- 5 = Slow Fade Away
- 6 = Fast Fade Away
- 7 = Slow Become Solid
- 8 = Fast Become Solid
- 9 = Slow Strobe
- 10 = Fast Strobe
- 11 = Faster Strobe
- 12 = Slow Flicker
- 13 = Fast Flicker
- 14 = Constant Glow
- 15 = Distort
- 16 = Hologram (Distort and Fade)
- Render Mode (rendermode) - Controls the type of rendering that is used for an object. Options are:
- 0 = Normal
- 1 = Color
- 2 = Texture
- 3 = Glow
- 4 = Solid
- 5 = Additive
- FX Amount (0 - 255) (renderamt)
- FX Color (R G B) (rendercolor)
- Trigger Target (TriggerTarget) - The event to trigger when the Trigger Condition is met. Used by monsters. Not used by cockroaches.
- Trigger Condition (TriggerCondition) - This controls the condition under which a monster will trigger its Trigger Target. The options are:
- 0 = No Trigger
- 1 = See Player, Mad at Player
- 2 = Take Damage
- 3 = 50% Health Remaining
- 4 = Death
- 7 = Hear World
- 8 = Hear Player
- 9 = Hear Combat
- 10 = See Player Unconditional
- 11 = See Player, Not In Combat
- Animation Sequence (editor) (sequence)
Flags
None of these seem to work for this monster.
- WaitTillSeen (1) - Stands in place until seen by a player.
- Gag (2) - Makes no idle sounds.
- MonsterClip (4) - Makes
func_monsterclip
solid/impassable to this monster.
- Prisoner (16) - Won't attack, or be attacked by, other monsters.
- WaitForScript (128) - Does nothing, not implemented.
- Pre-Disaster (256) - For some NPCs, switch to pre-disaster dialogues and behaviour (busy and won't follow players).
- Fade Corpse (512)
Notes
- The FGD size could be 6x6x3, but in code it's 2x2x2. Probably done to ease selection in the editor.
- It is usual (and easier) to use
monstermaker
to spawn cockroaches rather than placing cockroaches into the level one by one. Place it in nooks and crannies to sell the effect of roaches infesting them.