Adding A New Restaurant

I've been meaning to add a restaurant up near the abandoned drive in for a while.
Since you don't have any businesses up in that area to purchase.

The two files that we need to edit are: shops_sr2_city.cts and
shops_sr2_city.xtbl.

You should search the cts file for another instance of the
store that you want to build, in my case I chose to use the
Suburbs instance of Freckle Bitch for my template entry.
There are several entries that deal with this property
which I will list.

Navpoints Section:
Code:
$Navpoint:    "shops_sr2_city_$SU_fb"
$Type:        "ground"
$Pos:            <593.678772 17.766003 -1623.076416>
$Orient:        [0.596123]
Code:
$Navpoint:    "shops_sr2_city_$SU_fb_normal_view"
$Type:        "floating"
$Pos:            <600.757629 25.173897 -1627.152710>
$Orient:        [<0.726227 0 0.687455> <-0.323999 0.881972 0.342272> <-0.606316 -0.471302 0.640512>]
Code:
$Navpoint:    "shops_sr2_city_$SU_fb_large_view"
$Type:        "floating"
$Pos:            <604.404480 28.110312 -1624.785522>
$Orient:        [<0.472820 0 0.881159> <-0.536795 0.793023 0.288038> <-0.698780 -0.609191 0.374957>]
Code:
$Navpoint:    "shops_sr2_city_$SU_fb_own"
$Type:        "ground"
$Pos:            <578.938354 17.973001 -1621.787109>
$Orient:        [I]
Code:
$Navpoint:    "shops_sr2_city_$SU_fb_cam1"
$Type:        "floating"
$Pos:            <584.542603 20.910040 -1626.475708>
$Orient:        [<0.597287 0 0.802028> <-0.065434 0.996667 0.048730> <-0.799354 -0.081585 0.595296>]
Code:
$Navpoint:    "shops_sr2_city_$SU_fb_cam2"
$Type:        "floating"
$Pos:            <590.851135 21.945084 -1636.525513>
$Orient:        [<0.734996 0 0.678071> <-0.034723 0.998688 0.037638> <-0.677182 -0.051209 0.734032>]

Trigger Section
Code:
$Trigger:                "shops_sr2_city_$SU_fb"
$Trigger type:            "bounding box"
$Trigger action:        "freckle bitches"
$Trigger max fires:    0
$Trigger delay:        10000
$Start nav:                "shops_sr2_city_$SU_fb"
+DemoDisabled
$Box size:                -2.350000 0.000000 -2.400000 2.350000 2.000000 2.400000
Code:
$Trigger:                "shops_sr2_city_$SU_fb_own"
$Trigger type:            "bounding box"
$Trigger action:        "store ownership"
$Trigger max fires:    0
$Trigger delay:        10000
$Start nav:                "shops_sr2_city_$SU_fb_own"
+DemoDisabled
$Box size:                -1.000000 0.000000 -1.000000 1.000000 2.000000 1.000000
+Ignore Vehicles

Out of all of these entries only four are important for out needs:
Code:
$Navpoint:    "shops_sr2_city_$SU_fb"
$Type:        "ground"
$Pos:            <593.678772 17.766003 -1623.076416>
$Orient:        [0.596123]

which is the food marker

Code:
$Navpoint:    "shops_sr2_city_$SU_fb_own"
$Type:        "ground"
$Pos:            <578.938354 17.973001 -1621.787109>
$Orient:        [I]

Which allows you to buy the property

And the two Trigger Section entries:
Code:
$Trigger:                "shops_sr2_city_$SU_fb"
$Trigger type:            "bounding box"
$Trigger action:        "freckle bitches"
$Trigger max fires:    0
$Trigger delay:        10000
$Start nav:                "shops_sr2_city_$SU_fb"
+DemoDisabled
$Box size:                -2.350000 0.000000 -2.400000 2.350000 2.000000 2.400000

Code:
$Trigger:                "shops_sr2_city_$SU_fb_own"
$Trigger type:            "bounding box"
$Trigger action:        "store ownership"
$Trigger max fires:    0
$Trigger delay:        10000
$Start nav:                "shops_sr2_city_$SU_fb_own"
+DemoDisabled
$Box size:                -1.000000 0.000000 -1.000000 1.000000 2.000000 1.000000
+Ignore Vehicles

