slavedTo already is 1-indexed by default since it's read from weaponDefs and it uses 0 to mark non-slaved weapons
edited so it updates indexes correctly with LUA_WEAPON_BASE_INDEX