[BUG] 0 mass wreck gives 50% rebuild

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

[BUG] 0 mass wreck gives 50% rebuild

Postby ZLO_RD » 16 Jan 2014, 04:22

If you try TML cyb T2 mex with cyb T2 TML, it leaves wreck with 0 mass in it, but if you try rebuild it will start from 50%

Edit: looks like it work for all destroyed structures, you can rebuild on them starting with 50% no matter how much overkill there were, unless you try to reclaim before rebuild
Attachments
1757242-RA_ZLO.fafreplay
(13.46 KiB) Downloaded 46 times
http://www.youtube.com/user/dimatularus
http://www.twitch.tv/zlo_rd
TA4Life: "At the very least we are not slaves to the UI"
User avatar
ZLO_RD
Supreme Commander
 
Posts: 2265
Joined: 27 Oct 2011, 13:57
Location: Russia, Tula
Has liked: 303 times
Been liked: 400 times
FAF User Name: ZLO

Re: [BUG] 0 mass wreck gives 50% rebuild

Postby FunkOff » 16 Jan 2014, 06:58

I haven't looked at the code, but instead of making the wreck worth 1 mass, why not reduce it's health to 1%?

This will still make the wreck worthless, but it'll also cut the rebuild bonus to like half a percent.
FunkOff
Supreme Commander
 
Posts: 1863
Joined: 26 Aug 2011, 17:27
Has liked: 14 times
Been liked: 43 times
FAF User Name: FakeOff

Re: [BUG] 0 mass wreck gives 50% rebuild

Postby FunkOff » 16 Jan 2014, 07:00

Okay, I looked at the code and I see the problem. In the function unit.CreateWreckageProp = function( self, overkillRatio ), change this:
Code: Select all
            prop:SetMaxHealth(bp.Defense.Health)
            prop:SetHealth(self, bp.Defense.Health * (bp.Wreckage.HealthMult or 1))


to this:
Code: Select all
         #prop:SetMaxHealth(bp.Defense.Health)
            prop:SetHealth(self, bp.Defense.Health * (bp.Wreckage.HealthMult or 1))


Bam, problem solved with 1 character of difference.
FunkOff
Supreme Commander
 
Posts: 1863
Joined: 26 Aug 2011, 17:27
Has liked: 14 times
Been liked: 43 times
FAF User Name: FakeOff

Re: [BUG] 0 mass wreck gives 50% rebuild

Postby ZLO_RD » 08 Feb 2014, 15:28

Cool, hope it will work, I came here to suggest make TML damage over time 3000 every 0.1 xD, it would fix stuff at least for t2 mex
http://www.youtube.com/user/dimatularus
http://www.twitch.tv/zlo_rd
TA4Life: "At the very least we are not slaves to the UI"
User avatar
ZLO_RD
Supreme Commander
 
Posts: 2265
Joined: 27 Oct 2011, 13:57
Location: Russia, Tula
Has liked: 303 times
Been liked: 400 times
FAF User Name: ZLO


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest