Modding Zombie Uprising

This is more of a tutorial than a mod but I am including the files in case someone wants to study
them or try them out in game.

There are much better Zombie Uprising Mods out there than this one. Myself I like the
Zombie uprising at the Mall mod. But this isn't meant to be a serious mod just a small
exercise in activity modding.

I started with the Pierce And Shaundi Zombies At The Mall mod and changed a couple of things.

1. Instead of Pierce it is now Gat And Shaundi
2. I added a $10,000 award for beating the activity
3. I changed the amount of respect from 2,000 to 5,000
4. I changed a Floor weapon spawn (as well as an ammo amount)
5. I changed a Zombie weapon drop
6. I changed the percentage that controls the chances of a food or weapon drop.
7. I changed the zombies to Ninjas
8. I changed the Zombie Animations To Brotherhood Animations


-Part 1- Changing A Character

In Idolninja's optional Zombie Uprising At The Mall he gives you a choice of characters
to be your Zombie Killer. I chose the version that features Pierce and Shaundi but in my own
game I chose to change Pierce To Johnny Gat.

Here Is The Relevant Code From Idolninja's mod (zombie.xtbl):

<Zombie_Killer_One>npc_pierce</Zombie_Killer_One>
<Zombie_Killer_Two>npc_shaundi</Zombie_Killer_Two>

This was a simple change just replace npc_pierce with npc_gat

(Modded Code)

<Zombie_Killer_One>npc_gat</Zombie_Killer_One>
<Zombie_Killer_Two>npc_shaundi</Zombie_Killer_Two>

-Part 2- Adding A Cash Reward

Here is the original code:

<Level>

<Cash_Award>0</Cash_Award>

(modded code)

<Level>

<Cash_Award>10000</Cash_Award>


-Part 3- Changing The Amount Of Respect

Original Code:

<Props_Award>2000</Props_Award>

(modded Code)

<Props_Award>5000</Props_Award>
-Part 4- Swapping Weapon Pickups


(Original code) Note That We Are Working With Zombie.cts right now not zombie.xtbl and you can see
these changes are made under the Items heading


// -------
#Items
// -------

$Item: "zombie_weapon01"
$Item type: "ak47"
$Start nav: "zombie_weapon01"
$Respawn Delay: 221199
$Ammo: 150
$Grenade Ammo: 0
$Group: "zombie_item_group"

$Item: "zombie_weapon02"
$Item type: "flamethrower"
$Start nav: "zombie_weapon02"
$Ammo: 200
$Grenade Ammo: 0
$Group: "zombie_item_group"

$Item: "zombie_weapon03"
$Item type: "minigun"
$Start nav: "zombie_weapon03"
$Ammo: 200
$Grenade Ammo: 0
$Group: "zombie_item_group"

$Item: "zombie_food01"
$Item type: "the_fist"
$Start nav: "zombie_food01"
$Group: "zombie_item_group"

$Item: "zombie_food02"
$Item type: "the_fist"
$Start nav: "zombie_food02"
$Respawn Delay: 63299
$Group: "zombie_item_group"

$Item: "zombie_weapon04"
$Item type: "chainsaw"
$Start nav: "zombie_weapon04"
$Respawn Delay: 255000
$Grenade Ammo: 0
$Group: "zombie_item_group"

$Item: "zombie_weapon06"
$Item type: "sledgehammer"
$Start nav: "zombie_weapon06"
$Respawn Delay: 97800
$Grenade Ammo: 0
$Group: "zombie_item_group"

$Item: "zombie_weapon07"
$Item type: "baseball_bat"
$Start nav: "zombie_weapon07"
$Respawn Delay: 97800
$Grenade Ammo: 0
$Group: "zombie_item_group"

$Item: "zombie_weapon05"
$Item type: "tire_iron"
$Start nav: "zombie_weapon05"
$Respawn Delay: 77300
$Grenade Ammo: 0
$Group: "zombie_item_group"

$Item: "zombie_$i000"
$Item type: "pump_action_shotgun"
$Start nav: "zombie_$i000"
$Respawn Delay: 136800
$Ammo: 16
$Grenade Ammo: 0
$Group: "zombie_item_group"

$Item: "zombie_food02 (0)"
$Item type: "the_fist"
$Start nav: "zombie_food02 (0)"
$Respawn Delay: 124500
$Group: "zombie_item_group"

