|
| 1 | +/obj/item/gun/ballistic/automatic/laser/station/syndicate |
| 2 | + name = "laser rifle" |
| 3 | + desc = "Seems like an illegal and deadly weapon. Has a 'Cybersun' marking." |
| 4 | + projectile_damage_multiplier = 1 |
| 5 | + icon = 'modular_meta/features/uplink_items/icons/weapon/lrifle.dmi' |
| 6 | + |
| 7 | +/obj/item/gun/ballistic/automatic/laser/station/syndicate/compact |
| 8 | + name = "compact laser rifle" |
| 9 | + var/folded = FALSE |
| 10 | + |
| 11 | +/obj/item/gun/ballistic/automatic/laser/station/syndicate/compact/update_icon_state() |
| 12 | + . = ..() |
| 13 | + if(folded) |
| 14 | + icon_state = "laser_rifle_folded" |
| 15 | + base_icon_state = "laser_rifle_folded" |
| 16 | + else |
| 17 | + icon_state = "laser_rifle" |
| 18 | + base_icon_state = "laser_rifle" |
| 19 | + |
| 20 | +/obj/item/gun/ballistic/automatic/laser/station/syndicate/compact/click_alt(mob/user) |
| 21 | + if(!user.can_perform_action(src, ALLOW_SILICON_REACH)) |
| 22 | + return CLICK_ACTION_BLOCKING |
| 23 | + |
| 24 | + user.changeNext_move(CLICK_CD_MELEE) |
| 25 | + |
| 26 | + if(!folded) |
| 27 | + folded = TRUE |
| 28 | + w_class = WEIGHT_CLASS_NORMAL |
| 29 | + spread = 30 |
| 30 | + icon_state = "laser_rifle_folded" |
| 31 | + base_icon_state = "laser_rifle_folded" |
| 32 | + balloon_alert(user, "folded") |
| 33 | + playsound(src, 'sound/items/weapons/gun/l6/l6_rack.ogg', 50, TRUE) |
| 34 | + else |
| 35 | + folded = FALSE |
| 36 | + w_class = WEIGHT_CLASS_BULKY |
| 37 | + spread = 0 |
| 38 | + icon_state = "laser_rifle" |
| 39 | + base_icon_state = "laser_rifle" |
| 40 | + balloon_alert(user, "deployed") |
| 41 | + playsound(src, 'sound/items/weapons/gun/l6/l6_door.ogg', 50, TRUE) |
| 42 | + |
| 43 | + update_appearance() |
| 44 | + if(ismob(loc)) |
| 45 | + var/mob/living/M = loc |
| 46 | + M.update_held_items() |
| 47 | + |
| 48 | + return CLICK_ACTION_SUCCESS |
| 49 | + |
| 50 | +/obj/item/gun/ballistic/automatic/laser/station/syndicate/compact/guncase |
| 51 | + folded = TRUE |
| 52 | + spread = 30 |
| 53 | + spawn_magazine_type = /obj/item/ammo_box/magazine/recharge/syndi |
0 commit comments