Log in to reply
 

4x seats vehicles useable by AI dispatch



  • Hi, I am really struggling to actually find vehicles with 4 seats useable by FBI/ARMY/SWAT/COP except for the basic FBI (FIB Buffalo), that seems to be the only one who peds fit in all 4 seats.
    I want to dispatch a SWAT vehicle with a squad (4 or more peds).

    Do you guys know any other ones ?

    Thanks



  • I've found this https://fr.gta5-mods.com/vehicles/lspd-tru-granger-add-on-replace.

    Exactly what i'm searching for, the replace works in-game, but still with 3x peds. If someone got an idea one how to make it work like in the video (Granger full of SWAT inside, and 4 outside) from that link, it would be amazing.



  • @epoqx You can edit the amount of peds in a vehicle from dispatch.meta.



  • @Viccracenvy NumPedsToSpawn value ? How this works concretely ? I already tried to upgrade this value, but it doesn't seem to impact the units dispatched in each cars.

    So it is possible to make spawn 2 peds instead of 4 in the FBIBuffalo, but is it possible to make spawn more than 3 peds in any other vehicle than FBIBuffalo and FBIGranger ? I tried different ones, from different categories, but they all seem to spawn at maximum 2 peds in it. Even in vans, SUVs or big 4x4, which makes it a bit unrealistic.

    Thanks



  • @Viccracenvy Can you please let us know which line and how you must change in order to have fbi2 and sherrif2 with 1 driver + 3 passengers?



  • @epoqx Viccracenvy is right. I've done that once by accident (and I don't remember how). I had the police patrol cars spawn with 4 cops instead of 2. I hope that he can let us know.



  • @gorgonut @epoqx

    Below the vehicles in the vehicle classes, SWAT_JEEP, SWAT_HELI, etc, there should be <PedModels> with <Ped>. You can add more <Ped> lines for more peds. https://wiki.gtanet.work/index.php/Peds is a list of ped ids. You can change the driver id in vehicles.meta from <Driver>

    Hadn't seen your replies, sorry.



  • I would really, really know how this works, because i still think that what @Viccracenvy tells us is to change the variety of peds and not the numbers in a single car.



  • @epoqx That's where your thinking comes wrong. This doesn't change the variety. It literally changes the number of peds in a vehicle.



  • @Viccracenvy

    <Vehicle>
    <Name>SWAT_SEC</Name>
    <ConditionalVehicleSets>
    <Item>
    <ZoneType>VEHICLE_RESPONSE_ARMY_BASE</ZoneType>
    <VehicleModels>
    <Vehicle>crusader</Vehicle>
    </VehicleModels>
    <PedModels>
    <Ped>S_M_M_Marine_01</Ped>
    </PedModels>
    </Item>
    <Item>
    <ZoneType>VEHICLE_RESPONSE_COUNTRYSIDE</ZoneType>
    <VehicleModels>
    <Vehicle>sheriff2</Vehicle>
    </VehicleModels>
    <PedModels>
    <Ped>S_M_Y_MERROPS_01</Ped>
    <Ped>S_M_Y_MERROPS_02</Ped>
    <Ped>S_M_Y_MERROPS_03</Ped>
    </PedModels>
    </Item>
    <Item>
    <VehicleModels>
    <Vehicle>ucchallenger15</Vehicle>
    <Vehicle>fbi2</Vehicle>
    </VehicleModels>
    <PedModels>
    <Ped>S_M_Y_Swat_01</Ped>
    <Ped>S_M_Y_Swat_01</Ped>
    <Ped>S_M_Y_Swat_01</Ped>
    <Ped>S_M_Y_Swat_01</Ped>
    <Ped>S_M_Y_Swat_01</Ped>
    <Ped>S_M_Y_Swat_01</Ped>
    <Ped>S_M_Y_Swat_01</Ped>
    </PedModels>
    </Item>
    </ConditionalVehicleSets>
    </Vehicle>

    The SWAT Still spawns as 3 on fbi2 with NumPedsToSpawn = 9



  • @epoqx Hmm.. I will try to replicate what you are doing and see what the problem is. If I find something I will reply. No hard feelings



  • @Viccracenvy

    Thanks mate. If you want I can send my dispatch, but it's full of addons



  • @epoqx It looks like this method only works for some vehicles.. I will look further



  • I posted something similar in another thread also, but seemed like it may be pertinent here too.

    @gorgonut @Viccracenvy
    Any vehicle used to replace 'fbi' will also dispatch with 4x peds in it :thumbsup:

    It's not tied to the specific fbi buffalo or to it's meta files. Presumably there is a flag or script somewhere that just automatically gives any vehicle called 'fbi' the ability to dispatch with x4 peds.

    I used a lot of different vehicles & also replaced the normal 'fbi' meta data with their equivalent data, but still it always dispatched with x4 peds (so as mentioned, x4 ped ability not tied to model or meta files in any way, just the name 'fbi').

    I also tested some naming schemes, creating vehicles called 'fbi_1/01_fbi' etc, just to see if it picked up the 'fbi' part & applied the 4x ped, but that didn't work.
    So for now anyway, seems like just one type of x4 peds vehicle available at a time. At least it can be any vehicle you want though. That gives a little bit of choice/variation :thumbsup:.

    @gorgonut
    If you use 'fbi2' or 'sherrif2' (you'll have to choose which one you want to have 4x peds inside, can't have both obvs) to replace 'fbi' you will get 4x peds sitting in the seats inside :thumbsup:
    The 'LAYOUT_RANGER_SWAT' (guys hanging on the sides) will be disabled (even if using 'fbi2' 'vehicles.meta' data) & obviously you will also lose the ability to dispatch the fbi buffalo, but it gets you 50% of what you want. :thumbsup:



  • Amazing.

    This is a simply, but amazing information. I tried with riot BearCat, and it works too.

    It's been SO long i'm trying to find a way to do this, and @a63nt-5m1th still have a way to make it work. It was as simple as this.

    Thank you.



  • @epoqx @gorgonut @Viccracenvy
    Just a thought (untested). there may be other vehicles in the game that have been given the same/similar x4 ped flag/script etc as the 'fbi'. Doesn't the 'firetruk' spawn with 4 peds in it etc?
    Perhaps it might be possible to replace those vehicles with dispatch vehicles & use their name in 'dispatch.meta' to achieve a x4 ped capability in more than just the 'fbi'.



  • @a63nt-5m1th

    • I don't know other vehicles that spawn with x4 peds in it, but I tried firetruk, by simply adding 'FLAG_LAW_ENFORCEMENT', and only x2 peds spawned in it.
      The funny part tho, is that the firetruk's were trying to kill me with water :D

    • I couldn't dispatch any other car than fbi2 on DT_SwatAutomobile, and I thought about the fbi replacement, that worked simply by keeping the 'fbi' name but changing the car files. I did the same for fbi2, and I can now spawn any other car on DT_SwatAutomobile dispatch category, by simply keeping fbi2 as the name of the car. Thing is, only x1 ped spawn at a time in these fbi2 cars tho !



  • @epoqx said in 4x seats vehicles useable by AI dispatch:

    trying to kill me with water

    So the RCV Riot2 is a dispatch option then (or this (has water cannon also) etc):

    Riot Water Cannon

    I wonder how many other vehicle name etc based constraints or hidden functionality GTA V has?

    Nothing to do with dispatch, but I know you can get rid of the muscle car wheelie functionality Rockstar added at the end of 2018 by changing 'vehicles.meta':

          <vehicleClass>VC_MUSCLE</vehicleClass>
    

    to any other class.

    The reverse is probably true as well, set a vehicle as vehicleClass 'VC_MUSCLE' & it probably acquires the ability to do wheelies automatically.



  • @a63nt-5m1th said in 4x seats vehicles useable by AI dispatch:

    Nothing to do with dispatch, but I know you can get rid of the muscle car wheelie functionality Rockstar added at the end of 2018 by changing 'vehicles.meta'.

    That is always good to know :D

    While making some tests around the loadout.meta, i've realised that the dispatched police helicopter contain 4 or 5 peds dispatched on the ground... That could be another vehicle using multiple peds by keeping the name ?

    EDIT :

    So i've made my tests.

    • Any vehicle can be spawn by both 'DispatchType' : DT_SwatHelicopter and DT_PoliceHelicopter.

    • it seems like all the vehicles will spawn with x3 peds in it, maximum. Which is good news.

    • I've tried replacing the textures files of polmav and annihilator to cars, while correcting the datas in vehicle.meta, it does not change nothing, still spawn with x3 peds.

    • the x3 peds for the fbi2 will spawn inside the vehicle.

    • The x2 extra peds seem to always spawn in backseats.



  • @epoqx
    Getting there :slight_smile:, good to know :thumbsup:



  • @a63nt-5m1th Like said there

    I've just tried something for my personnal dispatch, that worked.

    And because the 'dispatch.meta/DispatchType/' 'DT_PoliceHelicopter' can be used for cars instead of helicopters, I replaced the 'VehicleSet' SWAT_HELI_1 in my case, by a new one I've made, with the barrage vehicle in it.

    Then in 'mpchristmas2017///vehicle.meta/barrage', i've edited the layout line from 'LAYOUT_STD_BARRAGE' to 'LAYOUT_STD'

    I've got the barrage being dispatched, with x3 peds in it and 2 of them using both barrage weapons.

    • The thing I noticed, is that the barrage spawns directly from the sky, like an helicopter would, so sometimes they spawn in strange area and cannot reach me. I was trying to search where I could find the coordonates of 'DT_PoliceHelicopter' spawning but I cannot seem to find it... Have any idea ?


  • @epoqx
    Nah, not a clue, but I'll have a look for anything that might relate to it :thumbsup:



  • @a63nt-5m1th
    From 'combattasks.ymt', i've tried to edit the following lines to '0.0' without succes :

    <Item type="CTaskHelicopterStrafe__Tunables">
          <Name>CTaskHelicopterStrafe</Name>
          <FlightHeightAboveTarget value="20"/>  ------------------- { this }
          <MinHeightAboveTerrain value="20"/>  ------------------- { this }
    

    and

    <Item type="CTaskHeliChase__Tunables">
          <Name>CTaskHeliChase</Name>
          <DriftX>
            <MinValueForCorrection value="1.50000000"/>
            <MaxValueForCorrection value="2.00000000"/>
            <MinRate value="0.50000000"/>
            <MaxRate value="0.75000000"/>
          </DriftX>
          <DriftY>
            <MinValueForCorrection value="1.50000000"/>
            <MaxValueForCorrection value="2.00000000"/>
            <MinRate value="0.50000000"/>
            <MaxRate value="0.75000000"/>
          </DriftY>
          <DriftZ>
            <MinValueForCorrection value="1.50000000"/>
            <MaxValueForCorrection value="2.00000000"/>
            <MinRate value="0.50000000"/>
            <MaxRate value="0.75000000"/>
          </DriftZ>
          <MinHeightAboveTerrain value="20"/>  ------------------- { this }
          <SlowDownDistanceMin value="15.00000000"/>
          <SlowDownDistanceMax value="100.00000000"/>
          <CruiseSpeed value="35.00000000"/>
          <MaxDistanceForOrientation value="5.00000000"/>
          <NearDistanceForOrientation value="100.00000000"/>
        </Item>
    

    and

    <Item type="CTaskSearchInHeli__Tunables">
          <Name>CTaskSearchInHeli</Name>
          <FleeOffset value="25.00000000"/>
          <CruiseSpeed value="25.00000000"/>
          <MinHeightAboveTerrain value="20"/>  ------------------- { this }
        </Item>
    

    Seems like it only affects helicopters once they are spawned and not the spawning himself.



  • @epoqx said in 4x seats vehicles useable by AI dispatch:

    2 of them using both barrage weapons

    Sweet :thumbsup:

    I think 'MinHeightAboveTerrain' etc is the minimum height they can fly, ie they are allowed to fly anywhere above that (they swoop down past that sometimes depending on other settings/pilot abiltity/general ped incompetence etc).
    You presumably want to restrict the max height to keep them on the ground (don't know if that setting exists without using a script etc) & yeah, it won't affect the actual spawn point.

    What you are looking for might be hidden in 'vehiclespawning.ysc' or 'am_vehicle_spawn.ysc' (inaccessible atm afaik) or some other in-game script etc.

    GTAV Override [.NET] 1.0.0.14:
    There's a mod (GTAVOverride) that disables all vanilla scripts etc, to create a simple base game that people can then mod & script on top of. It's a WIP atm, but might open GTA V up to a whole new way of modding hopefully :slight_smile: :thumbsup:
    @Konijima said in [WIP] GTAVOverride:

    Kill all Single-Player scripts for sandbox mode or don't if you want to keep single-player story, but you will need to cherry pick your settings.
    (Make the game run smoother for some people and allow replacement of base game features.)

    If the community realise it's potential, the possiblities for mod creation & in-game functionality are endless. :thumbsup:



  • Thanks for the answer, i'll probably keep my working vehicles even if sometimes they fall from the sky!

    I'll keep a look on GTAV Override [.NET] 1.0.0.14 ! Thanks for the information tho ;)


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.