Jump to content
The Loot

Limited Water Supply Tutorial: Add Hoppah's Script To Your Mod

Recommended Posts

At the request of another user, I have written a quick tutorial for integrating Hoppah's "Limited Water Supply" Mod. At the moment, it only covers the non-scripting parts; Setting Up Vehicles and the Map.

Step One: Setting Up Vehicles
Before you do anything, if you have engines based on the NY/LA mods (deck gun combined with hose connections), make a copy of the prototype. It can save you some work.
First thing to do is to make sure your vehicle type (under traits) is set to Firefighters GTF (Ladder vehicles don't need to be changed, only engines).
Second, make sure the only Superstructure parts (under "Edit Children") are four hose connectors (named "connector0", "connector1", "connector2", and "connector3"). Do this only for non-Ladder vehicles.

1.jpg.b19a13643c52ee5db30bfefa68060bbe.jpg
Next, to set up the supply line connector. Go under "Edit Children -> Edit Childs", add another hose connector where you prefer on the vehicle, and name it "water_supply". It's the only modification needed for "Firefighters DLK" (Ladders) at the moment.


Lastly, if your vehicle has them, remove the commands Extinguish, Cool, and WaterOn (these are not needed with the new deck gun script that shall be covered later).

Step Two: Setting Up People
The only changes you may need to make to your personnel is to add the commands "attachfirehose", "detachfirehose", and "dropequipment" if they do not already have them.

Step Three: Setting Up Deck Gun Dummies
First thing to do is add a few things to your normal vehicles. Under ""Edit Children -> Edit Childs"", first add the preferred deck gun object at whatever position you want, and name it "cannon". You may need to make new prototypes using the cannon model and place them in the "MOD\Prototypes\Objects\03 Objects" folder.


Just behind the cannon, place another object (using the golf ball object works well), name it "controller", and hide it just inside the vehicle. This is where the person will appear when using the deck gun.


Now, clone a new vehicle prototype and name it something like "Engine Cannon" (Instead of a new prototype, you can use the copies you made of your old vehicle).
Remove all Superstructure parts and children except for the deck gun, which must be named "cannon". Compare the placement to the cannon on the other vehicle and move as needed so they line up.


Change vehicle type to TLF (or LPF for more powerful cannon).
Change vehicle model to something small (the golf ball model works well again).
Deck gun prototype should now be set up.

Step Four: Edit Vehicle Model File
Open your vehicles V3O file in Notepad, and at the very bottom add the following lines:

M, activate0, 1M, deactivate0, 1

Those are dummy animations used by the deckgun script. If the file opens as gibberish, you'll need to unpack the model file (load the mod in editor, select Unpack File from mod menu, browse and open the correct file).

Step Five: Setting Up Freeplay Map
Only step is to add an object somewhere on the map named "water_supply_main". Make sure it's out of the way, and maybe an object that uses the "indestructible" material so it won't catch on fire.

 

Link to comment
Share on other sites

The very first version of the logic was made for the US Army Mod. Decided to do a public release of the limited water with this demo mod as the result. The newest version of the army mod will contain the limited water as well as a ton of other new features. 

Link to comment
Share on other sites

When do you think the scripting part is going to be ready, and im going to give this a try tonight when i get my laptop so hopefully it goes well.

You can use the current version of the script now; just download and install using the directions Hoppah provided. Hoppah does not have an estimated release date as of yet, so I would recommend doing this, unless you wanna wait

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...