I’m working in a weapons pack for TTT that has 16 attachment entities.
If I use the in place bitflag system, I can only use a maximum of 13 entities (#13 having a bitflag of 32768).
I’ve already identified the culprit and tested the direct changes and it works perfectly then, but since this will eventually be for distribution, I don’t want users to have to edit the gamemode files directly.
What I want to accomplish is to change the bit value of net.WriteUInit and net.ReadUInit from 16 to 32. These are located in ‘weaponry.lua:414’ and ‘cl_equip.lua:492’, respectively.
Is there a way I can have an addon file containing a modified copy of the code take precedence over the gamemode functions?