I found a site with some overlay/underlay weapons but they're messed up so it puts the weapon over the person if they go North or West and it should go under. I'd rather not go through every single file and edit the base to fit the weapons. How would I set the weapon to underlay if they went North or West? I'm guessing something along the lines of:
client
East()
if(weapon=="wep name")
usr.overlays-=/obj/wep/wepname
usr.underlays+=/obj/wep/wepnameu
obj
wep
wepname
icon='weps.dmi'
icon_state="wep name"
wepnameu
icon='weps.dmi'
icon_state="wep name2"
And repeat that for every weapon. Is there a easier way to do this?