mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
67 lines
1.4 KiB
Plaintext
67 lines
1.4 KiB
Plaintext
/obj/screen/gun
|
|
name = "gun"
|
|
icon = 'icons/mob/screen1.dmi'
|
|
master = null
|
|
dir = 2
|
|
|
|
/obj/screen/gun/Click(location, control, params)
|
|
if(!usr)
|
|
return
|
|
return 1
|
|
|
|
/obj/screen/gun/move
|
|
name = "Allow Movement"
|
|
icon_state = "no_walk0"
|
|
screen_loc = ui_gun2
|
|
|
|
/obj/screen/gun/move/Click(location, control, params)
|
|
if(..())
|
|
var/mob/living/user = usr
|
|
if(istype(user))
|
|
if(!user.aiming) user.aiming = new(user)
|
|
user.aiming.toggle_permission(TARGET_CAN_MOVE)
|
|
return 1
|
|
return 0
|
|
|
|
/obj/screen/gun/item
|
|
name = "Allow Item Use"
|
|
icon_state = "no_item0"
|
|
screen_loc = ui_gun1
|
|
|
|
/obj/screen/gun/item/Click(location, control, params)
|
|
if(..())
|
|
var/mob/living/user = usr
|
|
if(istype(user))
|
|
if(!user.aiming) user.aiming = new(user)
|
|
user.aiming.toggle_permission(TARGET_CAN_CLICK)
|
|
return 1
|
|
return 0
|
|
|
|
/obj/screen/gun/mode
|
|
name = "Toggle Gun Mode"
|
|
icon_state = "gun0"
|
|
screen_loc = ui_gun_select
|
|
|
|
/obj/screen/gun/mode/Click(location, control, params)
|
|
if(..())
|
|
var/mob/living/user = usr
|
|
if(istype(user))
|
|
if(!user.aiming) user.aiming = new(user)
|
|
user.aiming.toggle_active()
|
|
return 1
|
|
return 0
|
|
|
|
/obj/screen/gun/radio
|
|
name = "Allow Radio Use"
|
|
icon_state = "no_radio0"
|
|
screen_loc = ui_gun4
|
|
|
|
/obj/screen/gun/radio/Click(location, control, params)
|
|
if(..())
|
|
var/mob/living/user = usr
|
|
if(istype(user))
|
|
if(!user.aiming) user.aiming = new(user)
|
|
user.aiming.toggle_permission(TARGET_CAN_RADIO)
|
|
return 1
|
|
return 0
|