Jump to content

Ponton bridges - help needed


LotusDragon

Recommended Posts

Hello,

I tried to recreate some historic battles along the suez channel and I wanted to set up ponton bridges.

Any ideas if there are some mods which could help here? So far I have found nothing to create ponton bridges.

The only solution I found is to use single helipads. This seems to be the only structure, which I can place on the water.

Units can even drive on it, but the AI pathfinding does not work here. Just for amphibious units it is possible that they also drive over the immersed helipads accidentaly, while driving through the water.

  • Like 2
Link to comment
Share on other sites

  • 2 weeks later...

In order to make AI vehicles pass through water, you have to add this line:

canSwim = true,

or/and

canWade = true,

to the GT_t.CH_t.[vehicle name] table in the vehicle's database.lua (which means that you can edit only mods, not dcs vanilla vehicles)

In regards to static objects, you can make them position on water by having these lines:

SeaObject    =     true,
 isPutToWater =  true,
 positioning  =     "YES",
 classname    =  "lOilPlatform",

in the table that defines the object in the database.lua

example:

local function add_structure(f)
    if(f) then
        f.shape_table_data =
        {
            {
                file          = f.ShapeName,
                life        = f.Life,
                username    = f.Name,
                desrt       = f.ShapeNameDestr or "self",
                classname     = f.classname   or "lLandVehicle",
                positioning = f.positioning or "BYNORMAL"    --available: {"BYNORMAL", "ONLYHEIGTH", "BY_XZ", "ADD_HEIGTH"}
            }
        }
        if f.ShapeNameDestr then
            f.shape_table_data[#f.shape_table_data + 1] =
            {
                name  = f.ShapeName,
                file  = f.ShapeNameDestr,    
            }
        end
        
        
        --f.mapclasskey = "P0091000076";
        f.attribute = {wsType_Static, wsType_Standing} -- if 'attribute' == nil then insertion will be aborted
        
        add_surface_unit(f)
        GT = nil;
    else
        error("Can't add structure")
    end;
end

add_structure({
    Name          =  "myPontoon",
    DisplayName  = _("Pontoon"),
    ShapeName     =   "myPontoon",
    Life         =  1000,
    Rate         =  100,
    category     =  'Fortification',
    SeaObject    =     true,
    isPutToWater =  true,
    positioning  =     "YES",
    classname    =  "lOilPlatform",
    })

 

  • Like 2
Link to comment
Share on other sites

I created a tank which will deploy a pontoon bridge.

 

 

  • Like 2
  • Thanks 1

"Yeah, and though I work in the valley of Death, I will fear no Evil. For where there is one, there is always three. I preparest my aircraft to receive the Iron that will be delivered in the presence of my enemies. Thy ALCM and JDAM they comfort me. Power was given unto the aircrew to make peace upon the world by way of the sword. And when the call went out, Behold the "Sword of Stealth". And his name was Death. And Hell followed him. For the day of wrath has come and no mercy shall be given."

Link to comment
Share on other sites

Yes, use it like a cannon.

Fire at point.

Do not make the point too far away or it may not deploy.

Takes a bit of experimentation to get it right.

Sadly, the bridge can not be left behind.

I am not sure how to go about doing this,

If I make it a weapon, it will explode, destroying the tank! LOL

Need to think on that.

And  have the bridge do bridge duties!

Allow any vehicle to traverse it.

If you could drive across that is the goal

Makes river crossings a thing!

  • Like 2

"Yeah, and though I work in the valley of Death, I will fear no Evil. For where there is one, there is always three. I preparest my aircraft to receive the Iron that will be delivered in the presence of my enemies. Thy ALCM and JDAM they comfort me. Power was given unto the aircrew to make peace upon the world by way of the sword. And when the call went out, Behold the "Sword of Stealth". And his name was Death. And Hell followed him. For the day of wrath has come and no mercy shall be given."

Link to comment
Share on other sites

Found this model on Sketch Fab.

Came without any textures.

But THIS is what we are looking for!

Early look.

WIP

So far, no vehicle will use it.

We will see what can be done.

Stay tuned!

Screen-230724-002706.jpg

Screen-230724-002709.jpg

Screen-230724-002710.jpg

 

 

 

  • Like 4

"Yeah, and though I work in the valley of Death, I will fear no Evil. For where there is one, there is always three. I preparest my aircraft to receive the Iron that will be delivered in the presence of my enemies. Thy ALCM and JDAM they comfort me. Power was given unto the aircrew to make peace upon the world by way of the sword. And when the call went out, Behold the "Sword of Stealth". And his name was Death. And Hell followed him. For the day of wrath has come and no mercy shall be given."

Link to comment
Share on other sites

10 minutes ago, Hawkeye60 said:

...So far, no vehicle will use it... 

  ( AI or human ? )

IMHO, just made/add a simple double-sided collision model as a roadway of the bridge (from the original 3D model) :idea:

 


Edited by NRG-Vampire
  • Like 1

sign-pic4.jpg

Link to comment
Share on other sites

@Hawkeye60that would be great to have a working bridge. 

With the M60 Bridetank I have the problem, that it does not stay unfolded on the suez channel. I trigger the animation with fire at point and its constantly folding/unfolding. Maybe the water is too large and it needs to reach the bank?

Link to comment
Share on other sites

You may have placed the fire at point location too far away.

It is tricky to get right.

Let me see about getting the pontoon bridge above working for river/canal  crossings.

 

  • Like 1

"Yeah, and though I work in the valley of Death, I will fear no Evil. For where there is one, there is always three. I preparest my aircraft to receive the Iron that will be delivered in the presence of my enemies. Thy ALCM and JDAM they comfort me. Power was given unto the aircrew to make peace upon the world by way of the sword. And when the call went out, Behold the "Sword of Stealth". And his name was Death. And Hell followed him. For the day of wrath has come and no mercy shall be given."

Link to comment
Share on other sites

Try this.

I still see the ai avoiding it and driving around.

But see if using CA you can drive across.

I added a collision shell and damage code to match.

I also added a wooden version for WWII

Up-dated the textures as well.

Do not get wet!😄

https://www.dropbox.com/scl/fi/g9onsydbxms9dsmqbnq1f/Pontoon-Bridge-V1.0.zip?rlkey=u1v9v4abzfbcf08po446q0txl&dl=0

Screen-230726-230126.jpg

Screen-230726-230037.jpg

Screen-230726-230043.jpg

 

 

 

Screen-230726-230120.jpg

  • Like 1
  • Thanks 2

"Yeah, and though I work in the valley of Death, I will fear no Evil. For where there is one, there is always three. I preparest my aircraft to receive the Iron that will be delivered in the presence of my enemies. Thy ALCM and JDAM they comfort me. Power was given unto the aircrew to make peace upon the world by way of the sword. And when the call went out, Behold the "Sword of Stealth". And his name was Death. And Hell followed him. For the day of wrath has come and no mercy shall be given."

Link to comment
Share on other sites

1 hour ago, Hawkeye60 said:

...I still see the ai avoiding it and driving around...

Unfortunately AI is not smart enough to discover and use later-added bridges.  Needs predefined RoadNetwork/Routes (files) 😬


Edited by NRG-Vampire
  • Like 2

sign-pic4.jpg

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...