Forged Alliance Forever Forged Alliance Forever Forums 2014-05-01T02:09:36+02:00 /feed.php?f=42&t=6820 2014-05-01T02:09:36+02:00 2014-05-01T02:09:36+02:00 /viewtopic.php?t=6820&p=72022#p72022 <![CDATA[Re: Hover bomber fix (Completed) w/ download v0.5]]>
rxnnxs wrote:
Thank you for this great work. I am looking forward to the day it will be implemented!



Your welcome!

Statistics: Posted by Resin_Smoker — 01 May 2014, 02:09


]]>
2014-04-25T23:39:16+02:00 2014-04-25T23:39:16+02:00 /viewtopic.php?t=6820&p=71781#p71781 <![CDATA[Re: Hover bomber fix (Completed) w/ download v0.5]]> Statistics: Posted by rxnnxs — 25 Apr 2014, 23:39


]]>
2014-04-11T06:24:03+02:00 2014-04-11T06:24:03+02:00 /viewtopic.php?t=6820&p=70981#p70981 <![CDATA[Re: Hover bomber fix (Completed) w/ download v0.5]]>
The attack ring is a touch odd cause it looks like the bomber isn't centered right, but that's cause the bomber is flying so a land reference (the rings) looks odd.

Statistics: Posted by errorblankfield — 11 Apr 2014, 06:24


]]>
2014-04-09T05:39:35+02:00 2014-04-09T05:39:35+02:00 /viewtopic.php?t=6820&p=70844#p70844 <![CDATA[Re: Hover bomber fix (Completed) w/ download v0.5]]>
I'll re-test the lastest build tomorrow. Let me(us?) know if you need more testing on stuff.

Statistics: Posted by errorblankfield — 09 Apr 2014, 05:39


]]>
2014-04-08T02:32:03+02:00 2014-04-08T02:32:03+02:00 /viewtopic.php?t=6820&p=70778#p70778 <![CDATA[Re: Hover bomber fix (Completed) w/ download v0.5]]>
I love it, Resin did an amazing job on it

Statistics: Posted by rockoe10 — 08 Apr 2014, 02:32


]]>
2014-04-03T20:09:22+02:00 2014-04-03T20:09:22+02:00 /viewtopic.php?t=6820&p=70372#p70372 <![CDATA[Re: Hover bomber fix (Completed) w/ download v0.5]]>
    Made it all but impossible to hover bomb now.
    Bombs show range rings.
    Added the Janus fix.
    Tweaked a few Hit-boxes so they fix the units models.

http://www.mediafire.com/download/c3ybp ... x_v0.5.rar

Enjoy!

Resin

Statistics: Posted by Resin_Smoker — 03 Apr 2014, 20:09


]]>
2014-03-10T21:20:37+02:00 2014-03-10T21:20:37+02:00 /viewtopic.php?t=6820&p=68545#p68545 <![CDATA[Re: Hover bomber fix (Completed) w/ download v0.3]]>
http://www.mediafire.com/download/kpqqw ... x_v0.4.rar

    *Addressed bomber random break off screwing up how well bomber performs in certain situations. (Should see a 20-40% improvement in attack rate)
    *Added an enhanced priority list to each T1 Bombers targeting.

Resin

Statistics: Posted by Resin_Smoker — 10 Mar 2014, 21:20


]]>
2014-03-06T23:09:13+02:00 2014-03-06T23:09:13+02:00 /viewtopic.php?t=6820&p=68175#p68175 <![CDATA[Re: Hover bomber fix (Completed) w/ download v0.3]]> Anyone else have feedback to report?

Resin

Statistics: Posted by Resin_Smoker — 06 Mar 2014, 23:09


]]>
2014-03-06T10:27:44+02:00 2014-03-06T10:27:44+02:00 /viewtopic.php?t=6820&p=68089#p68089 <![CDATA[Re: Hover bomber fix (Completed) w/ download v0.3]]> Shouldn't this go into "useful tools and mods" forum ? (so I could remember to download it this week end when I'm not tired from work :mrgreen: )

edited: just found out it is also already in the "useful tools & mods" forum - irrelevant post

Statistics: Posted by Krapougnak — 06 Mar 2014, 10:27


]]>
2014-03-06T06:34:31+02:00 2014-03-06T06:34:31+02:00 /viewtopic.php?t=6820&p=68067#p68067 <![CDATA[Re: Hover bomber fix (Completed) w/ download]]>
Download Link: http://www.mediafire.com/download/e3uip7tdu571f9r/hover_bomber_fix_v0.3.rar

Code:
------------------------------------------------------------------------------------------
--   File     :  /mods/hover_bomber_fix/hook/lua/defaultunits.lua
--   Author(s):  Resin_Smoker
--   Summary  :  Prevents bomber from firing if they're not moving at least cruising speed
--   Copyright © 2014 All rights reserved.
------------------------------------------------------------------------------------------