$Item: "zombie_weapon04 (0)"
$Item type: "glock"
$Start nav: "zombie_weapon04 (0)"
$Respawn Delay: 46100
$Ammo: 100
$Grenade Ammo: 0
$Group: "zombie_item_group"

$Item: "zombie_weapon04 (1)"
$Item type: "tec9"
$Start nav: "zombie_weapon04 (1)"
$Respawn Delay: 112800
$Ammo: 150
$Grenade Ammo: 0
$Group: "zombie_item_group"


(modded code)


// -------
#Items
// -------

$Item: "zombie_weapon01"
$Item type: "ak47"
$Start nav: "zombie_weapon01"
$Respawn Delay: 221199
$Ammo: 150
$Grenade Ammo: 0
$Group: "zombie_item_group"

$Item: "zombie_weapon02"
$Item type: "mcmanus2010"
$Start nav: "zombie_weapon02"
$Respawn Delay: 221199
$Ammo: 20
$Grenade Ammo: 0
$Group: "zombie_item_group"

$Item: "zombie_weapon03"
$Item type: "minigun"
$Start nav: "zombie_weapon03"
$Ammo: 200
$Grenade Ammo: 0
$Group: "zombie_item_group"

$Item: "zombie_food01"
$Item type: "the_fist"
$Start nav: "zombie_food01"
$Group: "zombie_item_group"

$Item: "zombie_food02"
$Item type: "the_fist"
$Start nav: "zombie_food02"
$Respawn Delay: 63299
$Group: "zombie_item_group"

$Item: "zombie_weapon04"
$Item type: "chainsaw"
$Start nav: "zombie_weapon04"
$Respawn Delay: 255000
$Grenade Ammo: 0
$Group: "zombie_item_group"

$Item: "zombie_weapon06"
$Item type: "sledgehammer"
$Start nav: "zombie_weapon06"
$Respawn Delay: 97800
$Grenade Ammo: 0
$Group: "zombie_item_group"

$Item: "zombie_weapon07"
$Item type: "baseball_bat"
$Start nav: "zombie_weapon07"
$Respawn Delay: 97800
$Grenade Ammo: 0
$Group: "zombie_item_group"

$Item: "zombie_weapon05"
$Item type: "tire_iron"
$Start nav: "zombie_weapon05"
$Respawn Delay: 77300
$Grenade Ammo: 0
$Group: "zombie_item_group"

$Item: "zombie_$i000"
$Item type: "pump_action_shotgun"
$Start nav: "zombie_$i000"
$Respawn Delay: 136800
$Ammo: 24
$Grenade Ammo: 0
$Group: "zombie_item_group"

$Item: "zombie_food02 (0)"
$Item type: "the_fist"
$Start nav: "zombie_food02 (0)"
$Respawn Delay: 124500
$Group: "zombie_item_group"

$Item: "zombie_weapon04 (0)"
$Item type: "glock"
$Start nav: "zombie_weapon04 (0)"
$Respawn Delay: 46100
$Ammo: 100
$Grenade Ammo: 0
$Group: "zombie_item_group"

$Item: "zombie_weapon04 (1)"
$Item type: "tec9"
$Start nav: "zombie_weapon04 (1)"
$Respawn Delay: 112800
$Ammo: 150
$Grenade Ammo: 0
$Group: "zombie_item_group"

I swapped the flamethrower for the McManus2010
And I changed the amount of ammo for the pump_action_shotgun.

-Part 5- Changing Zombie Weapon Drops

