2025-07-20 17:59 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003090Spring engineLuapublic2012-05-16 01:45
Reporterjseah 
Assigned ToKloot 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version88.0 
Target VersionFixed in Version89.0 
Summary0003090: AllowWeaponTarget does not work with multiple gadgets
DescriptionGadget A returns true
Gadget B returns false
Unit still fires.

This is a problem because gadgets will return true by default. (don't want to block firing)
Thus only one gadget can use AllowWeaponTarget in a mod.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0008698

Rafal99 (reporter)

The issue is that in default gadget handler (gadgets.lua) callins AllowWeaponTargetCheck and AllowWeaponTarget return false only if ALL gadgets return false.
While all other AllowXYZ callins return false even if ONLY ONE gadget returns false.
So there is inconsistency, no idea if it is intended and why.

Also see here:
http://code.google.com/p/zero-k/source/detail?r=6526
+Notes

-Issue History
Date Modified Username Field Change
2012-05-14 19:32 jseah New Issue
2012-05-15 05:49 Rafal99 Note Added: 0008698
2012-05-16 01:45 Kloot Status new => resolved
2012-05-16 01:45 Kloot Fixed in Version => 89.0
2012-05-16 01:45 Kloot Resolution open => fixed
2012-05-16 01:45 Kloot Assigned To => Kloot
+Issue History