Jump to content


Photo

Vehicle stats?


  • Please log in to reply
23 replies to this topic

#1 Robin Uppgren

Robin Uppgren

    Firefighter

  • Members
  • 18 posts
  • Gender:Male
  • Location:Sweden

Posted 29 November 2014 - 11:59 AM

Hey all you emergency ppl! I've got an issue with the medical vehicles, i want to be able to send paramedics and an emergency doctor in the medic van. Right now you can only send paramedics and emergency doctors in two separate vehicles.

 

So i want the medic van to work like the medic heli, where you can have both paramedics and emergency doctors. I think emergency 4 had medic vans like that.

 

Any idea of where should start looking? :)



#2 Unit 42

Unit 42

    Battalion Chief

  • Members
  • 897 posts
  • Gender:Male
  • Location:Virginia, USA
  • Interests:Music. Learning how to mod with 911FR. Training to be a firefighter

Posted 29 November 2014 - 10:06 PM

I believe you would have to add that via script or something. im not sure


Posted Image
Anime....that is all.

#3 Miercolini

Miercolini

    Captain

  • Members
  • 180 posts
  • Gender:Male
  • Location:NYC

Posted 30 November 2014 - 04:28 AM

I managed to get the ambulance to spawn with both, but so far I have encountered a problem of the doctor not going back into the ambulance. 


Posted Image


#4 Blackout

Blackout

    Captain

  • Members
  • 200 posts
  • Gender:Male
  • Location:Canada

Posted 30 November 2014 - 05:19 AM

Where were you able to edit that?


Harbor City 5 in development!


#5 Miercolini

Miercolini

    Captain

  • Members
  • 180 posts
  • Gender:Male
  • Location:NYC

Posted 30 November 2014 - 05:29 AM

C:\Program Files (x86)\Steam\SteamApps\common\Emergency 5\data\em5\gamedata\em5_order_info\ambulance


Posted Image


#6 Robin Uppgren

Robin Uppgren

    Firefighter

  • Members
  • 18 posts
  • Gender:Male
  • Location:Sweden

Posted 30 November 2014 - 05:43 PM

ah interesting, i'll investigate :)



#7 Robin Uppgren

Robin Uppgren

    Firefighter

  • Members
  • 18 posts
  • Gender:Male
  • Location:Sweden

Posted 30 November 2014 - 05:57 PM

I figured it out. Edit the file ambulance_rtw.json.

 

You need to add "Doctor" : "1" to the "StartPersonnel" section. Then change PersonnelSpace to 2.

 

 

The whole file:

 

{
    "Format":
    {
        "Type": "em5_order_info",
        "Version": "1"
    },
    "OrderInfo":
    {
        // RTW Rettungstransportwagen (ambulance car)
        "RTW":
        {
            "Prefab": "em5/prefab/vehicle/ambulance_rtw",    // Prefab asset name
            "AvatarIcon": "ambulance_rtw",
            "SelectionIcon": "ambulance_rtw",
            "MiniMapIconType": "AmbulanceVehicle",
            "LocalizedName": "ID_NAME_RTW",
            "OrderDepartment": "Ambulance",
            "OrderCost": "10",
            "OrderSpeed": "10",
            "UnlockCost": "0",
            "NumberAvailable": "5",
            "PersonnelSpace": "2",
            "StartPersonnel":
            {
                "Doctor" : "1",
                "Paramedics" : "1"
            },
            "PassengerSpace": "1",
            "HelpPages":
            [
                "TUTORIAL_HELPTEXT_BACK_TO_HQ_RTW",
                "TUTORIAL_HELPTEXT_EXIT_RTW"
            ]
        }
    }
}
 



#8 Mmore

Mmore

    Firefighter

  • Members
  • 18 posts

Posted 30 November 2014 - 06:03 PM

I just figured out the same thing. Added some commentary in the JSON file to make it more clear where changes happened;

http://justpaste.it/i828



#9 Robin Uppgren

Robin Uppgren

    Firefighter

  • Members
  • 18 posts
  • Gender:Male
  • Location:Sweden

Posted 30 November 2014 - 06:03 PM

Weird, for some reason he is not avaible to enter the vehicle again if he just treated someone.



#10 Mmore

Mmore

    Firefighter

  • Members
  • 18 posts

Posted 30 November 2014 - 06:14 PM

