Getting the correct vehicle variation when spawned

I'm trying to get the police (specifically SWAT members) to use Bears/APCs in Notoriety Level 4 (replacing Cops in Five-Os), the catch is that they don't spawn in the correct "Police" variation, and instead spawn in the "Standard" variation, the thing is I don't actually know how to fix this issue, because I have no Idea how the vehicle variation spawning system works.

In Short: SWAT Members are spawning in Bears in their "Standard" variation instead of the proper Police variation, and I haven't gotta a clue how to fix this.
 
I think each variant of a vehicle is hardcoded to spawn only in certain circumstances, so I would recommend replacing the standard variant with the police variant by editing the SP_APC01.xtbl file. Here's how:
  1. Extract the common.vpp_pc file located in your SR2 directory. I'm sure you already know this, but I'm going to put this warning here so that I don't get blamed if something horrible happens. make sure you ALWAYS have a unedited backup of this file in your SR2 directory with the same name. If the program you are using to extract files is going to replace your common.vpp_pc with an extracted version DO NOT USE IT. I would recommend using Minimaul's Tools if you aren't already.
  2. Find the SP_APC01.xtbl and sp_apc01_cust.xtbl in the extracted common.vpp_pc folder, then I would recommend moveing them to a new folder.
  3. Don't do anything with sp_apc01_cust.xtbl, but in the SP_APC01.xtbl file, replace everything in Standard variants <Variant></Variant> brackets with this:
    Code:
              <Name>Standard</Name>
              <Weight>100</Weight>
              <ParkingWeight>100</ParkingWeight>
              <Type>normal</Type>
              <Siren>1</Siren>
              <Components>
                <Component_Group>
                  <Name>Chassis</Name>
                  <Component_Chances>
                    <Component_Chance>
                      <Name>Option 1</Name>
                      <Weight>100</Weight>
                      <Components>
                        <Component_Element>
                          <Slot>Chassis</Slot>
                          <Component>standard</Component>
                        </Component_Element>
                      </Components>
                    </Component_Chance>
                  </Component_Chances>
                </Component_Group>
                <Component_Group>
                  <Name>Decals</Name>
                  <Component_Chances>
                    <Component_Chance>
                      <Name>Option 1</Name>
                      <Weight>0</Weight>
                      <Components>
                        <Component_Element>
                          <Slot>Decal 1</Slot>
                          <Component>none</Component>
                        </Component_Element>
                        <Component_Element>
                          <Slot>Decal 2</Slot>
                          <Component>Decal 1</Component>
                        </Component_Element>
                      </Components>
                    </Component_Chance>
                    <Component_Chance>
                      <Name>Option 2</Name>
                      <Weight>0</Weight>
                      <Components>
                        <Component_Element>
                          <Slot>Decal 1</Slot>
                          <Component>Decal 2</Component>
                        </Component_Element>
                        <Component_Element>
                          <Slot>Decal 2</Slot>
                          <Component>Decal 1</Component>
                        </Component_Element>
                      </Components>
                    </Component_Chance>
                    <Component_Chance>
                      <Name>Option 3</Name>
                      <Weight>100</Weight>
                      <Components>
                        <Component_Element>
                          <Slot>Decal 1</Slot>
                          <Component>none</Component>
                        </Component_Element>
                        <Component_Element>
                          <Slot>Decal 2</Slot>
                          <Component>Decal 1</Component>
                        </Component_Element>
                      </Components>
                    </Component_Chance>
                  </Component_Chances>
                </Component_Group>
                <Component_Group>
                  <Name>Weapons</Name>
                  <Component_Chances>
                    <Component_Chance>
                      <Name>Option 1</Name>
                      <Weight>100</Weight>
                      <Components>
                        <Component_Element>
                          <Slot>Weapon 1</Slot>
                          <Component>Option 1</Component>
                        </Component_Element>
                      </Components>
                    </Component_Chance>
                  </Component_Chances>
                </Component_Group>
                <Component_Group>
                  <Name>Misc</Name>
                  <Component_Chances>
                    <Component_Chance>
                      <Name>Option 1</Name>
                      <Weight>100</Weight>
                      <Components>
                        <Component_Element>
                          <Slot>Miscellaneous</Slot>
                          <Component>none</Component>
                        </Component_Element>
                      </Components>
                    </Component_Chance>
                  </Component_Chances>
                </Component_Group>
                <Component_Group>
                  <Name>Wheels</Name>
                  <Component_Chances>
                    <Component_Chance>
                      <Name>Option 1</Name>
                      <Weight>100</Weight>
                      <Components />
                      <Externalized_Components>
                        <Externalized_Component>
                          <Component>W_006_F_Reg_Profile</Component>
                        </Externalized_Component>
                        <Externalized_Component>
                          <Component>W_006_R_Reg_Profile</Component>
                        </Externalized_Component>
                        <Externalized_Component>
                          <Component>R_252_F</Component>
                        </Externalized_Component>
                        <Externalized_Component>
                          <Component>R_252_R</Component>
                        </Externalized_Component>
                      </Externalized_Components>
                    </Component_Chance>
                  </Component_Chances>
                </Component_Group>
                <Component_Group>
                  <Name>Dirt</Name>
                  <Component_Chances>
                    <Component_Chance>
                      <Name>no Dirt</Name>
                      <Weight>0</Weight>
                      <Components>
                        <Component_Element>
                          <Slot>Dirt 1</Slot>
                          <Component>no dirt</Component>
                        </Component_Element>
                        <Component_Element>
                          <Slot>Dirt 2</Slot>
                          <Component>none</Component>
                        </Component_Element>
                      </Components>
                    </Component_Chance>
                    <Component_Chance>
                      <Name>Option 1</Name>
                      <Weight>65</Weight>
                      <Components>
                        <Component_Element>
                          <Slot>Dirt 1</Slot>
                          <Component>Option 1</Component>
                        </Component_Element>
                        <Component_Element>
                          <Slot>Dirt 2</Slot>
                          <Component>none</Component>
                        </Component_Element>
                      </Components>
                    </Component_Chance>
                    <Component_Chance>
                      <Name>Option 2</Name>
                      <Weight>25</Weight>
                      <Components>
                        <Component_Element>
                          <Slot>Dirt 1</Slot>
                          <Component>Option 2</Component>
                        </Component_Element>
                        <Component_Element>
                          <Slot>Dirt 2</Slot>
                          <Component>Option 1</Component>
                        </Component_Element>
                      </Components>
                    </Component_Chance>
                    <Component_Chance>
                      <Name>Option 3</Name>
                      <Weight>10</Weight>
                      <Components>
                        <Component_Element>
                          <Slot>Dirt 1</Slot>
                          <Component>Option 3</Component>
                        </Component_Element>
                        <Component_Element>
                          <Slot>Dirt 2</Slot>
                          <Component>Option 2</Component>
                        </Component_Element>
                      </Components>
                    </Component_Chance>
                    <Component_Chance>
                      <Name>Option 4</Name>
                      <Weight>0</Weight>
                      <Components>
                        <Component_Element>
                          <Slot>Dirt 1</Slot>
                          <Component>Option 4</Component>
                        </Component_Element>
                        <Component_Element>
                          <Slot>Dirt 2</Slot>
                          <Component>Option 4</Component>
                        </Component_Element>
                      </Components>
                    </Component_Chance>
                  </Component_Chances>
                </Component_Group>
                <Component_Group>
                  <Name>Performance</Name>
                  <Component_Chances>
                    <Component_Chance>
                      <Name>None</Name>
                      <Weight>100</Weight>
                      <Components>
                        <Component_Element>
                          <Slot>Nitrous</Slot>
                          <Component>None</Component>
                        </Component_Element>
                        <Component_Element>
                          <Slot>Kneecappers</Slot>
                          <Component>None</Component>
                        </Component_Element>
                        <Component_Element>
                          <Slot>Torque</Slot>
                          <Component>None</Component>
                        </Component_Element>
                        <Component_Element>
                          <Slot>Tire Durability</Slot>
                          <Component>None</Component>
                        </Component_Element>
                        <Component_Element>
                          <Slot>Reinforced Frame</Slot>
                          <Component>None</Component>
                        </Component_Element>
                        <Component_Element>
                          <Slot>Reinforced Bumper</Slot>
                          <Component>None</Component>
                        </Component_Element>
                      </Components>
                    </Component_Chance>
                  </Component_Chances>
                </Component_Group>
              </Components>
              <Colors>
                <Color_Group>
                  <Name>Default</Name>
                  <Color_Chances>
                    <Color_Chance>
                      <Name>Blue</Name>
                      <Weight>100</Weight>
                      <Color_Choices>
                        <Color_Choice>
                          <Slot>Body Color</Slot>
                          <Component>Paint</Component>
                          <Color_Slot>Paint</Color_Slot>
                          <Color>
                            <Color_Pool>Matte Blue Wave</Color_Pool>
                          </Color>
                        </Color_Choice>
                        <Color_Choice>
                          <Slot>Trim Color</Slot>
                          <Component>Paint</Component>
                          <Color_Slot>Trim</Color_Slot>
                          <Color>
                            <Color_Pool>Metal Steel</Color_Pool>
                          </Color>
                        </Color_Choice>
                        <Color_Choice>
                          <Slot>Rim Color1</Slot>
                          <Component>Paint</Component>
                          <Color_Slot>Rim1</Color_Slot>
                          <Color>
                            <Color_Pool>Matte Tabletop Gray</Color_Pool>
                          </Color>
                        </Color_Choice>
                        <Color_Choice>
                          <Slot>Rim Color2</Slot>
                          <Component>Paint</Component>
                          <Color_Slot>Rim2</Color_Slot>
                          <Color>
                            <Color_Pool>Metal Steel</Color_Pool>
                          </Color>
                        </Color_Choice>
                        <Color_Choice>
                          <Slot>Window Tint</Slot>
                          <Component>Window Tint</Component>
                          <Color_Slot>Tint</Color_Slot>
                          <Color>
                            <Color_Pool>Glass Tint 60%</Color_Pool>
                          </Color>
                        </Color_Choice>
                      </Color_Choices>
                    </Color_Chance>
                  </Color_Chances>
                </Color_Group>
              </Colors>
              <Wheels>
                <Wheel_Group>
                  <Name>Default</Name>
                  <Front_Width>2</Front_Width>
                  <Front_Size>23</Front_Size>
                  <Rear_Width>2</Rear_Width>
                  <Rear_Size>23</Rear_Size>
                  <Weight>100</Weight>
                </Wheel_Group>
              </Wheels>
    Make sure you don't replace any other variants, only the Standard one. It should start at <Variant> and end at </Variant>.
  4. Download the cvtf helper tool.
  5. Follow its instructions on how to crunch vehicles into cvtf files, then drag both the SP_APC01.xtbl file and the newly create sp_apc01.cvtf files into your GOTR personal mods folder.
  6. Create a new patch, and have a grand ol' time!
I hope this helped, if you have any questions please let me know.
 
Or I guess if you don't want to go through the trouble and actually have a life to live, I could just give you the files I edited myself.
 

Attachments

  • policeapc.zip
    6.4 KB · Views: 208
Back
Top