ID:272131
 
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?
I'd just make the weapon over the base, not the base over the weapon in edit mode. Having them as an under/overlay could cause a lot of unwanted problems and bugs. Copy your base into a new movie file and icon the weapon onto it, erase your base, and presto. You've got a working weapon icon that doesn't need extra coding.
In response to Aaiske Drew
Thats a lot of editing... Is their not a code method?
I tried overlaying the base but it's so damn hard to do for all 50 so weapons. Is there no way to do this in code?