(We're back in zombie.xtbl now)


(Original Code)

<Droppable_Weapons>
<Weapon>
<Weapon_Specific>baseball_bat</Weapon_Specific>
<Weapon_Ammo>-1</Weapon_Ammo>
<Weight>0.1</Weight>
</Weapon>
<Weapon>
<Weapon_Specific>machete</Weapon_Specific>
<Weapon_Ammo>-1</Weapon_Ammo>
<Weight>0.1</Weight>
</Weapon>
<Weapon>
<Weapon_Specific>grenade</Weapon_Specific>
<Weapon_Ammo>1</Weapon_Ammo>
<Weight>0.2</Weight>
</Weapon>
<Weapon>
<Weapon_Specific>tec9</Weapon_Specific>
<Weapon_Ammo>50</Weapon_Ammo>
<Weight>0.3</Weight>
</Weapon>
<Weapon>
<Weapon_Specific>beretta</Weapon_Specific>
<Weapon_Ammo>20</Weapon_Ammo>
<Weight>0.3</Weight>
</Weapon>
</Droppable_Weapons>

(Modded Code)


<Droppable_Weapons>
<Weapon>
<Weapon_Specific>baseball_bat</Weapon_Specific>
<Weapon_Ammo>-1</Weapon_Ammo>
<Weight>0.1</Weight>
</Weapon>
<Weapon>
<Weapon_Specific>pump_action_shotgun</Weapon_Specific>
<Weapon_Ammo>24</Weapon_Ammo>
<Weight>0.1</Weight>
</Weapon>
<Weapon>
<Weapon_Specific>grenade</Weapon_Specific>
<Weapon_Ammo>1</Weapon_Ammo>
<Weight>0.2</Weight>
</Weapon>
<Weapon>
<Weapon_Specific>tec9</Weapon_Specific>
<Weapon_Ammo>50</Weapon_Ammo>
<Weight>0.3</Weight>
</Weapon>
<Weapon>
<Weapon_Specific>beretta</Weapon_Specific>
<Weapon_Ammo>20</Weapon_Ammo>
<Weight>0.3</Weight>
</Weapon>
</Droppable_Weapons>


I swapped the machete for the pump_action_shotgun and changed the ammo from -1 (which I think means infinite)
to 24 for the shotgun. I tried leaving the ammo ammount at -1 but it did not make the shotgun ammo infinite


-Part 6- Changing Chances of Food Or Weapon Drop


Original code:

<Chance_To_Drop_Food>0.10</Chance_To_Drop_Food>
<Chance_To_Drop_Weapon>0.35</Chance_To_Drop_Weapon>

(modded code)

<Chance_To_Drop_Food>0.90</Chance_To_Drop_Food>
<Chance_To_Drop_Weapon>0.90</Chance_To_Drop_Weapon>

-Part 7- Changing Zombies To Ninjas (character swaps)
(Note: Thank you to SeaboundSaint for the NPC Editing Guide. That is how I learned to do this.)


The Zombies in my mod are controlled by the files:

npc_ZombMale_A.xtbl
npc_ZombMale_C.xtbl
npc_ZombFemB.xtbl

There are other zombie files in Common.vpp_pc but I don't use them.

Since I want to change my zombies to ninjas I will simply swap the
npc in the _pre files (i.e. For npc_ZombMale_A I would swap the character in npc_ZombMale_A_pre.xtbl)

the relevant files will be:
npc_ZombMale_A_pre.xtbl
npc_ZombMale_C_pre.xtbl
npc_ZombFemB_pre.xtbl

Here is npc_ZombMale_A_pre.xtbl used as an example:

(original code)

<Preset>
<Name>npc_ZombMale_A</Name>
<Character>npc_ZombMale_A</Character>

(modded code)

<Preset>
<Name>npc_ZombMale_A</Name>
<Character>npc_Ninja</Character>

All three _pre files will use npc_ninja as the character entry.


-Part 8- Swapping The Animations From Zombies To Brotherhood

In the npc_Zomb*_pre files there is a setting for animations

Here is the listing from ZombFemB_ore

<AnimSets>
<AnimSet>0.0<Filename>PML1_Zombie.xtbl</Filename>
<PercentChance>100</PercentChance>
</AnimSet>

what we want to change is the filename inside of the ,Filename></Filename> brackets
so that it reflects out choice of animations. In this case: to BRO_LIFE which controls the Brotherhood animations


(Original Code)

<AnimSets>
<AnimSet>0.0<Filename>PML1_Zombie.xtbl</Filename>
<PercentChance>100</PercentChance>
</AnimSet>


(Modded Code)

<AnimSets>
<AnimSet>0.0<Filename>BRO_LIFE</Filename>
<PercentChance>100</PercentChance>
</AnimSet>


That's it. Just compile your code and have fun.

Be sure to keep your original Zomb* files so that you can restore them when you are
done playing with these.


Drop the edited file in the '1-MODDERS_-_PUT_YOUR_OWN_PERSONAL_MODS_HERE' directory located in
Gentlemen Of The Row/optional_mod_stuff and compile it. Drop your compiled files in your Saints Row 2
folder.

There is no reason that I can think of that this should mess with a save file, but
depending on what other mods you may have installed it might mess up your progress if you are
going for 100 percent. Since I'm not sure I thought to give this warning.
 

Attachments

  • Zombie Upeising.zip
    6.8 KB · Views: 11
Back
Top