Spitter: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Classifying as model entity)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{TabsBar|main=L4DZombies}}
{{Ent not in fgd|nolink=1}}
{{Ent not in fgd|nolink=1}}
{{CD|Spitter|CTerrorPlayer}}
{{CD|Spitter|CTerrorPlayer}}
{{this is a|point entity|name=spitter|game=Left 4 Dead 2}} By default director tries to spawn her in front of survivors (SPAWN_SPECIALS_IN_FRONT_OF_SURVIVORS spawn set). Spitter spawns with her melee ability [[weapon_spitter_claw]] and [[ability_spit]] which controls her special ability. Her special ability creates [[spitter_projectile]] when used.
{{this is a|model entity|name=spitter|game=Left 4 Dead 2}} By default director tries to spawn her in front of survivors (SPAWN_SPECIALS_IN_FRONT_OF_SURVIVORS spawn set). Spitter spawns with her melee ability [[weapon_spitter_claw]] and [[ability_spit]] which controls her special ability. Her special ability creates [[spitter_projectile]] when used.
{{tip|To spawn spitter manually {{ent|commentary_zombie_spawner}}, {{ent|info_zombie_spawn}} or [[Left 4 Dead 2/Script Functions/ZSpawn|ZSpawn]] script function can be used.}}
{{tip|To spawn spitter manually {{ent|commentary_zombie_spawner}}, {{ent|info_zombie_spawn}} or [[Left 4 Dead 2/Script Functions/ZSpawn|ZSpawn]] script function can be used.}}
{{warning|Trying to spawn spitter using SpawnEntityFromTable script function or by placing her directly in a map will crash the game}}
{{warning|Trying to spawn spitter using SpawnEntityFromTable script function or by placing her directly in a map will crash the game}}
{{important|Spawned spitter's classname is <code>player</code>}}
{{important|Spitter's classname is changed to <code>player</code> upon spawning}}
{{OtherKIO|altlink={{ent|player|game=Left 4 Dead series}}|2=All}}
{{clr}}
{{clr}}
[[File:Spitter.png|thumb]]
[[File:Spitter.png|thumb]]
Line 28: Line 30:
* [[weapon_spitter_claw]]
* [[weapon_spitter_claw]]
* [[ability_spit]]
* [[ability_spit]]
* [[Player/Left 4 Dead series|player]]
* [[hunter]]
* [[smoker]]
* [[boomer]]
* [[charger]]
* [[jockey]]

Latest revision as of 04:34, 19 May 2025

edit
Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map.
C++ Class hierarchy
Spitter
BossZombiePlayerBot
NextBotPlayer
CTerrorPlayer
CCSPlayer
CBaseMultiplayerPlayer
CBasePlayer
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity

spitter is a model entity available in Left 4 Dead 2 Left 4 Dead 2. By default director tries to spawn her in front of survivors (SPAWN_SPECIALS_IN_FRONT_OF_SURVIVORS spawn set). Spitter spawns with her melee ability weapon_spitter_claw and ability_spit which controls her special ability. Her special ability creates spitter_projectile when used.

Tip.pngTip:To spawn spitter manually commentary_zombie_spawner, info_zombie_spawn or ZSpawn script function can be used.
Warning.pngWarning:Trying to spawn spitter using SpawnEntityFromTable script function or by placing her directly in a map will crash the game
Icon-Important.pngImportant:Spitter's classname is changed to player upon spawning
Note.pngNote:All Keyvalues / Inputs / Outputs are same as player.
Spitter.png

ConVars

Cvar/Command Parameters or default value Descriptor Effect
spitter_pz_claw_dmg 4 Amount of damage done by a PZ spitter's regular melee attack
z_spitter_health 100 Spitter zombie max health
z_spitter_high_chance 10
z_spitter_limit 1
z_spitter_max_wait_time 30
z_spitter_range 850

Actions

  • SpitterAssault
  • SpitterAttack
  • SpitterBehavior
  • SpitterPrepareAmbush
  • SpitterWaitInAmbush

See also