obj
clickable
equip
icon='visual.dmi'
icon_state="equip"
Click()
if(!usr.playing)
return
var/obj/gun/templist[]=new
for(var/n in usr.weapons)
templist+=n
var/obj/gun/q=input("Select from your weapons.")in (templist)|null
usr.overlays-=usr.selected_weapon //Here.
usr.selected_weapon=q
usr.update_gun_icon(q)
usr.ammo=q.ammo
Problem description:
Whenever I equip the missile launcher, everything seems fine; my overlays are added with the missile launcher icon. However when I switch again to the pistol, the icon of the missile launcher stays on the screen while the pistol also pops up. The reason I find this odd is because whenever I reselect the missile launcher, the pistol icon does go away. What's up?