Welcome Guest ( Log In / Register ) |
Quick Lists Top RatedTutorials Living World Map G… Ultimate beginner'… Arrow scaling bug… Raising Heroes max… Proper Fire Arrow… Creating an asset.… Simple Structure B… Making a simple Ma… Quick and easy sno… Making patrols nea… Mods The Dwarf Holds The Peloponnesian… RJ - RotWK The Elven Alliance… Helm's Deep Last H… The Elven Alliance Special Extended E… Kings of the West… RC Mod The Wars of Arda Downloads BFME1 1.06 Widescr… Enhanced W3D Impor… Fudge's Map Pack LotR/BfME HD Logos Osgiliath Shellmap Crystals Of Ancien… 2v1 Wold The forests of Dru… Converted BFME2 an… ROTWK animations f… |
|||||||||||||||||||||||||||||||||||||
Register and log in to move these advertisements down Tunnel LogicTutorial for BFME
Tunnel Logic Written by: Grim Thanks to: Hostile for his brillant ideas, his courage and advice. T3A staff and members for their support. The purpose of this tutorial is to give a building object a tunnel network ability. Be ware that the code isn't developped for BFME specificly, it comes from C&C Generals and it has some restrictions: -Entering units will be instantly full healed. -No filter for entering units, anything can enter the tunnel. -Horde logic does not count, so when a horde goes in the tunnel, it will spread into individuals, and while exiting the tunnel, they will remain as individuals. We will see one alternative solution for the horde problem with an example: The Tunnel Guide. But first: 1) Give a building the tunnel Behavior: Go in your building object code, and add this:
Now any friendly unit can go in the building. To set the number of units max can enter the tunnel, go into gamedata.ini and modify the line:
To make them able to go out, we have to add a evacuate button into the commandset of our building, and exitgarrison button to see what's in:
If you have set the MaxTunnelCapacity high, you would probably like to hide the ExitGarrison buttons while empty. To do so, go in commandbutton.ini, find Command_ExitGarrison and add HIDE_WHILE_DISABLED to the options like that:
Now your tunnel network is ready to work. If you build multiple buildings of that type over the map, you will be able to make a unit enter one and go out from another. But remember, if a horde goes in, it will spread into individuals.>Here's an alternative solution i worked on: use a horde transport container object to carry your hordes through the tunnel network. As i was doing a dwarven faction, I made him a dwarf mine guide. 2) Alternative solution for horde problem - The Dwarf mine guide. First, you have to build or use a mobile single unit. I built a dwarf named Dwarf mine guide. Then you have to give him the HordeTransportContain behavior, just add this into his object code:
You can tune this how you want. This is one of the interests of the transition container. Now, to allow hordes to exit the container/mine guide, we have to add a new button in commandbutton.ini:
Then add it to the container/mine guide's commandset:
That's all! Now you have a character unit able to transport/guide your hordes through the tunnel. You just have to make your horde go into it/him, move the container/guide through the tunnel, and when out use the exit button to make the horde go out in one piece. This is all for the tutorial. If you have questions or suggestions go to the main forum and ask. Keep in mind the tunnel behavior is not made for BFME so it's far from perfect, but it can still allow nice possibilities. Credits
CommentsDisplay order: Newest first Hostile (Administrator) - Tuesday March 31, 2009 - 16:24 Nothing really, but the horde will end up lost and come out as individuals. Not much more to add. CNCM_BLITZ - Friday October 12, 2007 - 8:23 Would it make any difference if the tunnel logic was made as an upgrade, or a building add-on. Is that even possible? In other games I have used add-ons to bypass problems and perhaps if the base building has the object filter, and the add-on has tunnel logic they might work together. Bart (Administrator) - Wednesday April 4, 2007 - 8:42 unfortunately nothing, as the passenger filter doesn't work JEV3 - Tuesday April 3, 2007 - 20:55 Ok, that is pretty cool, but what is to stop the player from putting hordes directly into the tunnel instead of into the dwarf... |
|||||||||||||||||||||||||||||||||||||
"One site to rule them all, one site to find them, © All Rights Reserved Eric Edwards ©2013. |