View Issue Details

IDProjectCategoryView StatusLast Update
0003825Spring engineGeneralpublic2014-10-31 18:37
Reporterazaremoth Assigned Toabma  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionnot fixable 
Product Version94.1 
Summary0003825: Burst weapons do not have reload time anymore
DescriptionThe reload time of burst weapons seams to have disappeared in the latest SVN. That turned the Belial's "shotgun" into a fully automated shotgun.
Additional InformationBELIALBIGGUN = {
    accuracy = 100,
    areaOfEffect = 50,
    burst = 4,
    burstrate = 0.01,
    burnblow = false,
    energypershot = 0,
    explosionGenerator = "custom:Mancubus_Hit_Explosion",
    interceptedByShieldType = 2,
    lineOfSight = true,
    name = "Chain Gun",
    range = 650,
    reloadtime = 5,
    soundHit = "mediumexplosion",
    soundStart = "belial_biggun",
    soundStartVolume = 40,
-- soundTrigger = true,
    sprayAngle = 2048,
    startsmoke = "1",
    startVelocity = 800,
    sweepfire = true,
    tolerance = 3000,
    turret = true,
    weaponVelocity = 900,
-- Weaponspecial ------------------------------------------
    intensity = 1,
    coreThickness = 1,
    weaponType = "LaserCannon",
    rgbColor = "0.8745 1 0.1568",
    texture1 = "greengunshot",
    texture2 = "null_texture",
    thickness = 4,
------------------------------------------------------------
  damage = {
      default = 140,
      flyer = 140,
      heavy = 140,
      light = (140*0.75),
    },
  },
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

azaremoth

2013-06-10 21:45

reporter   ~0010853

Last edited: 2013-06-10 21:52

After further testing the issue is caused for units that:

a) have a cob script
b) weapon stats (reload time) was changed by lua

Depending on the unit the reload time can also be incresed (euf_walker, non-burst weapon).

Might be related to:
" ! remove TA-specific code in CobInstance::Create
    (this changes the argument value to COB's SetMaxReloadTime for
    units equipped with BeamLasers and / or more than one weapon)"

--> what does that mean for my lua code?

azaremoth

2013-06-19 23:46

reporter   ~0010887

Correction here: I have converted the cob script to lua and the bug still persists. It is not limited to cob scripts.

Kloot

2013-08-11 00:06

developer   ~0011269

"weapon stats (reload time) was changed by lua"

If the reloadTime value is changed s.t. (value*30 < reloadSpeed) (where reloadSpeed is an internal variable that defaults to 1 and increases with experience) then this could happen.

Also, a burstrate of 0.01 means the salvo delay in frames (floor(burstrate*30)) will be rounded down to 0. Is that the intended behavior?

abma

2014-10-31 18:37

administrator   ~0013790

feedback missing

Issue History

Date Modified Username Field Change
2013-06-01 18:02 azaremoth New Issue
2013-06-10 21:45 azaremoth Note Added: 0010853
2013-06-10 21:52 azaremoth Note Edited: 0010853
2013-06-19 23:46 azaremoth Note Added: 0010887
2013-08-11 00:06 Kloot Note Added: 0011269
2013-08-11 00:07 Kloot Status new => feedback
2014-10-31 18:37 abma Note Added: 0013790
2014-10-31 18:37 abma Status feedback => closed
2014-10-31 18:37 abma Assigned To => abma
2014-10-31 18:37 abma Resolution open => not fixable