Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AK-47 [MEME EDITION] #685

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions code/game/objects/items/storage/briefcase.dm
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,32 @@
new /obj/item/attachable/scope/standard_magnum(src)
for(var/i in 1 to 15)
new /obj/item/ammo_magazine/revolver/standard_magnum(src)

/obj/item/storage/briefcase/anime
name = "Anime AK-47 case"
desc = "В этом кейсе хранится явно что-то... странное."
icon_state = "briefcase_anime"
item_state = "briefcase_anime"
flags_atom = CONDUCT
force = 12
throw_speed = 1
throw_range = 4
w_class = WEIGHT_CLASS_BULKY
max_w_class = WEIGHT_CLASS_NORMAL
max_storage_space = 15
storage_slots = 9
storage_type_limits = list(/obj/item/weapon/gun = 1)
can_hold = list(
/obj/item/weapon/gun/rifle/mpi_km/anime,
/obj/item/ammo_magazine/rifle/mpi_km/,
BasiaBelov marked this conversation as resolved.
Show resolved Hide resolved
)

/obj/item/storage/briefcase/anime/PopulateContents()
new /obj/item/weapon/gun/rifle/mpi_km/anime(src)
for(var/i in 1 to 8)
new /obj/item/ammo_magazine/rifle/mpi_km/anime(src)
for(var/i in 1 to 4)
new /obj/item/ammo_magazine/rifle/mpi_km/carbine/anime(src)
for(var/i in 1 to 3)
new /obj/item/ammo_magazine/rifle/mpi_km/extended/anime(src)

3 changes: 2 additions & 1 deletion code/game/objects/structures/crates_lockers/largecrate.dm
Original file line number Diff line number Diff line change
Expand Up @@ -284,5 +284,6 @@
/obj/item/weapon/gun/smg/skorpion = /obj/item/ammo_magazine/smg/skorpion,
/obj/item/weapon/gun/smg/uzi = /obj/item/ammo_magazine/smg/uzi,
/obj/item/weapon/gun/rifle/famas = /obj/item/ammo_magazine/rifle/famas,
/obj/item/weapon/gun/rifle/m16 = /obj/item/ammo_magazine/rifle/m16
/obj/item/weapon/gun/rifle/m16 = /obj/item/ammo_magazine/rifle/m16,
/obj/item/storage/briefcase/anime
BasiaBelov marked this conversation as resolved.
Show resolved Hide resolved
)
5 changes: 5 additions & 0 deletions code/modules/projectiles/attachables/stock.dm
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
desc = "A black polymer stock, made to fit the MPi-KM."
icon_state = "ak47stock_black"

/obj/item/attachable/stock/mpi_km/anime
name = "MPi-KM polymer stock"
desc = "A blue polymer stock, made to fit the MPi-KM."
icon_state = "ak47stock_anime"

/obj/item/attachable/stock/lmg_d
name = "lMG-D wooden stock"
desc = "A metallic stock with a wooden paint coating, made to fit lMG-D."
Expand Down
34 changes: 34 additions & 0 deletions code/modules/projectiles/guns/rifles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -564,10 +564,13 @@
/obj/item/ammo_magazine/rifle/mpi_km,
/obj/item/ammo_magazine/rifle/mpi_km/plum,
/obj/item/ammo_magazine/rifle/mpi_km/black,
/obj/item/ammo_magazine/rifle/mpi_km/anime,
/obj/item/ammo_magazine/rifle/mpi_km/carbine,
/obj/item/ammo_magazine/rifle/mpi_km/carbine/plum,
/obj/item/ammo_magazine/rifle/mpi_km/carbine/black,
/obj/item/ammo_magazine/rifle/mpi_km/carbine/anime,
/obj/item/ammo_magazine/rifle/mpi_km/extended,
/obj/item/ammo_magazine/rifle/mpi_km/extended/anime,
)
aim_slowdown = 0.5
attachable_allowed = list(
Expand Down Expand Up @@ -608,6 +611,37 @@
/obj/item/attachable/bayonet,
)

