CInfoZombieSpawn: Difference between revisions
(Created page with "{{stub}} {{CD|CInfoZombieSpawn}} {{Linked entities|info_zombie_spawn}} == Keyvalues == === KeyValue method === No special treatment. Uses CPointEntity#KeyValue method === Keyfields === {{DEFINE_KEYFIELD|m_szPopulation|FIELD_STRING|population|Zombie population to choose among.}} {{DEFINE_KEYFIELD|m_bOfferTank|FIELD_BOOLEAN|offer_tank|game={{l4d2|only}}}} {{DEFINE_KEYFIELD|m_bAttackOnSpawn |FIELD_BOOLEAN|AttackOnSpawn|Whether this zombie should always attack on spaw...") |
m (Minor tweaks) |
||
Line 6: | Line 6: | ||
== Keyvalues == | == Keyvalues == | ||
=== KeyValue method === | === KeyValue method === | ||
No special treatment. Uses [[CPointEntity#KeyValue method]] | No special treatment. Uses the [[CPointEntity#KeyValue method]]. | ||
=== Keyfields === | === Keyfields === | ||
Line 19: | Line 19: | ||
{{DEFINE_INPUTFUNC|FIELD_VOID|SpawnZombie|SpawnZombie|Spawn a zombie now.}} | {{DEFINE_INPUTFUNC|FIELD_VOID|SpawnZombie|SpawnZombie|Spawn a zombie now.}} | ||
{{DEFINE_INPUTFUNC|FIELD_VOID|StartleZombie|StartleZombie|Startle the zombie (witches only).|game={{l4d2|only}}}} | {{DEFINE_INPUTFUNC|FIELD_VOID|StartleZombie|StartleZombie|Startle the zombie (witches only).|game={{l4d2|only}}}} | ||
== Outputs == | == Outputs == |
Latest revision as of 18:38, 12 April 2025
![]() |
---|
CInfoZombieSpawn |
Entities linked to this class
Keyvalues
KeyValue method
No special treatment. Uses the CPointEntity#KeyValue method.
Keyfields
m_szPopulation <FIELD_STRING> (population)
- Zombie population to choose among.
m_bOfferTank (only in )<FIELD_BOOLEAN>
(offer_tank)
m_bAttackOnSpawn (only in )<FIELD_BOOLEAN>
(AttackOnSpawn)
- Whether this zombie should always attack on spawn. Note that this only affects Tanks and Witches at this time, all others always attack on spawn.
Inputs
Input functions
SpawnZombie <FIELD_VOID> linked function: SpawnZombie
- Spawn a zombie now.
StartleZombie (only in )<FIELD_VOID> linked function: StartleZombie
- Startle the zombie (witches only).
Outputs
m_OnSpawn[ZOMBIE_NORMAL] <COutputEvent> (OnSpawnNormal)
m_OnSpawn[ZOMBIE_SMOKER] <COutputEvent> (OnSpawnSmoker)
m_OnSpawn[ZOMBIE_BOOMER] <COutputEvent> (OnSpawnBoomer)
m_OnSpawn[ZOMBIE_HUNTER] <COutputEvent> (OnSpawnHunter)
m_OnSpawn[ZOMBIE_SPITTER] <COutputEvent> (OnSpawnSpitter)
m_OnSpawn[ZOMBIE_JOCKEY] <COutputEvent> (OnSpawnJockey)
m_OnSpawn[ZOMBIE_CHARGER] <COutputEvent> (OnSpawnCharger)
m_OnSpawn[ZOMBIE_WITCH] <COutputEvent> (OnSpawnWitch)
m_OnSpawn[ZOMBIE_TANK] <COutputEvent> (OnSpawnTank)
Raw dumps
- m_szPopulation (Offset 872) (Save|Key)(4 Bytes) - population - m_bAttackOnSpawn (Offset 876) (Save|Key)(1 Bytes) - AttackOnSpawn - SpawnZombie (Offset 0) (Input)(0 Bytes) - SpawnZombie - m_OnSpawn[ZOMBIE_NORMAL] (Offset 880) (Save|Key|Output)(0 Bytes) - OnSpawnNormal - m_OnSpawn[ZOMBIE_SMOKER] (Offset 904) (Save|Key|Output)(0 Bytes) - OnSpawnSmoker - m_OnSpawn[ZOMBIE_BOOMER] (Offset 928) (Save|Key|Output)(0 Bytes) - OnSpawnBoomer - m_OnSpawn[ZOMBIE_HUNTER] (Offset 952) (Save|Key|Output)(0 Bytes) - OnSpawnHunter - m_OnSpawn[ZOMBIE_WITCH] (Offset 976) (Save|Key|Output)(0 Bytes) - OnSpawnWitch - m_OnSpawn[ZOMBIE_TANK] (Offset 1000) (Save|Key|Output)(0 Bytes) - OnSpawnTank
- m_szPopulation (Offset 1068) (Save|Key)(4 Bytes) - population - m_bOfferTank (Offset 1072) (Save|Key)(1 Bytes) - offer_tank - SpawnZombie (Offset 0) (Input)(0 Bytes) - SpawnZombie - StartleZombie (Offset 0) (Input)(0 Bytes) - StartleZombie - m_OnSpawn[ZOMBIE_NORMAL] (Offset 1080) (Save|Key|Output)(0 Bytes) - OnSpawnNormal - m_OnSpawn[ZOMBIE_SMOKER] (Offset 1104) (Save|Key|Output)(0 Bytes) - OnSpawnSmoker - m_OnSpawn[ZOMBIE_BOOMER] (Offset 1128) (Save|Key|Output)(0 Bytes) - OnSpawnBoomer - m_OnSpawn[ZOMBIE_HUNTER] (Offset 1152) (Save|Key|Output)(0 Bytes) - OnSpawnHunter - m_OnSpawn[ZOMBIE_SPITTER] (Offset 1176) (Save|Key|Output)(0 Bytes) - OnSpawnSpitter - m_OnSpawn[ZOMBIE_JOCKEY] (Offset 1200) (Save|Key|Output)(0 Bytes) - OnSpawnJockey - m_OnSpawn[ZOMBIE_CHARGER] (Offset 1224) (Save|Key|Output)(0 Bytes) - OnSpawnCharger - m_OnSpawn[ZOMBIE_WITCH] (Offset 1248) (Save|Key|Output)(0 Bytes) - OnSpawnWitch - m_OnSpawn[ZOMBIE_TANK] (Offset 1272) (Save|Key|Output)(0 Bytes) - OnSpawnTank