Skip to content

Commit

Permalink
15112
Browse files Browse the repository at this point in the history
  • Loading branch information
Helg2 committed Jul 25, 2024
1 parent d87d6ed commit ebaaac9
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 90 deletions.
13 changes: 0 additions & 13 deletions code/__DEFINES/conflict.dm
Original file line number Diff line number Diff line change
Expand Up @@ -208,19 +208,6 @@

#define MAX_PARALYSE_AMOUNT_FOR_PARALYSE_RESISTANT 2 SECONDS

//Xeno Overlays Indexes//////////
#define X_PRED_LASER_LAYER 10
#define X_LASER_LAYER 9
#define X_WOUND_LAYER 8
#define X_HEAD_LAYER 7
#define X_SUIT_LAYER 6
#define X_L_HAND_LAYER 5
#define X_R_HAND_LAYER 4
#define X_TARGETED_LAYER 3
#define X_FIRE_LAYER 1
#define X_TOTAL_LAYERS 10
/////////////////////////////////

// No neighbors
#define NEIGHBORS_NONE 0
// Cardinal neighborhood
Expand Down
34 changes: 12 additions & 22 deletions code/__DEFINES/mobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -407,13 +407,14 @@ GLOBAL_LIST_INIT(xenoupgradetiers, list(XENO_UPGRADE_BASETYPE, XENO_UPGRADE_INVA
#define HUMAN_MAX_PALENESS 30 //this is added to human skin tone to get value of pale_max variable


// Human Overlay Indexes
/* RU TGMC EDIT
#define LASER_LAYER 29 //For sniper targeting laser
#define MOTH_WINGS_LAYER 28
#define MUTATIONS_LAYER 27
#define DAMAGE_LAYER 26
RU TGMC EDIT */
// Overlay Indexes
#define PRED_LASER_LAYER 32
#define LASER_LAYER 31
#define WOUND_LAYER 30
#define MOTH_WINGS_LAYER 29
#define MUTATIONS_LAYER 28
#define DAMAGE_LAYER 27
#define FLAY_LAYER 26
#define UNIFORM_LAYER 25
#define TAIL_LAYER 24 //bs12 specific. this hack is probably gonna come back to haunt me
#define ID_LAYER 23
Expand All @@ -439,9 +440,9 @@ RU TGMC EDIT */
#define OVERHEALTH_SHIELD_LAYER 3
#define TARGETED_LAYER 2 //for target sprites when held at gun point, and holo cards.
#define FIRE_LAYER 1 //If you're on fire
/* RU TGMC EDIT
#define TOTAL_LAYERS 29
RU TGMC EDIT */

#define TOTAL_LAYERS 32

#define MOTH_WINGS_BEHIND_LAYER 1

#define TOTAL_UNDERLAYS 1
Expand Down Expand Up @@ -486,7 +487,6 @@ RU TGMC EDIT */
#define XENO_SLOWDOWN_REGEN 0.4

#define XENO_DEADHUMAN_DRAG_SLOWDOWN 2
//#define XENO_EXPLOSION_GIB_THRESHOLD 0.95 //if your effective bomb armour is less than 5, devestating explosions will gib xenos //RUTGMC REMOVAL - Explosions

#define KING_SUMMON_TIMER_DURATION 5 MINUTES

Expand Down Expand Up @@ -595,7 +595,7 @@ RU TGMC EDIT */

#define RAVAGER_ENDURE_DURATION 10 SECONDS
#define RAVAGER_ENDURE_DURATION_WARNING 0.7
#define RAVAGER_ENDURE_HP_LIMIT -125 //RUTGMC EDIT
#define RAVAGER_ENDURE_HP_LIMIT -125

#define RAVAGER_RAGE_DURATION 10 SECONDS
#define RAVAGER_RAGE_WARNING 0.7
Expand Down Expand Up @@ -813,8 +813,6 @@ GLOBAL_LIST_INIT(human_body_parts, list(BODY_ZONE_HEAD,
#define GRAB_PIXEL_SHIFT_NECK 16

#define HUMAN_CARRY_SLOWDOWN 0.35
//#define HUMAN_EXPLOSION_GIB_THRESHOLD 0.1 //RUTGMC DELETION, explosions


// =============================
// Hallucinations - health hud screws for carbon mobs
Expand Down Expand Up @@ -888,14 +886,6 @@ GLOBAL_LIST_INIT(human_body_parts, list(BODY_ZONE_HEAD,
///Default damage for slamming a mob against another mob
#define BASE_MOB_SLAM_DAMAGE 8

#define MOTH_WINGS_LAYER 28
#define MUTATIONS_LAYER 27
#define DAMAGE_LAYER 26
#define FLAY_LAYER 25
#define PRED_LASER_LAYER 1.9
#define LASER_LAYER 1.8
#define TOTAL_LAYERS 30

// Yautja defines

//Gear select defines
Expand Down
4 changes: 2 additions & 2 deletions code/modules/mob/living/carbon/carbon_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
var/fire_alert = FALSE
var/pressure_alert = FALSE

//RUTGMC EDIT
var/butchery_progress = 0
//RUTGMC EDIT

var/list/internal_organs = list()
///Overall drunkenness - check handle_status_effects() in life.dm for effects
Expand Down Expand Up @@ -48,6 +46,8 @@
var/list/datum/action/ability/mob_abilities = list()
///Currently selected ability
var/datum/action/ability/activable/selected_ability
///carbon overlay layers
var/list/overlays_standing[TOTAL_LAYERS]

/mob/living/carbon/proc/transfer_identity(mob/living/carbon/destination)
if(!istype(destination))
Expand Down
6 changes: 0 additions & 6 deletions code/modules/mob/living/carbon/human/update_icons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,10 @@ There are several things that need to be remembered:

#define ITEM_STATE_IF_SET(I) I.item_state ? I.item_state : I.icon_state


/mob/living/carbon/human
var/list/overlays_standing[TOTAL_LAYERS]
var/list/underlays_standing[TOTAL_UNDERLAYS]
var/previous_damage_appearance // store what the body last looked like, so we only have to update it if something changed



/mob/living/carbon/human/apply_overlay(cache_index)
var/list/to_add = list()
SEND_SIGNAL(src, COMSIG_HUMAN_APPLY_OVERLAY, cache_index, to_add)
Expand Down Expand Up @@ -677,7 +673,6 @@ GLOBAL_LIST_EMPTY(damage_icon_parts)
/mob/living/carbon/human/update_burst()
remove_overlay(BURST_LAYER)
var/mutable_appearance/standing
//RUTGMC EDIT ADDITION BEGIN - Preds
if(chestburst == 1)
if(isyautja(src))
standing = mutable_appearance('icons/Xeno/Effects.dmi', "predburst_stand", -BURST_LAYER)
Expand All @@ -688,7 +683,6 @@ GLOBAL_LIST_EMPTY(damage_icon_parts)
standing = mutable_appearance('icons/Xeno/Effects.dmi', "predbursted_stand", -BURST_LAYER)
else
standing = mutable_appearance('icons/Xeno/Effects.dmi', "bursted_stand", -BURST_LAYER)
//RUTGMC EDIT ADDITION END

overlays_standing[BURST_LAYER] = standing
apply_overlay(BURST_LAYER)
Expand Down
26 changes: 13 additions & 13 deletions code/modules/mob/living/carbon/xenomorph/update_icons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -52,35 +52,35 @@
update_icons()

/mob/living/carbon/xenomorph/update_inv_r_hand()
remove_overlay(X_R_HAND_LAYER)
remove_overlay(R_HAND_LAYER)
if(r_hand)
if(client && hud_used && hud_used.hud_version != HUD_STYLE_NOHUD)
r_hand.screen_loc = ui_rhand
client.screen += r_hand

overlays_standing[X_R_HAND_LAYER] = r_hand.make_worn_icon(inhands = TRUE, slot_name = slot_r_hand_str, default_icon = 'icons/mob/items_righthand_1.dmi', default_layer = X_R_HAND_LAYER)
apply_overlay(X_R_HAND_LAYER)
overlays_standing[R_HAND_LAYER] = r_hand.make_worn_icon(inhands = TRUE, slot_name = slot_r_hand_str, default_icon = 'icons/mob/items_righthand_1.dmi', default_layer = R_HAND_LAYER)
apply_overlay(R_HAND_LAYER)

/mob/living/carbon/xenomorph/update_inv_l_hand()
remove_overlay(X_L_HAND_LAYER)
remove_overlay(L_HAND_LAYER)
if(l_hand)
if(client && hud_used && hud_used.hud_version != HUD_STYLE_NOHUD)
l_hand.screen_loc = ui_lhand
client.screen += l_hand

overlays_standing[X_L_HAND_LAYER] = l_hand.make_worn_icon(inhands = TRUE, slot_name = slot_l_hand_str, default_icon = 'icons/mob/items_lefthand_1.dmi', default_layer = X_L_HAND_LAYER)
apply_overlay(X_L_HAND_LAYER)
overlays_standing[L_HAND_LAYER] = l_hand.make_worn_icon(inhands = TRUE, slot_name = slot_l_hand_str, default_icon = 'icons/mob/items_lefthand_1.dmi', default_layer = L_HAND_LAYER)
apply_overlay(L_HAND_LAYER)

/mob/living/carbon/xenomorph/proc/create_shriekwave(color)
var/image/shriekwave = image("icon"='icons/Xeno/64x64_Xeno_overlays.dmi', "icon_state" = "shriek_waves") //Ehh, suit layer's not being used.
if(color)
shriekwave.color = color
overlays_standing[X_SUIT_LAYER] = shriekwave
apply_temp_overlay(X_SUIT_LAYER, 3 SECONDS)
overlays_standing[SUIT_LAYER] = shriekwave
apply_temp_overlay(SUIT_LAYER, 3 SECONDS)

/mob/living/carbon/xenomorph/proc/create_stomp()
overlays_standing[X_SUIT_LAYER] = image("icon"='icons/Xeno/64x64_Xeno_overlays.dmi', "icon_state" = "stomp") //Ehh, suit layer's not being used.
apply_temp_overlay(X_SUIT_LAYER, 1.2 SECONDS)
overlays_standing[SUIT_LAYER] = image("icon"='icons/Xeno/64x64_Xeno_overlays.dmi', "icon_state" = "stomp") //Ehh, suit layer's not being used.
apply_temp_overlay(SUIT_LAYER, 1.2 SECONDS)

/mob/living/carbon/xenomorph/update_fire()
if(!fire_overlay)
Expand All @@ -96,7 +96,7 @@
if(QDELETED(src))
return

remove_overlay(X_WOUND_LAYER)
remove_overlay(WOUND_LAYER)
remove_filter("wounded_filter")

var/health_thresholds
Expand Down Expand Up @@ -135,8 +135,8 @@
if(xeno_caste.caste_flags & CASTE_HAS_WOUND_MASK)
var/image/wounded_mask = image(icon, null, "alpha_[overlay_to_show]")
wounded_mask.render_target = "*[REF(src)]"
overlays_standing[X_WOUND_LAYER] = wounded_mask
apply_overlay(X_WOUND_LAYER)
overlays_standing[WOUND_LAYER] = wounded_mask
apply_overlay(WOUND_LAYER)
add_filter("wounded_filter", 1, alpha_mask_filter(0, 0, null, "*[REF(src)]", MASK_INVERSE))

wound_overlay.vis_flags &= ~VIS_HIDE // Show the overlay
Expand Down
1 change: 0 additions & 1 deletion code/modules/mob/living/carbon/xenomorph/xeno_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ RU TGMC EDIT */
///State tracking of hive status toggles
var/status_toggle_flags = HIVE_STATUS_DEFAULTS

var/list/overlays_standing[X_TOTAL_LAYERS]
var/atom/movable/vis_obj/xeno_wounds/wound_overlay
var/atom/movable/vis_obj/xeno_wounds/fire_overlay/fire_overlay
var/datum/xeno_caste/xeno_caste
Expand Down
25 changes: 3 additions & 22 deletions code/modules/predator/yautja/weapons/ranged.dm
Original file line number Diff line number Diff line change
Expand Up @@ -461,20 +461,15 @@
/atom/proc/can_apply_pred_laser()
return FALSE

/mob/living/carbon/human/can_apply_pred_laser()
/mob/living/carbon/can_apply_pred_laser()
if(!overlays_standing[PRED_LASER_LAYER])
return TRUE
return FALSE

/mob/living/carbon/xenomorph/can_apply_pred_laser()
if(!overlays_standing[X_PRED_LASER_LAYER])
return TRUE
return FALSE

/atom/proc/apply_pred_laser()
return FALSE

/mob/living/carbon/human/apply_pred_laser()
/mob/living/carbon/apply_pred_laser()
overlays_standing[PRED_LASER_LAYER] = image("icon" = 'icons/mob/hunter/pred_gear.dmi', "icon_state" = "locking-y", "layer" = -PRED_LASER_LAYER)
apply_overlay(PRED_LASER_LAYER)
spawn(2 SECONDS)
Expand All @@ -484,27 +479,13 @@
apply_overlay(PRED_LASER_LAYER)
return TRUE

/mob/living/carbon/xenomorph/apply_pred_laser()
overlays_standing[X_PRED_LASER_LAYER] = image("icon" = 'icons/mob/hunter/pred_gear.dmi', "icon_state" = "locking-y", "layer" = -X_PRED_LASER_LAYER)
apply_overlay(X_PRED_LASER_LAYER)
spawn(2 SECONDS)
if(overlays_standing[X_PRED_LASER_LAYER])
remove_overlay(X_PRED_LASER_LAYER)
overlays_standing[X_PRED_LASER_LAYER] = image("icon" = 'icons/mob/hunter/pred_gear.dmi', "icon_state" = "locked-y", "layer" = -X_PRED_LASER_LAYER)
apply_overlay(X_PRED_LASER_LAYER)
return TRUE

/atom/proc/remove_pred_laser()
return FALSE

/mob/living/carbon/human/remove_pred_laser()
/mob/living/carbon/remove_pred_laser()
remove_overlay(PRED_LASER_LAYER)
return TRUE

/mob/living/carbon/xenomorph/remove_pred_laser()
remove_overlay(X_PRED_LASER_LAYER)
return TRUE

/obj/item/weapon/gun/energy/yautja/plasma_caster/process()
var/mob/living/user = loc
if(!istype(user))
Expand Down
13 changes: 2 additions & 11 deletions code/modules/projectiles/guns/specialist.dm
Original file line number Diff line number Diff line change
Expand Up @@ -102,27 +102,18 @@ Note that this means that snipers will have a slowdown of 3, due to the scope
/atom/proc/apply_laser()
return FALSE

/mob/living/carbon/human/apply_laser()
/mob/living/carbon/apply_laser()
overlays_standing[LASER_LAYER] = image("icon" = 'icons/obj/items/projectiles.dmi',"icon_state" = "sniper_laser", "layer" =-LASER_LAYER)
apply_overlay(LASER_LAYER)
return TRUE

/mob/living/carbon/xenomorph/apply_laser()
overlays_standing[X_LASER_LAYER] = image("icon" = 'icons/obj/items/projectiles.dmi',"icon_state" = "sniper_laser", "layer" =-X_LASER_LAYER)
apply_overlay(X_LASER_LAYER)
return TRUE

/mob/living/carbon/proc/remove_laser()
return FALSE

/mob/living/carbon/human/remove_laser()
/mob/living/carbon/remove_laser()
remove_overlay(LASER_LAYER)
return TRUE

/mob/living/carbon/xenomorph/remove_laser()
remove_overlay(X_LASER_LAYER)
return TRUE

/obj/item/weapon/gun/rifle/sniper/antimaterial/unique_action(mob/user)
if(!targetmarker_primed && !targetmarker_on)
return laser_on(user)
Expand Down

0 comments on commit ebaaac9

Please sign in to comment.