Jump to content

Archangel flight distance reloaded


xyks

Recommended Posts

Hi guys,

 

I had a comparable post a while back, but I couldnt find it anymor. Ayway here's the deal:

 

I love the Archangel armor, I just wish the flight would be a little more useful in terms of mobility. I mean even with the grapnel hook can sometimes cover travel bigger distances than a jetpack action. So what I would like to do is to increase the movement during flight mode (not a general movement bonus) and possibly add two more fuel cells. Is that possible by now?

Edited by xyks
Link to comment
Share on other sites

More fuel is easy on the Armors=( ABILITIES[0]=eAbility_Fly, <snip> strName="", iType=eItem_ArmorArchangel, <snip>, iFlightFuel=6, <snip> ) line in the DGC.ini change iFlightFuel=6 to whatever number you want.

 

A Mobility Bonus that only apples while flying is not something I know how to do.

Link to comment
Share on other sites

Ii can't say definitively, but in vanilla EW it feels like Archangel Armor did get a boost to pathlength only while flying.

 

I rooted around to see if I could find some code that would be responsible, and found:

                if((IsMine()) && IsFlying())
                {
                    SetDashing(false);
                    SetPathLength((GetMaxPathLength()) * 2);
                }
                else
                {
                    SetPathLength(GetMaxPathLength());
                }

in XGUnit.state'Active'.AddPathAction. I think this is increasing the path length while flying, but I'm not sure and the numbers don't quite feel right.

 

It might be worth tweaking the value to something really high (like 50) to make the effect really obvious to see.

Link to comment
Share on other sites

Ii can't say definitively, but in vanilla EW it feels like Archangel Armor did get a boost to pathlength only while flying.

 

I rooted around to see if I could find some code that would be responsible, and found:

                if((IsMine()) && IsFlying())
                {
                    SetDashing(false);
                    SetPathLength((GetMaxPathLength()) * 2);
                }
                else
                {
                    SetPathLength(GetMaxPathLength());
                }

in XGUnit.state'Active'.AddPathAction. I think this is increasing the path length while flying, but I'm not sure and the numbers don't quite feel right.

 

It might be worth tweaking the value to something really high (like 50) to make the effect really obvious to see.

 

Thanks for the replies guys. Taking my first babysteps on XCom-Modding here. So I'm afrad you will have to go a little more into detail for me. In which config do I have to look it up? The only mention of XGUnit I found was in XComGame.cfg with this:
[XComGame.XGUnitFlyingRing]
m_fSweepDistancePerSecond=300.0f
m_fTimeToDelay=4.0f

More fuel is easy on the Armors=( ABILITIES[0]=eAbility_Fly, <snip> strName="", iType=eItem_ArmorArchangel, <snip>, iFlightFuel=6, <snip> ) line in the DGC.ini change iFlightFuel=6 to whatever number you want.

 

A Mobility Bonus that only apples while flying is not something I know how to do.

 

Thatsa good start already thanks :smile:

Edited by xyks
Link to comment
Share on other sites

  • Recently Browsing   0 members

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