move_west()
for(var/obj/o in usr.indicator)
usr.overlays-=o
var/matrix/M = matrix()
M.Scale(-1, 1)
usr.transform=M
for(var/obj/o in usr.indicator)
usr.overlays+=o
//moving code here
I did this thinking that the reason the indicator was flipping was because it was being given the same matrix because it was an overlay at the time of changing the transform. I was wrong and it seems that anything added to overlays before or after transform is changed also changes the overlays.
What I need is a way to keep the indicator's current matrix. I tried:
move_west()
for(var/obj/o in usr.indicator)
usr.overlays-=o
var/matrix/M = matrix()
M.Scale(-1, 1)
usr.transform=M
for(var/obj/o in usr.indicator)
o.transform=M
usr.overlays+=o
//moving code here
I think the issue I am having is that my shooting verb is calling a flick() and for some reason the Scale flip isn't working on the flick(). But this is tricky.. because the Scale is working on rest of the icon just not the indicator.
Is there a way to fix this?