do

--> Triggers all logs to report if flag set true, otherwise use the local flags within each function for specific outputs
local masterDebug = true

------------------------------------------------------------------------------------------
-- Air Units
------------------------------------------------------------------------------------------

local oldAirUnit = AirUnit
AirUnit = Class( oldAirUnit ) {

   OnStopBeingBuilt = function( self, builder, layer )
      --> Run old OnStopBeingBuilt first            
      oldAirUnit.OnStopBeingBuilt( self, builder, layer )
      --> Get units BP
      local bp = self:GetBlueprint()
      local myDebug = false
      if myDebug and masterDebug then
         LOG('*** hover_bomber_fix defaultunits.lua, OnStopBeingBuilt ***')
         LOG('   Projectile ID: ', self:GetEntityId() )         
         LOG('   Game time is: ', GetGameTimeSeconds() )
         LOG('   Name: ', bp.General.UnitName )
         LOG('*************************************')                  
      end      
      --> Ensure that unit is winged, has the category "Bomber" and is not the Mercy suicide missile
      if bp.Air.Winged and EntityCategoryContains(categories.BOMBER, self) and bp.General.UnitName != '<LOC daa0206_name>Mercy' then
         if myDebug and masterDebug then
            LOG('   Airunit is a BOMBER')
            LOG('   ')
         end
         --> Setup global flags
         self.IsBomber = true
         self.MyWepEnabled = true
      else
         if myDebug and masterDebug then
            LOG('   Airunit is NOT a bomber')
            LOG('   ')            
         end     
      end
   end,
   
   OnMotionHorzEventChange = function(self, new, old)
      local myDebug = true
      --> Run old OnMotionHorzEventChange first   
      oldAirUnit.OnMotionHorzEventChange(self, new, old)
      --> Does unit still exist 
      if self and not self:IsDead() then
         --> Is unit a bomber, is motion type different from last one reported
         if self.IsBomber and new != old then
            --> Did our bomber start moving again and are the weapons disabled              
            if ( new == 'Cruise' or new == 'TopSpeed' ) and ( old == 'Stopping' or old == 'Stopped' ) and not self.MyWepEnabled and not self.WeaponReactivationFork then
               --> Kick off delay fork
               self.WeaponReactivationFork = ForkThread(self.WeaponReactivationDelay, self, new, old)            
            --> Did our bomber stop moving again and are the weapons enabled               
            elseif ( old == 'Cruise' or old == 'TopSpeed' ) and ( new == 'Stopping' or new == 'Stopped' ) and self.MyWepEnabled then
               --> Kill fork if active
               if self.WeaponReactivationFork then
                  if myDebug and masterDebug then
                     LOG('   Killing WeaponReactivationFork')
                  end                  
                  KillThread(self.WeaponReactivationFork)
                  --> Clear off the global so the event can be used again
                  self.WeaponReactivationFork = nil
               end
               --> Set flag to false      
               self.MyWepEnabled = false
               --> Loop though all weapons                              
               for i = 1, self:GetWeaponCount() do                                         
                  local wep = self:GetWeapon(i)
                  local wepBP = wep:GetBlueprint()                  
                  --> Only disable if weapon is not anti-air
                  if wepBP.WeaponCategory != 'Anti Air' and wepBP.RangeCategory != 'UWRC_AntiAir' then                 
                     wep:SetEnabled(false)
                     if myDebug and masterDebug then
                        LOG('   Bomber is at: ', new, ' from:', old,' DISABLING weapons')
                     end
                  end   
               end                           
            end
         end   
      end             
   end,
   
   WeaponReactivationDelay = function( self, new, old )
      local myDebug = true
      if myDebug and masterDebug then
         LOG('WeaponReactivationDelay')
      end         
      --> Time delay in "ticks" before weapons are set active again. 10 ticks = 1 second. Please do not use setting lower than 5 ticks to help keep the game sync'd during multiplayer
      --> Remember the default ping for all players is at least 500ms or 0.5 seconds or 5 ticks.
      WaitTicks(10)
      if myDebug and masterDebug then
         LOG('   Delay complete...')
      end         
      --> Does unit still exist 
      if self and not self:IsDead() then      
         --> Set flag to true
         self.MyWepEnabled = true
         --> Loop though all weapons
         for i = 1, self:GetWeaponCount() do
            local wep = self:GetWeapon(i)
            local wepBP = wep:GetBlueprint()
            --> Only enable if weapon is not anti-air                  
            if wepBP.WeaponCategory != 'Anti Air' and wepBP.RangeCategory != 'UWRC_AntiAir' then   
               wep:SetEnabled(true)
               if myDebug and masterDebug then
                  LOG('   Bomber is at: ', new, ' from:', old,' ENABLING weapons')
               end
            end                  
         end
      end                        
   end,
   
}
end   


