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

New "in_hands" and "onmob" icon sprites for objects, book import from PVE (thanks Amory), small changes and fixes #6951

Draft
wants to merge 77 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
7a7c03b
R.T.S.1
LC4492 Apr 10, 2024
184b45b
Merge branch 'master' of https://github.com/LC4492/CM-Space-Station-13
LC4492 May 23, 2024
ae3caa1
Merge branch 'cmss13-devs:master' into master
LC4492 Jun 13, 2024
066478e
Merge branch 'cmss13-devs:master' into master
LC4492 Jun 27, 2024
5ddbf4a
Merge branch 'cmss13-devs:master' into master
LC4492 Jul 12, 2024
31e22ad
Merge branch 'cmss13-devs:master' into master
LC4492 Jul 20, 2024
82201a0
Merge branch 'cmss13-devs:master' into master
LC4492 Jul 29, 2024
43797f5
Merge branch 'cmss13-devs:master' into master
LC4492 Aug 6, 2024
6c53f32
Merge branch 'cmss13-devs:master' into master
LC4492 Aug 14, 2024
a66f65f
First Sprite Pack, small changes
LC4492 Aug 14, 2024
04bd561
Fix 1
LC4492 Aug 15, 2024
93f592a
Fix 2
LC4492 Aug 15, 2024
f2559eb
Merge branch 'master' into New-in_hand-sprites
LC4492 Aug 15, 2024
57194f6
Fix 3
LC4492 Aug 15, 2024
aca99c5
fix
Blundir Aug 16, 2024
3a7387d
Merge branch 'cmss13-devs:master' into master
LC4492 Sep 1, 2024
3ec8d4d
Merge branch 'cmss13-devs:master' into master
LC4492 Sep 7, 2024
3d5ff0c
Merge branch 'master' into New-in_hand-sprites
LC4492 Sep 8, 2024
6636854
Merge branch 'New-in_hand-sprites' of https://github.com/LC4492/CM-Sp…
LC4492 Sep 8, 2024
ad2a320
In_hand revolution, Part One
LC4492 Oct 19, 2024
53a75b5
Merge branch 'master' into New-in_hand-sprites
LC4492 Oct 19, 2024
5c6c12f
fix 1=
LC4492 Oct 19, 2024
a9c6df1
fix 2
LC4492 Oct 19, 2024
9611fbe
Fix 3
LC4492 Oct 19, 2024
f56d431
Fix 4
LC4492 Oct 19, 2024
134a7dc
Fix 5
LC4492 Oct 19, 2024
b82dc41
Fix 6
LC4492 Oct 19, 2024
e887ee2
Merge branch 'cmss13-devs:master' into master
LC4492 Oct 21, 2024
6d12062
Snacks, matches (WIP) and fixes
LC4492 Oct 28, 2024
4d2c9f8
Fix 2
LC4492 Oct 28, 2024
bcbd773
Fix 2
LC4492 Oct 28, 2024
bd5e457
Merge branch 'cmss13-devs:master' into master
LC4492 Nov 1, 2024
1966f64
Merge branch 'cmss13-devs:master' into master
LC4492 Nov 25, 2024
b0165df
Merge branch 'cmss13-devs:master' into master
LC4492 Nov 25, 2024
beed03c
Merge branch 'master' into New-in_hand-sprites
LC4492 Nov 25, 2024
4d1937e
Conflict S.
LC4492 Nov 25, 2024
60de4fd
Lost pixel in the mirage
LC4492 Nov 26, 2024
bb7bf54
Update binoculars.dm
Blundir Nov 26, 2024
89d4cb3
Update binoculars.dm
Blundir Nov 26, 2024
2b858d9
Fixes, Updates and Addons
LC4492 Nov 27, 2024
14020f3
Updates, Fixes and Addons 2
LC4492 Nov 27, 2024
31788ab
Pizzas, Dogs, Monkeys and more
LC4492 Nov 28, 2024
cb51b49
Merge branch 'master' of https://github.com/LC4492/CM-Space-Station-13
LC4492 Dec 10, 2024
403da79
Merge branch 'master' into New-in_hand-sprites
LC4492 Dec 10, 2024
3e32e1c
Update to the new era
LC4492 Dec 13, 2024
644c087
Merge branch 'master' of https://github.com/LC4492/CM-Space-Station-13
LC4492 Dec 13, 2024
8bb1ef1
Merge branch 'master' into New-in_hand-sprites
LC4492 Dec 13, 2024
7b3cd26
bino
LC4492 Dec 13, 2024
1a68ba8
Fixes and whatnot
LC4492 Dec 13, 2024
ca2159a
Bino 2
LC4492 Dec 13, 2024
cca543e
Merge branch 'cmss13-devs:master' into master
LC4492 Dec 16, 2024
cb5be7f
Merge branch 'master' into New-in_hand-sprites
LC4492 Dec 16, 2024
0801126
Fixes and whatnot
LC4492 Dec 16, 2024
0759fe7
Fixes and more fixes
LC4492 Dec 16, 2024
33e7543
fix
LC4492 Dec 16, 2024
7495ffa
Fixes and addons
LC4492 Dec 17, 2024
82b69d9
small sorting
Blundir Dec 18, 2024
9239aa3
Merge branch 'master' of https://github.com/cmss13-devs/cmss13 into p…
Blundir Dec 19, 2024
c8a5e13
fixes
Blundir Dec 19, 2024
127c4ef
fixes
Blundir Dec 21, 2024
6079417
Update fancy.dm
Blundir Dec 21, 2024
f60ab26
Update fancy.dm
Blundir Dec 21, 2024
9e615a8
Update fancy.dm
Blundir Dec 21, 2024
0373fd2
Merge branch 'master' into New-in_hand-sprites
Blundir Dec 21, 2024
d29a8f7
upd
Blundir Dec 27, 2024
0d9b4d0
upd on huggers and eggs
Blundir Dec 27, 2024
5b881da
Merge branch 'master' of https://github.com/cmss13-devs/cmss13 into p…
Blundir Dec 27, 2024
cbc7eaf
Fixup maps in TGM format
Blundir Dec 27, 2024
a87242d
fix
Blundir Dec 27, 2024
e39888a
Merge branch 'master' of https://github.com/cmss13-devs/cmss13 into p…
Blundir Dec 27, 2024
2279f2c
removes reference to Corey
Blundir Dec 27, 2024
560ec6f
fix white folder
Blundir Dec 27, 2024
87ee178
Fixup maps in TGM format
Blundir Dec 27, 2024
57ac20a
fix
Blundir Dec 27, 2024
63f481c
All kinds of stuff
LC4492 Dec 27, 2024
edf0b2c
Fixes of fixes
LC4492 Dec 27, 2024
f18e7e0
Fixes and more
LC4492 Dec 27, 2024
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
4 changes: 2 additions & 2 deletions code/game/objects/items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -911,8 +911,8 @@ cases. Override_icon_state should be a list.*/