These allow the restaurant and purchase functions to work.

So all you need to do is copy these four entries and change the
Navpoint and Trigger names, as well as the coordinatesi n the Navpoint entries.

Note: In the following code I have changed the names from su_fb to
ar_sb. This is the District code for arena since that is where we are
putting this business.

Here are the new entries:

Code:
$Navpoint:    "shops_sr2_city_$AR_fb"
$Type:        "ground"
$Pos:            <1291.146240 9.032512 -642.384399>
$Orient:        [3.15]

Code:
$Navpoint:    "shops_sr2_city_$AR_fb_own"
$Type:        "ground"
$Pos:            <1291.146240 9.032512 -642.384399>
$Orient:                [3.15]

Code:
$Trigger:                "shops_sr2_city_$AR_fb"
$Trigger type:            "bounding box"
$Trigger action:        "freckle bitches"
$Trigger max fires:    0
$Trigger delay:        10000
$Start nav:                "shops_sr2_city_$AR_fb"
+DemoDisabled
$Box size:                -2.350000 0.000000 -2.400000 2.350000 2.000000 2.400000
Code:
$Trigger:                "shops_sr2_city_$AR_fb_own"
$Trigger type:            "bounding box"
$Trigger action:        "store ownership"
$Trigger max fires:    0
$Trigger delay:        10000
$Start nav:                "shops_sr2_city_$AR_fb_own"
+DemoDisabled
$Box size:                -1.000000 0.000000 -1.000000 1.000000 2.000000 1.000000
+Ignore Vehicles

Just add all these entries to the bottom of their respective sections
and save your file.
There is only one chunk of code to edit in this file
Code:
<Shop>
        <Name>SU Freckle Bitchs</Name>
        <Chain>Freckle_Bitch's</Chain>
        <Shop_Trigger>shops_sr2_city_$SU_fb</Shop_Trigger>
        <Exterior_Elements>
            <Normal_Viewing_Navp>shops_sr2_city_$SU_fb_normal_view</Normal_Viewing_Navp>
            <Large_Viewing_Navp>shops_sr2_city_$SU_fb_large_view</Large_Viewing_Navp>
            <Outside_Trigger>shops_sr2_city_$SU_fb</Outside_Trigger>
            </Exterior_Elements>
        <Flags>
            </Flags>
        <_Editor>
            <Category>Entries</Category>
            </_Editor>
        <Ownership_Trigger>shops_sr2_city_$SU_fb_own</Ownership_Trigger>
        <Purchase_Start_Navpoint>shops_sr2_city_$SU_fb_cam1</Purchase_Start_Navpoint>
        <Purchase_End_Navpoint>shops_sr2_city_$SU_fb_cam2</Purchase_End_Navpoint>
        </Shop>

After you copy the code chunk then just change the relevant lines.
Code:
<Shop>
        <Name>AR Freckle Bitchs</Name>
        <Chain>Freckle_Bitch's</Chain>
        <Shop_Trigger>shops_sr2_city_$AR_fb</Shop_Trigger>
        <Exterior_Elements>
            <Normal_Viewing_Navp>shops_sr2_city_$SU_fb_normal_view</Normal_Viewing_Navp>
            <Large_Viewing_Navp>shops_sr2_city_$SU_fb_large_view</Large_Viewing_Navp>
            <Outside_Trigger>shops_sr2_city_$AR_fb</Outside_Trigger>
            </Exterior_Elements>
        <Flags>
            </Flags>
        <_Editor>
            <Category>Entries</Category>
            </_Editor>
        <Ownership_Trigger>shops_sr2_city_$AR_fb_own</Ownership_Trigger>
        <Purchase_Start_Navpoint>shops_sr2_city_$SU_fb_cam1</Purchase_Start_Navpoint>
        <Purchase_End_Navpoint>shops_sr2_city_$SU_fb_cam2</Purchase_End_Navpoint>
        </Shop>

I only changed tthe name in about three places and left the cameras pointed
towards the Suburbs version of the restaurant. This was done on purpose.

Since there is no current way that I know of to clean up the abandoned restaurant
and make it look nice I left the cameras pointing to a restaurant that does look nice.

Note: Not all restaurants in the game have outside triggers.
 
Last edited:
Back
Top