Resin

Statistics: Posted by Resin_Smoker — 06 Mar 2014, 06:34


]]>
2014-03-02T01:33:37+02:00 2014-03-02T01:33:37+02:00 /viewtopic.php?t=6820&p=67568#p67568 <![CDATA[Re: Hover bomber fix (Completed) w/ download]]>
Lame wrote:
what if i try to make a narrow turn and as a result cannot drop a bomb?
this will make bombers a shitload harder to micro in all situations not just effect double bombing

imo it wouldnt make sense that bombs cannot get dropped no matter the speed.


Would not be the case as I've scripted in a few checks to help limit when this is called.

Resin

Statistics: Posted by Resin_Smoker — 02 Mar 2014, 01:33


]]>
2014-03-02T01:10:22+02:00 2014-03-02T01:10:22+02:00 /viewtopic.php?t=6820&p=67565#p67565 <![CDATA[Re: Hover bomber fix (Completed) w/ download]]> this will make bombers a shitload harder to micro in all situations not just effect double bombing

imo it wouldnt make sense that bombs cannot get dropped no matter the speed.

Statistics: Posted by Lame — 02 Mar 2014, 01:10


]]>
2014-03-01T22:48:27+02:00 2014-03-01T22:48:27+02:00 /viewtopic.php?t=6820&p=67550#p67550 <![CDATA[Re: Hover bomber fix (Completed) w/ download]]> http://www.mediafire.com/download/con03j8298o6q85/hover_bomber_fix_v021.rar

Code:
------------------------------------------------------------------------------------------
--   File     :  /mods/hover_bomber_fix/hook/lua/defaultunits.lua
--   Author(s):  Resin_Smoker
--   Summary  :  Prevents bomber from firing if they're not moving at least cruising speed
--   Copyright © 2014 All rights reserved.
------------------------------------------------------------------------------------------

do

--> Triggers all logs to report if flag set true, otherwise use the local flags within each function for specific outputs
local masterDebug = false

------------------------------------------------------------------------------------------
-- Air Units
------------------------------------------------------------------------------------------

local oldAirUnit = AirUnit
AirUnit = Class( oldAirUnit ) {

   OnStopBeingBuilt = function( self, builder, layer )
      --> Run old OnStopBeingBuilt first            
      oldAirUnit.OnStopBeingBuilt( self, builder, layer )
      --> Get units BP
      local bp = self:GetBlueprint()
      local myDebug = false
      if myDebug or masterDebug then
         LOG('*** hover_bomber_fix defaultunits.lua, OnStopBeingBuilt ***')
         LOG('   Projectile ID: ', self:GetEntityId() )         
         LOG('   Game time is: ', GetGameTimeSeconds() )
         LOG('   Name: ', bp.General.UnitName )
         LOG('*************************************')                  
      end      
      --> Ensure that unit is winged, has the category "Bomber" and is not the Mercy suicide missile
      if bp.Air.Winged and EntityCategoryContains(categories.BOMBER, self) and bp.General.UnitName != '<LOC daa0206_name>Mercy' then
         if myDebug or masterDebug then
            LOG('   Airunit is a BOMBER')
            LOG('   ')
         end
         --> Setup global flags
         self.IsBomber = true
         self.MyWepEnabled = true
      else
         if myDebug or masterDebug then
            LOG('   Airunit is NOT a bomber')
            LOG('   ')            
         end     
      end
   end,
   
   OnMotionHorzEventChange = function(self, new, old)
      local myDebug = true
      --> Run old OnMotionHorzEventChange first   
      oldAirUnit.OnMotionHorzEventChange(self, new, old)
      --> Does unit still exist 
      if self and not self:IsDead() then
         --> Is unit a bomber, is motion type different from last one reported
         if self.IsBomber and new != old then
            --> Did our bomber start moving again and are the weapons disabled              
            if ( new == 'Cruise' or new == 'TopSpeed' ) and ( old == 'Stopping' or old == 'Stopped' ) and not self.MyWepEnabled then
               --> Set flag to true
               self.MyWepEnabled = true
               --> Loop though all weapons
               for i = 1, self:GetWeaponCount() do
                  local wep = self:GetWeapon(i)
                  local wepBP = wep:GetBlueprint()
                  --> Only enable if weapon is not anti-air                  
                  if wepBP.WeaponCategory != 'Anti Air' and wepBP.RangeCategory != 'UWRC_AntiAir' then   
                     wep:SetEnabled(true)
                     if myDebug or masterDebug then
                        LOG('   Bomber is at: ', new, ' from:', old,' ENABLING weapons')
                     end
                  end                  
               end
            --> Did our bomber stop moving again and are the weapons enabled               
            elseif ( old == 'Cruise' or old == 'TopSpeed' ) and ( new == 'Stopping' or new == 'Stopped' ) and self.MyWepEnabled then
               --> Set flag to false      
               self.MyWepEnabled = false
               --> Loop though all weapons                              
               for i = 1, self:GetWeaponCount() do                                         
                  local wep = self:GetWeapon(i)
                  local wepBP = wep:GetBlueprint()                  
                  --> Only disable if weapon is not anti-air
                  if wepBP.WeaponCategory != 'Anti Air' and wepBP.RangeCategory != 'UWRC_AntiAir' then                 
                     wep:SetEnabled(false)
                     if myDebug or masterDebug then
                        LOG('   Bomber is at: ', new, ' from:', old,' DISABLING weapons')
                     end
                  end   
               end                           
            end
         end   
      end             
   end,   
   
}
end   


