Smoker: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-smoker)
 
(-actions)
Line 4: Line 4:
{{tip|To spawn smoker 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 smoker 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 smoker using SpawnEntityFromTable script function or by placing him directly in a map will crash the game}}
{{warning|Trying to spawn smoker using SpawnEntityFromTable script function or by placing him directly in a map will crash the game}}
{{note|Spawned smoker's classname is <code>player</code>}}
{{important|Spawned smoker's classname is <code>player</code>}}
{{clr}}
{{clr}}


Line 15: Line 15:
smoker_tongue_delay                      : 1.5      : , "sv", "cheat"  :  
smoker_tongue_delay                      : 1.5      : , "sv", "cheat"  :  
</source>
</source>
== Actions ==
* SmokerAssault
* SmokerAttack
* SmokerBehavior
* SmokerMoveToAttackPosition
* SmokerRetreatToCover
* SmokerTongueVictim


== See Also ==
== See Also ==
* [[NextBot]]
* [[weapon_smoker_claw]]
* [[weapon_smoker_claw]]
* [[ability_tongue]]
* [[ability_tongue]]

Revision as of 06:39, 3 August 2023

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

Template:Entity By default director tries to spawn him in above survivors (SPAWN_ABOVE_SURVIVORS spawn set). Smoker spawns with weapon_smoker_claw which is his melee ability and ability_tongue which controls his special ability.

Tip.pngTip:To spawn smoker manually commentary_zombie_spawner, info_zombie_spawn or ZSpawn script function can be used.
Warning.pngWarning:Trying to spawn smoker using SpawnEntityFromTable script function or by placing him directly in a map will crash the game
Icon-Important.pngImportant:Spawned smoker's classname is player

ConVars

z_gas_health                             : 250      : , "sv", "cheat"  : Gas Zombie max health
z_gas_speed                              : 210      : , "cheat", "rep", "cl" : 
Smoker_escape_range                      : 750      : , "sv", "cheat"  : 
smoker_pz_claw_dmg                       : 4        : , "cheat", "rep", "cl" : Amount of damage done by a PZ smoker's regular melee attack
smoker_tongue_delay                      : 1.5      : , "sv", "cheat"  :

Actions

  • SmokerAssault
  • SmokerAttack
  • SmokerBehavior
  • SmokerMoveToAttackPosition
  • SmokerRetreatToCover
  • SmokerTongueVictim

See Also