ACF-Team / ACF-3

ACF
MIT License
67 stars 55 forks source link

[BUG] Starfall and E2's :acfCaliber() function always returns 0 when used on missile racks #325

Closed shroobloom closed 5 months ago

shroobloom commented 2 years ago

Branch and Version

Latest version, master branch

How to Reproduce

Spawn this Starfall chip on any ACF Missiles rack:

--@server
print(chip():isWeldedTo():acfCaliber())

It will always print 0, even if the rack is currently loaded. Same result for its E2 equivalent:

print(entity():isWeldedTo():acfCaliber())

Using it on the ammo crate the rack is linked to instead will give the correct result.

Goodva commented 2 years ago

this is an ACF3 Missiles thing btw

shroobloom commented 2 years ago

wasn't sure whether to post it here or on missiles, I'm not sure if it's an issue with ACF missiles racks themselves or the starfall functions used to access their caliber.

TwistedTail commented 2 years ago

It's fine here. The issue comes from racks not storing any bullet data from the selected missile on themselves, which should be fairly simple to solve.