Note: Added support for bombers with anti-air weapons and something to omit the Mercy missile from being disabled as technically it's a bomber.

Resin

Statistics: Posted by Resin_Smoker — 01 Mar 2014, 22:48


]]>
2014-03-01T07:47:17+02:00 2014-03-01T07:47:17+02:00 /viewtopic.php?t=6820&p=67401#p67401 <![CDATA[Hover bomber fix (Completed) w/ download]]>
Code:
------------------------------------------------------------------------------------------
--   File     :  /mods/hover_bomber_fix/hook/lua/defaultunits.lua
--   Author(s):  Resin_Smoker
--   Summary  :  Prevents bomber from firing if they're not moving at least cruising speed
--   Copyright © 2014 All rights reserved.
------------------------------------------------------------------------------------------

do

--> Triggers all logs to report if flag set true, otherwise use the local flags within each function for specific outputs
local masterDebug = false

------------------------------------------------------------------------------------------
-- Air Units
------------------------------------------------------------------------------------------

local oldAirUnit = AirUnit
AirUnit = Class( oldAirUnit ) {

   OnStopBeingBuilt = function( self, builder, layer )
      local myDebug = false
      if myDebug or masterDebug then
         LOG('*** hover_bomber_fix defaultunits.lua, OnStopBeingBuilt ***')
         LOG('   Projectile ID: ', self:GetEntityId() )         
         LOG('   Game time is: ', GetGameTimeSeconds() )
         LOG('*************************************')                  
      end            
      oldAirUnit.OnStopBeingBuilt( self, builder, layer )
      local bp = self:GetBlueprint()
      if bp.Air.Winged and EntityCategoryContains(categories.BOMBER, self) then
         if myDebug or masterDebug then
            LOG('   Airunit is bomber')
         end
         self.IsBomber = true
         self.MyWepEnabled = true
      else
         if myDebug or masterDebug then
            LOG('   Airunit is NOT a bomber')
         end      
         self.IsBomber = false       
      end
   end,
   
   OnMotionHorzEventChange = function(self, new, old)
      local myDebug = true   
      oldAirUnit.OnMotionHorzEventChange(self, new, old) 
      if self and not self:IsDead() then
         if self.IsBomber and new != old and not self.WeapWaitState then              
            if ( new == 'Cruise' or new == 'TopSpeed' ) and ( old == 'Stopping' or old == 'Stopped' ) and not self.MyWepEnabled then
               self.MyWepEnabled = true
               for i = 1, self:GetWeaponCount() do                                         
                  self:GetWeapon(i):SetEnabled(true)
               end
               if myDebug or masterDebug then
                  LOG('   Bomber is at: ', new, ' from:', old,' ENABLING weapons')
               end            
            elseif ( old == 'Cruise' or old == 'TopSpeed' ) and ( new == 'Stopping' or new == 'Stopped' ) and self.MyWepEnabled then      
               self.MyWepEnabled = false               
               for i = 1, self:GetWeaponCount() do                                         
                  self:GetWeapon(i):SetEnabled(false)
               end
               if myDebug or masterDebug then
                  LOG('   Bomber is at: ', new, ' from:', old,' DISABLING weapons')
               end                              
            end
         end   
      end             
   end,   
   
}
end


Download link: http://www.mediafire.com/download/0nm6p28gp65rt3l/hover_bomber_fix.rar

Statistics: Posted by Resin_Smoker — 01 Mar 2014, 07:47


]]>
2014-04-03T20:07:19+02:00 2014-02-26T19:56:15+02:00 /viewtopic.php?t=6820&p=67064#p67064 <![CDATA[Hover bomber fix (Completed) w/ download v0.5]]> This would prevent the release of bombs and thus the exploitation of this bug.

See last page of this thread for download links.

Resin

Statistics: Posted by Resin_Smoker — 26 Feb 2014, 19:56


]]>