SEND_SIGNAL(src, COMSIG_ITEM_ZOOM, user)
var/zoom_device = zoomdevicename ? "\improper [zoomdevicename] of [src]" : "\improper [src]"
user.visible_message(SPAN_NOTICE("[user] peers through \the [zoom_device]."),
SPAN_NOTICE("You peer through \the [zoom_device]."))
user.visible_message(SPAN_NOTICE("[user] peers through [zoom_device]."),
SPAN_NOTICE("You peer through [zoom_device]."))
zoom = !zoom

/obj/item/proc/get_icon_state(mob/user_mob, slot)
Expand Down
22 changes: 22 additions & 0 deletions code/game/objects/items/devices/binoculars.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
desc = "A military-issued pair of binoculars."
icon = 'icons/obj/items/binoculars.dmi'
icon_state = "binoculars"
item_state = ""
pickup_sound = 'sound/handling/wirecutter_pickup.ogg'
drop_sound = 'sound/handling/wirecutter_drop.ogg'
flags_atom = FPRINT|CONDUCT
Expand All @@ -14,6 +15,8 @@
throw_speed = SPEED_VERY_FAST
/// If FALSE won't change icon_state to a camo marine bino.
var/uses_camo = TRUE
var/raised = FALSE
var/base_item_state = "binoculars"