Its an issue with the doctors equipment I think, he seems to try and put it in the ambulance and then can't get in any more. Same with a doctor spawned from a regular doctors vehicle, he can't get into the ambulance. I pressume because he can't drop his bag off in the ambulance?



#11 mlovetto22

mlovetto22

    Firefighter

  • Members
  • 20 posts

Posted 01 December 2014 - 07:53 AM

maybe making "passenger space: 2" or "personnelspace: 2" would do it?



#12 NNA

NNA

    Firefighter

  • Members
  • 24 posts
  • Gender:Male
  • Location:Norway
  • Interests:Norwegian Red Cross

Posted 01 December 2014 - 10:29 AM

What about having a look at the air ambulance scripts?
Should find the right line in there, as it's doing the exact things you want the ambulance to do with the doctor.
I'm at work, so unable to have a look at it myself, but just a thought.

#13 Robin Uppgren

Robin Uppgren

    Firefighter

  • Members
  • 18 posts
  • Gender:Male
  • Location:Sweden

Posted 01 December 2014 - 11:36 AM

Gonna check it out, i got it to work by adding another door in the prefab file. It works, but the paramedics enter/exit in the front now.



#14 Robin Uppgren

Robin Uppgren

    Firefighter

  • Members
  • 18 posts
  • Gender:Male
  • Location:Sweden

Posted 01 December 2014 - 02:16 PM

I got it to work for reals now :D

 

What i did:

 

I edited "Emergency 5\data\em5\gamedata\em5_order_info\ambulance\ambulance_rtw.json" --- see above

 

I loaded the ambulance in the editor for easier editing.

 

Changed the front right door to a DOOR_EQUIPMENTRIGHT.

Changed the offset for the back left door.

 

I think the doctor couldnt enter again because the offset was to far away from the ambulance, the paramedics are a longer unit so it wasnt a problem for them. So the doctor walks away to enter.

 

Now it's solved though. I havent got the time to explain right now, work awaits!

 

Just ask if you want to know something specific.



#15 DavidPhilp

DavidPhilp

    Lieutenant

  • Members
  • 36 posts

Posted 01 December 2014 - 04:55 PM

Hey guys been following your thread and used the code above to edit the ambulance file. I don't understand enough of modelling to edit the ambulance any further to solve the issue. Could you explain? Or better yet, provide a file with the above fixes to the ambulance? Thanks for all your efforts!



#16 Robin Uppgren

Robin Uppgren

    Firefighter

  • Members
  • 18 posts
  • Gender:Male
  • Location:Sweden

Posted 01 December 2014 - 07:37 PM

Hey guys been following your thread and used the code above to edit the ambulance file. I don't understand enough of modelling to edit the ambulance any further to solve the issue. Could you explain? Or better yet, provide a file with the above fixes to the ambulance? Thanks for all your efforts!

Yo, ill post some files and instructions soon. Gotta eat something :)



#17 Robin Uppgren

Robin Uppgren

    Firefighter

  • Members
  • 18 posts
  • Gender:Male
  • Location:Sweden

Posted 01 December 2014 - 07:58 PM

Drag the "data" folder into the folder "x:\steam\SteamApps\common\Emergency 5\" and replace the existing stuff :)

 

if it doesnt ask you to replace the files you may have done something wrong.

 

Remember to backup kids!

These are the files that will be replaced!:

 ----> x:\steam\SteamApps\common\Emergency 5\data\em5\gamedata\em5_order_info\ambulance\ambulance_rtw.json

 ----> x:\steam\SteamApps\common\Emergency 5\data\em5\content\prefab\vehicle\ambulance_rtw.json

 

 

 

FILE:

Attached Files



#18 Mmore

Mmore

    Firefighter

  • Members
  • 18 posts

Posted 01 December 2014 - 09:49 PM

Brilliant! Thank you :) Might want to move this towards the mod forum now?



#19 DavidPhilp

DavidPhilp

    Lieutenant

  • Members
  • 36 posts

Posted 01 December 2014 - 10:46 PM

Thanks Robin! Appreciate your work on the ambulance fix!



#20 topfuzz

topfuzz

    Senior Captain

  • Members
  • 290 posts
  • Gender:Male
  • Location:Orlando,Florida

Posted 02 December 2014 - 01:54 AM

It works! Thank you! 


SuYN9qK.gif