How to edit enemy behaviors... give them Super Powers and more!

Ever thought that enemies in Saints Row 4 are too boring? Want to make combat harder? You can easily modify enemies in Saints Row 4, allowing them to use different weapons, use super powers, or do other things!

You will need...

1. shitface's NPC Behavior and Spawn mod
2. Notepad++
3. Saints row IV

Here's how to give enemies super powers:

1. Open up ai_behavior.xbtl in your Saints Row 4 folder. This folder is part of the NPC Behavior and Spawn mod. Make sure to open it with Notepad++, as modifying the code can lead to unpredictable results with other text editors.

2. Find the enemy you want to modify. You'll probably want to modify the "Alien Offensive/Defensive", "Police Offensive/Defensive," and "Alien Specialist/Rocket Launcher" enemies. By default, all law enforcement enemies (ZPD/SWAT/NatGuard/STAG) are classified under Police Offensive/Defensive, meaning that they share the same powers.

3. Look for the section titled "Actions" with a bunch of abilities below it. These are the enemy abilities.

4. Here are the names for the Super Powers; ctrl+f to find them in the document and copy them into the "abilities" section of the enemy you want to modify.

  • super teleport-gets enemies unstuck if they are trapped somewhere.
  • super jump advance-Super Jump power used to advance on you if you get far away, I presume.
  • super jump surround-Super Jump power used to surround you during combat, I presume.
  • super attack-necessary if you want to give your enemy an offensive Super Power.
  • super combo-performs a combo of all super powers, I presume. Only used if the enemy has all offensive super powers.
  • super energy blast-an energy blast similar to the Hadouken when used by humanoid enemies. Wardens have a different animation where they shoot it out of their mouth.
  • super ground pound-same as your Stomp power. I don't recommend giving this to enemies, as their stomp tends to send everything flying, not just you. Could be funny though. One thing to note is that humanoid enemies stomp much quicker than Wardens, making it annoying if there are a lot of enemies using it, as you can't dodge as quickly.
  • super tele catch-allows enemies to catch objects you throw at them with Telekinesis.
  • super tele throw-allows enemies to pick up and throw objects at you with Telekinesis.
You're probably thinking, "What about Super Sprint?" but I'll get to that. You'll notice under each ability, there are two lines with <Repeat_Min> and <Repeat_Max> in them, and a number in between them. Repeat_Min determines how long before an enemy can perform an action again, a cooldown basically. Repeat_Max determines how long before an enemy is forced to perform the action. The time is in seconds. When you copy/paste an ability, take into consideration those two lines.

Here's how to give enemies Super Sprint, energy shields, and other things:

1. Go into the "character.xbtl" file in Notepad++.

2. Look for the enemy you want to modify. It can take some digging to find the right enemy.

3. In the big ol' line of code for each enemy, look for the section of "flags". They look like this, for example: <Flag>has_ultra_shield</Flag>

4. Copy+paste the flags you want for each enemy. Here are a list of useful ones:

<Flag>has_ultra_shield</Flag> - Gives an enemy the same shield that Wardens and some boss enemies use. Must be removed by a super power.
<Flag>has_super_powers</Flag> - Gives enemies Super Sprint and the ability to "Ninja flip" when ragdolled to recover.
<Flag>never_be_frozen</Flag> - Makes enemies immune to Freeze Blast.
<Flag>never_catch_fire/Flag> - Makes enemies immune to being caught on fire. Simple as that. Fire Blast will still remove their shield if they have one, however.
<Flag>ungrabbable</Flag> - Makes enemies immune to being grabbed and taken as a human shield.

Hope you found this information useful. If you experience a crash when starting up the game, it means that you created a syntax error somewhere when editing the files. Try to have a backup handy if you can't find the particular mistake.
 
Back
Top