//matter = list("metal" = 50,"glass" = 50)
Expand All @@ -30,8 +33,27 @@
if(SEND_SIGNAL(user, COMSIG_BINOCULAR_ATTACK_SELF, src))
return

if(raised)
set_raised(FALSE, user)
else
set_raised(TRUE, user)

zoom(user, 11, 12)

/obj/item/device/binoculars/proc/set_raised(to_raise, mob/living/carbon/human/H)
if(!istype(H))
return

if(!to_raise)
raised = FALSE
item_state = "[base_item_state]"
else
raised = TRUE
item_state = "[base_item_state]_eyes"

H.update_inv_r_hand()
H.update_inv_l_hand()

/obj/item/device/binoculars/dropped(/obj/item/item, mob/user)
. = ..()
on_unset_interaction(user)
Expand Down
7 changes: 6 additions & 1 deletion code/game/objects/items/devices/flashlight.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
desc = "A hand-held emergency light."
icon = 'icons/obj/items/lighting.dmi'
icon_state = "flashlight"
item_state = "flashlight"
item_state = ""
w_class = SIZE_SMALL
flags_atom = FPRINT|CONDUCT
flags_equip_slot = SLOT_WAIST
Expand Down Expand Up @@ -518,8 +518,13 @@
/obj/item/device/flashlight/lantern
name = "lantern"
icon_state = "lantern"
item_state = ""
desc = "A mining lantern."
light_range = 6 // luminosity when on
light_color = "#d69c46"

/obj/item/device/flashlight/lantern/on
on = TRUE

//Signal Flare
/obj/item/device/flashlight/flare/signal
Expand Down
6 changes: 5 additions & 1 deletion code/game/objects/items/reagent_containers/glass.dm
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@
desc = "A canister containing pressurized hydrogen. Can be used to refill storage tanks."
icon = 'icons/obj/items/tank.dmi'
icon_state = "canister_hydrogen"
item_state = "anesthetic"
item_state = "canister_hydrogen"
amount_per_transfer_from_this = 100
possible_transfer_amounts = list(50,100,200,300,400)
volume = 400
Expand All @@ -506,24 +506,28 @@
name = "Ammonia canister"
desc = "A canister containing pressurized ammonia. Can be used to refill storage tanks."
icon_state = "canister_ammonia"
item_state = "canister_ammonia"
reagent = "ammonia"

/obj/item/reagent_container/glass/canister/methane
name = "Methane canister"
desc = "A canister containing pressurized methane. Can be used to refill storage tanks."
icon_state = "canister_methane"
item_state = "canister_methane"
reagent = "methane"

/obj/item/reagent_container/glass/canister/pacid
name = "Polytrinic acid canister"
desc = "A canister containing pressurized polytrinic acid. Can be used to refill storage tanks."
icon_state = "canister_pacid"
item_state = "canister_pacid"
reagent = "pacid"

/obj/item/reagent_container/glass/canister/oxygen
name = "Oxygen canister"
desc = "A canister containing pressurized oxygen. Can be used to refill storage tanks."
icon_state = "canister_oxygen"
item_state = "canister_oxygen"
reagent = "oxygen"

/obj/item/reagent_container/glass/pressurized_canister // See the Pressurized Reagent Canister Pouch
Expand Down
4 changes: 2 additions & 2 deletions code/modules/cm_marines/equipment/gear.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
name = "combat flashlight"
desc = "A Flashlight designed to be held in the hand, or attached to a rifle"
icon_state = "flashlight"
item_state = "flashlight"
light_range = 5 //Pretty luminous, but still a flashlight that fits in a pocket
item_state = ""
light_range = 6 //Pretty luminous, but still a flashlight that fits in a pocket

//MARINE SNIPER TARPS

Expand Down
9 changes: 7 additions & 2 deletions code/modules/cm_marines/equipment/mortar/mortar_shells.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
name = "\improper 80mm high explosive mortar shell"
desc = "An 80mm mortar shell, loaded with a high explosive charge."
icon_state = "mortar_ammo_he"
item_state = "mortar_ammo_he"

