SR2 Notoriety variant name

Hey Volition

In saints row 2 I managed to make the APC show up at level 4. But where does the game set the variant for this?

The APC appears in all colors, I want it to be the navy blue one with the SWAT livery.
 
I'm not familiar with the notoriety system at all, but it may be that there isn't support for specifying the variant.

Can you point me to which file & tag(s) you modified to get the APC to show up, so I can look to see if there's any optional tags to specify the variant name?
 
I'm not familiar with the notoriety system at all, but it may be that there isn't support for specifying the variant.

Can you point me to which file & tag(s) you modified to get the APC to show up, so I can look to see if there's any optional tags to specify the variant name?


This is the piece of code which will make the APC spawn. I edited this in the notoriety_spawns.xtbl file. This code was added in the first table, which is the 'police' table, which sets spawns for ground police vehicles.

Code:
            <resource_info>
                <level>4</level>
                <chance>0.15</chance>
                <tag_name>swat</tag_name>
                <npc_name>npc_swat</npc_name>
                <vehicle_name>sp_apc01</vehicle_name>
                </resource_info>

In this file I indeed also don't see any variant support.

But I am certain there is somewhere we can edit the variant. In Ultor territory, at 5 shields, Masako teams show up in APCs as well. Those APCs use the exact same code:

Code:
            <resource_info>
                <level>5</level>
                <chance>0.8</chance>
                <tag_name>masako</tag_name>
                <npc_name>npc_ultor_masako</npc_name>
                <vehicle_name>sp_apc01</vehicle_name>
                </resource_info>

As you can see there also is no line about the variant, though the game still spawns the Ultor variant.

I'm pretty sure there is another file, which changes the variant off all APCs within the 'Ultor' spawns table to the Ultor APC

P.S. I also noticed that the SWAT team didn't use the APC its mounted gun, like the Masako team does. Does this also has something to do with only certain enemy types being allowed to do certain actions?
 
The vehicle variant for notoriety vehicle spawn groups is hard coded in SR2. :(

Here's the list of vehicle spawn group definitions in code, showing the notoriety vehicle group name, team, and the vehicle variant name as the third parameter...
Code:
notoriety_spawn_group_police Spawn_group_police("police", HUMAN_TEAM_POLICE, NULL);
notoriety_spawn_group_police Spawn_group_police_motorcycle("police motorcycle", HUMAN_TEAM_POLICE, "police");
notoriety_spawn_group_police Spawn_group_police_roadblock("police roadblock", HUMAN_TEAM_POLICE, NULL);
notoriety_spawn_group_gang Spawn_group_bh("gang BH", HUMAN_TEAM_BROTHERHOOD, "gang_bh");
notoriety_spawn_group_gang Spawn_group_ro("gang RN", HUMAN_TEAM_RONIN, "gang_ronin");
notoriety_spawn_group_gang Spawn_group_ss("gang SOS", HUMAN_TEAM_SAMEDI, "gang_sos");
notoriety_spawn_group_police_heli Spawn_group_police_heli("police heli", HUMAN_TEAM_POLICE, "police");
notoriety_spawn_group_police_heli Spawn_group_police_attack_heli("police attack heli", HUMAN_TEAM_POLICE, "police");
notoriety_spawn_group_police Spawn_group_police_waverunners("police waverunners", HUMAN_TEAM_POLICE, "CG");
notoriety_spawn_group_police Spawn_group_police_speedboats("police speedboats", HUMAN_TEAM_POLICE, "police");
notoriety_spawn_group_police Spawn_group_ultor("ultor", HUMAN_TEAM_ULTOR, "ultor");
notoriety_spawn_group_police Spawn_group_ultor_indoors("ultor indoors", HUMAN_TEAM_ULTOR, "ultor");
notoriety_spawn_group_police Spawn_group_ultor_roadblock("ultor roadblock", HUMAN_TEAM_ULTOR, "ultor");
notoriety_spawn_group_police_heli Spawn_group_ultor_attack_heli("ultor attack heli", HUMAN_TEAM_ULTOR, "ultor");
 
The vehicle variant for notoriety vehicle spawn groups is hard coded in SR2. :(

Here's the list of vehicle spawn group definitions in code, showing the notoriety vehicle group name, team, and the vehicle variant name as the third parameter...
Code:
notoriety_spawn_group_police Spawn_group_police("police", HUMAN_TEAM_POLICE, NULL);
notoriety_spawn_group_police Spawn_group_police_motorcycle("police motorcycle", HUMAN_TEAM_POLICE, "police");
notoriety_spawn_group_police Spawn_group_police_roadblock("police roadblock", HUMAN_TEAM_POLICE, NULL);
notoriety_spawn_group_gang Spawn_group_bh("gang BH", HUMAN_TEAM_BROTHERHOOD, "gang_bh");
notoriety_spawn_group_gang Spawn_group_ro("gang RN", HUMAN_TEAM_RONIN, "gang_ronin");
notoriety_spawn_group_gang Spawn_group_ss("gang SOS", HUMAN_TEAM_SAMEDI, "gang_sos");
notoriety_spawn_group_police_heli Spawn_group_police_heli("police heli", HUMAN_TEAM_POLICE, "police");
notoriety_spawn_group_police_heli Spawn_group_police_attack_heli("police attack heli", HUMAN_TEAM_POLICE, "police");
notoriety_spawn_group_police Spawn_group_police_waverunners("police waverunners", HUMAN_TEAM_POLICE, "CG");
notoriety_spawn_group_police Spawn_group_police_speedboats("police speedboats", HUMAN_TEAM_POLICE, "police");
notoriety_spawn_group_police Spawn_group_ultor("ultor", HUMAN_TEAM_ULTOR, "ultor");
notoriety_spawn_group_police Spawn_group_ultor_indoors("ultor indoors", HUMAN_TEAM_ULTOR, "ultor");
notoriety_spawn_group_police Spawn_group_ultor_roadblock("ultor roadblock", HUMAN_TEAM_ULTOR, "ultor");
notoriety_spawn_group_police_heli Spawn_group_ultor_attack_heli("ultor attack heli", HUMAN_TEAM_ULTOR, "ultor");


Oh No!!! Man, there is a lot of hardcodes stuff in saints row 2 compared to the 3rd game.

Some time ago IdolNinja said this in the 'Kinzie's Toy Box' thread:
The SR2 version of the cvtf tool is now working for vehicles! :D

So when the cvtf tool comes out and I change the default variant to look exaclty like the SWAT variant, probably by simply copying all the lines of the SWAT variant and paste it on the default variant its lines, won't that be a good work-around to still make it show up?
 
Oh No!!! Man, there is a lot of hardcodes stuff in saints row 2 compared to the 3rd game.

Some time ago IdolNinja said this in the 'Kinzie's Toy Box' thread:


So when the cvtf tool comes out and I change the default variant to look exaclty like the SWAT variant, probably by simply copying all the lines of the SWAT variant and paste it on the default variant its lines, won't that be a good work-around to still make it show up?

That should definitely work.
 
That should definitely work.


Super. Thank you, IdolNinja, that gives me another reason to look forward to the SDK.
(I know we will be able to do a lot more then what I just mentioned, but to a cop-obsessed freak like me this is very good news.)
 
Back
Top