/obj/item/weapon/gun/rifle/mpi_km/anime
name = "\improper MPi-KM japanese rifle"
desc = "Cамый обычный калаш. Разве что... он побывал в руках странного оружейного мастера..."
fire_sound = 'sound/weapons/guns/fire/ak47-ani.ogg'
reload_sound = 'sound/weapons/guns/interact/ak47-ani_reload.ogg'
cocked_sound = 'sound/weapons/guns/interact/ak47-ani_cocked.ogg'
icon_state = "ak47_anime"
item_state = "ak47_anime"
default_ammo_type = /obj/item/ammo_magazine/rifle/mpi_km/anime
attachable_allowed = list(
/obj/item/attachable/bayonet,
/obj/item/attachable/bayonetknife,
/obj/item/attachable/bayonetknife/som,
/obj/item/attachable/flashlight,
/obj/item/attachable/magnetic_harness,
/obj/item/attachable/buildasentry,
/obj/item/attachable/stock/mpi_km/anime,
/obj/item/attachable/shoulder_mount,
/obj/item/attachable/verticalgrip,
/obj/item/weapon/gun/pistol/plasma_pistol,
/obj/item/weapon/gun/shotgun/combat/masterkey,
/obj/item/weapon/gun/flamer/mini_flamer,
/obj/item/weapon/gun/grenade_launcher/underslung,
/obj/item/weapon/gun/rifle/pepperball/pepperball_mini,
/obj/item/weapon/gun/grenade_launcher/underslung/mpi, //alt sprite, unremovable
/obj/item/attachable/reddot,
/obj/item/attachable/lasersight,
/obj/item/attachable/flashlight/under,
)
Comment on lines +623 to +642
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Анимешный приклад можно записать родителю, также как ты сделал с магазинами.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не совсем понял что ты тут хочешь от меня конкретно.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вместо прописывания списка заново для аниме калаша, просто добавить аниме приклад в список калашу-родителю.

starting_attachment_types = list(/obj/item/attachable/stock/mpi_km/anime)

/obj/item/weapon/gun/rifle/mpi_km/grenadier
desc = "A cheap and robust rifle, sometimes better known as an 'AK'. Chambers 7.62x39mm. This one has a built in underbarrel grenade launcher and looks very old, but well looked after."
starting_attachment_types = list(
Expand Down
15 changes: 15 additions & 0 deletions code/modules/projectiles/magazines/rifles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@
icon_state_mini = "mag_rifle"
bonus_overlay = "ak_40_black"

/obj/item/ammo_magazine/rifle/mpi_km/anime
icon_state = "ak_40_anime"
bonus_overlay = "ak_40_anime"

/obj/item/ammo_magazine/rifle/mpi_km/carbine
name = "\improper V-34 magazine (7.62x39mm)"
desc = "A 30 round 7.62x39mm magazine for the Kalashnikov series of firearms."
Expand All @@ -195,6 +199,11 @@
icon_state_mini = "mag_rifle"
bonus_overlay = "ak_30_black"

/obj/item/ammo_magazine/rifle/mpi_km/carbine/anime
desc = "A 30 round 7.62x39mm magazine for the Kalashnikov series of firearms. This one had an modern black polymer finish."
icon_state = "ak_30_anime"
bonus_overlay = "ak_30_anime"

/obj/item/ammo_magazine/rifle/mpi_km/extended
name = "\improper MPi-KM extended magazine (7.62x39mm)"
desc = "A 60 round 7.62x39mm Kalashnikov magazine. this one is notably heavy."
Expand All @@ -205,6 +214,12 @@
aim_speed_mod = 0.2
wield_delay_mod = 0.2

/obj/item/ammo_magazine/rifle/mpi_km/extended/anime
name = "\improper MPi-KM extended anime magazine (7.62x39mm)"
desc = "A 60 round 7.62x39mm Kalashnikov magazine. this one is notably heavy."
icon_state = "ak47_ext_anime"
bonus_overlay = "ak47_ex_anime"

// RPD

/obj/item/ammo_magazine/rifle/lmg_d
Expand Down
Binary file modified icons/Marine/gun64.dmi
Binary file not shown.
Binary file modified icons/Marine/marine-weapons.dmi
Binary file not shown.
Binary file modified icons/mob/clothing/back.dmi
Binary file not shown.
Binary file modified icons/mob/inhands/items/containers_left.dmi
Binary file not shown.
Binary file modified icons/mob/inhands/items/containers_right.dmi
Binary file not shown.
Binary file modified icons/mob/items_lefthand_1.dmi
Binary file not shown.
Binary file modified icons/mob/items_righthand_1.dmi
Binary file not shown.
Binary file modified icons/mob/suit_slot.dmi
Binary file not shown.
Binary file added icons/obj/items/ammo.dmi
Binary file not shown.
Binary file modified icons/obj/items/ammo/magazine.dmi
Binary file not shown.
Binary file modified icons/obj/items/storage/storage.dmi
Binary file not shown.
Binary file added sound/weapons/guns/fire/ak47-ani.ogg
Binary file not shown.
Binary file added sound/weapons/guns/interact/ak47-ani_cocked.ogg
Binary file not shown.
Binary file added sound/weapons/guns/interact/ak47-ani_reload.ogg
Binary file not shown.
Loading