/obj/item/mortar_shell/he/detonate(turf/T)
explosion(T, 0, 3, 5, 7, explosion_cause_data = cause_data)
Expand All @@ -37,6 +38,7 @@
name = "\improper 80mm fragmentation mortar shell"
desc = "An 80mm mortar shell, loaded with a fragmentation charge."
icon_state = "mortar_ammo_frag"
item_state = "mortar_ammo_frag"

/obj/item/mortar_shell/frag/detonate(turf/T)
create_shrapnel(T, 60, cause_data = cause_data)
Expand All @@ -47,6 +49,7 @@
name = "\improper 80mm incendiary mortar shell"
desc = "An 80mm mortar shell, loaded with a Type B napalm charge. Perfect for long-range area denial."
icon_state = "mortar_ammo_inc"
item_state = "mortar_ammo_inc"
var/radius = 5
var/flame_level = BURN_TIME_TIER_5 + 5 //Type B standard, 50 base + 5 from chemfire code.
var/burn_level = BURN_LEVEL_TIER_2
Expand All @@ -62,6 +65,7 @@
name = "\improper 80mm flare/camera mortar shell"
desc = "An 80mm mortar shell, loaded with an illumination flare / camera combo, attached to a parachute."
icon_state = "mortar_ammo_flr"
item_state = "mortar_ammo_flr"

/obj/item/mortar_shell/flare/detonate(turf/T)
new /obj/item/device/flashlight/flare/on/illumination(T)
Expand All @@ -72,6 +76,7 @@
name = "\improper 80mm custom mortar shell"
desc = "An 80mm mortar shell."
icon_state = "mortar_ammo_custom"
item_state = "mortar_ammo_custom_locked"
matter = list("metal" = 18750) //5 sheets
var/obj/item/explosive/warhead/mortar/warhead
var/obj/item/reagent_container/glass/fuel
Expand Down Expand Up @@ -168,7 +173,7 @@

/obj/item/mortar_shell/flamer_fire_act(dam, datum/cause_data/flame_cause_data)
addtimer(VARSET_CALLBACK(src, burning, FALSE), 5 SECONDS, TIMER_UNIQUE|TIMER_OVERRIDE|TIMER_DELETE_ME)

if(burning)
return
burning = TRUE
Expand Down Expand Up @@ -200,7 +205,7 @@

addtimer(CALLBACK(src, PROC_REF(explode), cause_data), 5 SECONDS)
addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(qdel), (src)), 5.5 SECONDS)


/obj/item/mortar_shell/proc/explode(flame_cause_data)
cell_explosion(src, 100, 25, EXPLOSION_FALLOFF_SHAPE_LINEAR, null, flame_cause_data)
Expand Down
16 changes: 16 additions & 0 deletions code/modules/cm_marines/equipment/mortar/mortars.dm
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,18 @@
targ_y = deobfuscate_y(0)
internal_camera = new(loc)

var/new_icon_state
switch(SSmapping.configs[GROUND_MAP].camouflage_type)
if("classic")
icon_state = new_icon_state ? new_icon_state : "c_" + icon_state
if("desert")
icon_state = new_icon_state ? new_icon_state : "d_" + icon_state
if("snow")
icon_state = new_icon_state ? new_icon_state : "s_" + icon_state
if("urban")
icon_state = new_icon_state ? new_icon_state : "u_" + icon_state


/obj/structure/mortar/Destroy()
QDEL_NULL(internal_camera)
return ..()
Expand Down Expand Up @@ -400,6 +412,10 @@
unacidable = TRUE
w_class = SIZE_HUGE //No dumping this in a backpack. Carry it, fatso

/obj/item/mortar_kit/Initialize(...)
. = ..()
select_gamemode_skin(type)

/obj/item/mortar_kit/ex_act(severity)
switch(severity)
if(EXPLOSION_THRESHOLD_MEDIUM to INFINITY)
Expand Down
Binary file modified icons/mob/humans/onmob/items_lefthand_0.dmi
Binary file not shown.
Binary file modified icons/mob/humans/onmob/items_righthand_0.dmi
Binary file not shown.
Binary file modified icons/obj/structures/mortar.dmi
Binary file not shown.
Loading