I'm sorry for triple post, but I've released v0.6.
Please be aware that this mod now modifies the shop data (shops_sr2_city.cts and shops_sr2_city.xtbl) to make room for more navpoints and triggers.
Finally, and FINALLY, the zombies have voices!
Let me explain how I enabled the zombie voice...
Turns out, the zombie voice was controlled by a system named "Persona". (No relations to the famous game series, probably)
We can get a character's Persona by using a function named character_get_persona(character_name), and can change a character's persona by using character_set_persona(character_name, persona_name).
I wanted to know what persona the zombies in Zombie Uprising has, so I modded my Sandbox++'s command 373 (on_take_damage) so when I take damage from someone the game displays the attacker's persona. The callback code of on_take_damage looked like this:
I went to Zombie Uprising, enabled the modified command 373, got punched by a zombie, and I got a message "SP_M_ZOMBIE1".
I added a character_set_persona(npc, "SP_M_ZOMBIE1") command to F.R.Z. and my zombies now groan!
Some other Zombie Uprising zombies had a "SP_M_ZOMBIE2" persona, but strangely the "M" part did not change for female zombies. The "F" variants do exist in the game, but seems unused. This mod does make use of "F" variant for female zombies, but I don't know how much differences the "F" variants have.
Please be aware that this mod now modifies the shop data (shops_sr2_city.cts and shops_sr2_city.xtbl) to make room for more navpoints and triggers.
Finally, and FINALLY, the zombies have voices!
Let me explain how I enabled the zombie voice...
Turns out, the zombie voice was controlled by a system named "Persona". (No relations to the famous game series, probably)
We can get a character's Persona by using a function named character_get_persona(character_name), and can change a character's persona by using character_set_persona(character_name, persona_name).
I wanted to know what persona the zombies in Zombie Uprising has, so I modded my Sandbox++'s command 373 (on_take_damage) so when I take damage from someone the game displays the attacker's persona. The callback code of on_take_damage looked like this:
Code:
function spp_on_take_damage(victim, attacker, hp, explosion)
if attacker ~= nil then
mission_help_table(character_get_persona(attacker))
end
end
I went to Zombie Uprising, enabled the modified command 373, got punched by a zombie, and I got a message "SP_M_ZOMBIE1".
I added a character_set_persona(npc, "SP_M_ZOMBIE1") command to F.R.Z. and my zombies now groan!
Some other Zombie Uprising zombies had a "SP_M_ZOMBIE2" persona, but strangely the "M" part did not change for female zombies. The "F" variants do exist in the game, but seems unused. This mod does make use of "F" variant for female zombies, but I don't know how much differences the "F" variants have.