Foam-Force Assault Machines. (#5243)
* REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE i HAVE NO IDEA WHAT I'M DOING * Wew. Managed to add the AM4 to the thingy. WYSIWYG * ALMOST DONEEEE Wew. Just a few more tweaks * To be reverted. This is just adding a file of the sprite for the mag so I can work at work * AM4B Complete, Moving to AM4C And also I need to make the magazines. * One step forward two steps back. Magazine sprites are in. still need to test it. * Forgot to save a file. Woops. * AM4 Finished. Adds two weapons, the AM4-B and the AM4-C. Yes they're supposed to look like the MA5. * Reverted those last couple things. Deleted some loose files that I didn't actually need. Whoops.
This commit is contained in:
@@ -1216,3 +1216,86 @@ obj/item/gun/energy/e_gun/cx/worn_overlays(isinhands, icon_file)
|
||||
|
||||
/obj/item/ammo_box/magazine/toy/pistol //forcing this might be a bad idea, but it'll fix the foam gun infinite material exploit
|
||||
materials = list(MAT_METAL = 200)
|
||||
|
||||
/*/////////////////////////////////////////////////////////////
|
||||
//////////////////////// Zero's Meme //////////////////////////
|
||||
*//////////////////////////////////////////////////////////////
|
||||
/obj/item/ammo_box/magazine/toy/AM4B
|
||||
name = "foam force AM4-B magazine"
|
||||
icon = 'icons/obj/guns/cit_guns.dmi'
|
||||
icon_state = "AM4MAG-60"
|
||||
max_ammo = 60
|
||||
multiple_sprites = 0
|
||||
materials = list(MAT_METAL = 200)
|
||||
|
||||
/obj/item/gun/ballistic/automatic/AM4B
|
||||
name = "AM4-B"
|
||||
desc = "A Relic from a bygone age. Nobody quite knows why it's here. Has a polychromic coating."
|
||||
icon = 'icons/obj/guns/cit_guns.dmi'
|
||||
icon_state = "AM4"
|
||||
item_state = "arg"
|
||||
mag_type = /obj/item/ammo_box/magazine/toy/AM4B
|
||||
can_suppress = 0
|
||||
needs_permit = 0
|
||||
casing_ejector = 0
|
||||
spread = 30 //Assault Rifleeeeeee
|
||||
w_class = WEIGHT_CLASS_NORMAL
|
||||
burst_size = 4 //Shh.
|
||||
fire_delay = 1
|
||||
var/body_color = "#3333aa"
|
||||
|
||||
/obj/item/gun/ballistic/automatic/AM4B/update_icon()
|
||||
..()
|
||||
var/mutable_appearance/body_overlay = mutable_appearance('icons/obj/guns/cit_guns.dmi', "AM4-Body")
|
||||
if(body_color)
|
||||
body_overlay.color = body_color
|
||||
cut_overlays() //So that it doesn't keep stacking overlays non-stop on top of each other
|
||||
add_overlay(body_overlay)
|
||||
if(ismob(loc))
|
||||
var/mob/M = loc
|
||||
M.update_inv_hands()
|
||||
/obj/item/gun/ballistic/automatic/AM4B/AltClick(mob/living/user)
|
||||
if(!in_range(src, user)) //Basic checks to prevent abuse
|
||||
return
|
||||
if(user.incapacitated() || !istype(user))
|
||||
to_chat(user, "<span class='warning'>You can't do that right now!</span>")
|
||||
return
|
||||
if(alert("Are you sure you want to recolor your gun?", "Confirm Repaint", "Yes", "No") == "Yes")
|
||||
var/body_color_input = input(usr,"Choose Shroud Color") as color|null
|
||||
if(body_color_input)
|
||||
body_color = sanitize_hexcolor(body_color_input, desired_format=6, include_crunch=1)
|
||||
update_icon()
|
||||
/obj/item/gun/ballistic/automatic/AM4B/examine(mob/user)
|
||||
..()
|
||||
to_chat(user, "<span class='notice'>Alt-click to recolor it.</span>")
|
||||
|
||||
/obj/item/ammo_box/magazine/toy/AM4C
|
||||
name = "foam force AM4-C magazine"
|
||||
icon = 'icons/obj/guns/cit_guns.dmi'
|
||||
icon_state = "AM4MAG-32"
|
||||
max_ammo = 32
|
||||
multiple_sprites = 0
|
||||
materials = list(MAT_METAL = 200)
|
||||
|
||||
/obj/item/gun/ballistic/automatic/AM4C
|
||||
name = "AM4-C"
|
||||
desc = "A Relic from a bygone age. This one seems newer, yet less effective."
|
||||
icon = 'icons/obj/guns/cit_guns.dmi'
|
||||
icon_state = "AM4C"
|
||||
item_state = "arg"
|
||||
mag_type = /obj/item/ammo_box/magazine/toy/AM4C
|
||||
can_suppress = 0
|
||||
needs_permit = 0
|
||||
casing_ejector = 0
|
||||
spread = 45 //Assault Rifleeeeeee
|
||||
w_class = WEIGHT_CLASS_NORMAL
|
||||
burst_size = 4 //Shh.
|
||||
fire_delay = 1
|
||||
|
||||
/datum/design/am4c
|
||||
name = "Foam Force AM4-C Rifle"
|
||||
id = "foam_am4c"
|
||||
build_type = AUTOLATHE
|
||||
materials = list(MAT_METAL = 24000, MAT_GLASS = 14000)
|
||||
build_path = /obj/item/gun/ballistic/automatic/AM4C
|
||||
category = list("hacked", "Misc")
|
||||
|
||||
Reference in New Issue
Block a user