Crashbreaker Posted April 13, 2023 Report Share Posted April 13, 2023 So i was inspired by the LA Mod having a Fighter that can heal and fight fire, though i was thinking of if i could make a firefighter paramedic as a unit but for the main game. is it possible? P.S i heard if a firefighter paramedic heals without a medic bag it can fully heal a injured person and you don't need to heal them again. and would be unaffected by any damages including fire and chemicals. 1 Quote Link to comment Share on other sites More sharing options...
Rescue742Fan Posted April 13, 2023 Report Share Posted April 13, 2023 20 hours ago, Crashbreaker said: So i was inspired by the LA Mod having a Fighter that can heal and fight fire, though i was thinking of if i could make a firefighter paramedic as a unit but for the main game. is it possible? P.S i heard if a firefighter paramedic heals without a medic bag it can fully heal a injured person and you don't need to heal them again. and would be unaffected by any damages including fire and chemicals. Just add the heal command to the unit and edit its traits. No need to do anything crazy Quote Link to comment Share on other sites More sharing options...
Crashbreaker Posted April 15, 2023 Author Report Share Posted April 15, 2023 and what about having them to appear as a extra unit like be used in ems vehicles and that perma heal (FF paramedic heal without bag) thing. Quote Link to comment Share on other sites More sharing options...
Rescue742Fan Posted April 15, 2023 Report Share Posted April 15, 2023 7 hours ago, Crashbreaker said: and what about having them to appear as a extra unit like be used in ems vehicles and that perma heal (FF paramedic heal without bag) thing. You would need to edit the unit.xml to allow for the person to be available for use. Quote Link to comment Share on other sites More sharing options...
Crashbreaker Posted April 17, 2023 Author Report Share Posted April 17, 2023 got a example? does it have to be a vehicle? Quote Link to comment Share on other sites More sharing options...
Rescue742Fan Posted April 17, 2023 Report Share Posted April 17, 2023 45 minutes ago, Crashbreaker said: got a example? does it have to be a vehicle? I'm not sure Quote Link to comment Share on other sites More sharing options...
amuchalipsis Posted April 18, 2023 Report Share Posted April 18, 2023 On 4/13/2023 at 2:54 AM, Crashbreaker said: So i was inspired by the LA Mod having a Fighter that can heal and fight fire, though i was thinking of if i could make a firefighter paramedic as a unit but for the main game. is it possible? P.S i heard if a firefighter paramedic heals without a medic bag it can fully heal a injured person and you don't need to heal them again. and would be unaffected by any damages including fire and chemicals. It is possible. Since you had the idea from the LA Mod, you can check and edit its scripts files. Both LAHeal and LAStabilize are used for firefighters, depending on if they're paramedics or EMTs, respectively. Additionally, you must change: LAGetEMTBag, so firefighters can get the medic bags. LAEquipmentCommands and RemoveEquipment, to remove/add commands when they get/remove equipment. heal, since they added a condition to check if FF-PMs have equipped or not the medic bag. On 4/15/2023 at 6:02 PM, Crashbreaker said: and what about having them to appear as a extra unit like be used in ems vehicles and that perma heal (FF paramedic heal without bag) thing. For that, you must edit the vehicles unit.xml. But bear in mind that since you're trying to add a FF type unit to a medic vehicle, you'll need to change the entercar.script to make them able to enter the vehicle again. Otherwise, once you make the FFs out of the vehicle, they'll not be able to enter it again. As for the perma-heal, it's made using this: SetInjuredLifeDrain(0.0f) Look for it in the LAHeal and LAStabilize scripts. Quote Link to comment Share on other sites More sharing options...
Crashbreaker Posted April 18, 2023 Author Report Share Posted April 18, 2023 So how do i get the emt bag? i was wanting to use the vanilla one. And how do i make the unit.xml for the FF paramedic? Btw, how do i assign a icon and others. and I want to edit a texture to make it a recolor Quote Link to comment Share on other sites More sharing options...
amuchalipsis Posted April 19, 2023 Report Share Posted April 19, 2023 (edited) On 4/18/2023 at 9:38 PM, Crashbreaker said: i was wanting to use the vanilla one. Then simply delete the model of LA Mod's EMT bag that is found in Models\Objects\Equipment. On 4/18/2023 at 9:38 PM, Crashbreaker said: And how do i make the unit.xml for the FF paramedic? Well, first off, you should know the basics of XML: how to open and close tags and how to keep everything 'in place' so that the game properly understands its content. There are plenty of basic tutorials if you search on Google, no need to know everything. That said, I'll set a basic example. Let's suppose I want to add the FF-EMT to the EMS car. What I should do is check the unit's ID found on the unit.xml inside a Personnel subfolder. <unit id="FF_EMT"> Then you search the vehicles unit.xml and add this line inside the personnel tag, if you want a FF-EMT to be inside the vehicle by default: <unit id="FF_EMT"> <defaultcount value="1" /> </unit> Or this one if you don't want any FF-EMT inside the vehicle by default: <unit id="FF_EMT" /> On 4/18/2023 at 9:38 PM, Crashbreaker said: how do i assign a icon Icons are configured in Specs/portraits.xml, and inside the unit's folder that contains the unit.xml file. To continue with the FF-EMT example, if you search in portraits.xml, you'll find a line like this: <portrait prototype="mod:Prototypes/Persons/02 LA Fire Department/ff_emt.e4p" big="norm" unit="FF_EMT" text="FF_EMT"/> Each attribute has its own use and meaning: prototype points to the unit's prototype. big refers to the .dds files found on the unit's folder. unit refers to the unit's ID, that I've explained earlier. text uses an ID for adding the unit's name and description for some files inside the Lang folder. To dig a bit deeper on the big attribute, it's best explained when using units that have two prototypes inside unit.xml. This is the case for the LAPD officer, and the SAR dog leader. <portrait prototype="mod:Prototypes/Persons/01 LA Ambulance/usar_leaderrescuedog.e4p" big="norm" unit="DOGLEADER" text="DOGLEADER"/> <portrait prototype="mod:Prototypes/Persons/01 LA Ambulance/usar_rescuedog.e4p" big="dog" unit="DOGLEADER" text="DOG"/> <portrait prototype="mod:Prototypes/Persons/03 LA Police/lapd_officer_m.e4p" big="male" unit="LAPD_OFFICER" text="LAPD_OFFICER"/> <portrait prototype="mod:Prototypes/Persons/03 LA Police/lapd_officer_f.e4p" big="fem" unit="LAPD_OFFICER" text="LAPD_OFFICER"/> Notice how the pairs of lines share the same unit's ID, but the big attribute is different, to search differently named .dds files. On 4/18/2023 at 9:38 PM, Crashbreaker said: I want to edit a texture to make it a recolor Retexturing is not my forte. There are good tutorials here. Edited April 19, 2023 by amuchalipsis Formatting Quote Link to comment Share on other sites More sharing options...
Crashbreaker Posted May 22, 2023 Author Report Share Posted May 22, 2023 what about the entercar.script? Quote Link to comment Share on other sites More sharing options...
amuchalipsis Posted May 23, 2023 Report Share Posted May 23, 2023 I think this script I've made will make all squad vehicles enterable for most units. I've not tested it, though. entercar.script Quote Link to comment Share on other sites More sharing options...