View Issue Details

IDProjectCategoryView StatusLast Update
0005286Spring engineGeneralpublic2019-03-11 00:46
ReporterCode_Man Assigned To 
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionno change required 
Product Version101.0+git 
Summary0005286: Intercept lasers cannot be used as weapons
DescriptionI would like for weapons with the 'interceptor' tag to be usable as regular weapons in addition to their intereceptor ability.

For games where this might be a problem a simple empty onlytargetcategory tag would fix it.
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

Google_Frog

2016-06-30 08:11

reporter   ~0016458

Make two weapons and link their reload times in the LUS?

Code_Man

2016-07-15 18:41

reporter   ~0016508

Seems like a rather overcomplex workaround for something that could be made simple.
I dont see this as reasonable, but i guess its up to devs.

But just in case could you elaborate how to do it?

sprung

2017-10-20 13:34

reporter   ~0018540

```
function script.FireWeapon(num)
    local other = 3 - num -- for 1 and 2, modify as needed
    Spring.SetUnitWeaponState(unitID, other, "reloadFrame", Spring.GetGameFrame() + WeaponDefs[UnitDefs[unitDefID].weapons[other].weaponDef].reload*Game.gameSpeed)
end
```

Issue History

Date Modified Username Field Change
2016-06-26 21:48 Code_Man New Issue
2016-06-30 08:11 Google_Frog Note Added: 0016458
2016-07-15 18:41 Code_Man Note Added: 0016508
2017-10-20 13:34 sprung Note Added: 0018540
2019-03-11 00:46 Kloot Status new => closed
2019-03-11 00:46 Kloot Resolution open => no change required