Mar 14, 2016 at 7:27 AM
Join Date: Oct 17, 2011
Location: probably somewhere else
Posts: 1111
Age: 27
Pronouns: maybe
congrats on 100 posts btwI meant where does the code for auto-fire start? I want to create my own weapon that auto-fires, and I also want to find the code and copy it in, then fix it up or something
EDIT: I've also got another question. How would you edit the tilesets? For example, tile 41 is solid and 44 is no NPCs. How would I edit the unused tiles into a tile that's actually useful? If you can't tell me that, can you tell me the offset for the tilesets?
anyway

first three lines: check if button is held, check if it's the fire button; if it's not, jump to 41e749 which is probably somewhere around the reload ammo code
then there's very unoptimized check if we can fire another shot after already firing one, basically everything before the last JMP
increase the timer, compare it to 6, jump the the shoot function (where the timer is put to 0 once again, mind you (last line of the code above)) if it's greater or equal to 6
if not, jump to the end of the weapon code
basically that's it
e: I don't think I ever played with the tiles so I can't say much here