Skip to content

Commit

Permalink
Xeno structure cheese reduction (#4550)
Browse files Browse the repository at this point in the history
# About the pull request

If a mob is on top of a reflective wall the wall does not function.

If you are not directly clicking on a xeno special structure
(cluster/core/etc) it will not stop your bullets.

# Explain why it's good for the game

Seeing an uptick in cheesy nonsense we don't really want to encourage.
This should mitigate it.

# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog

:cl: Morrow
balance: If a mob is on top of a reflective wall the wall no longer
functions
balance: Bullets will not longer get eaten by xeno special structures
unless you click directly on them
/:cl:
  • Loading branch information
morrowwolf authored Oct 2, 2023
1 parent 5f5431c commit e491b02
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/game/turfs/walls/wall_types.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1114,6 +1114,10 @@ INITIALIZE_IMMEDIATE(/turf/closed/wall/indestructible/splashscreen)
if(src in P.permutated)
return

//Ineffective if someone is sitting on the wall
if(locate(/mob) in contents)
return ..()

if(!prob(chance_to_reflect))
if(P.ammo.damage_type == BRUTE)
P.damage *= brute_multiplier
Expand Down
6 changes: 6 additions & 0 deletions code/modules/cm_aliens/structures/special_structure.dm
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,9 @@
/obj/effect/alien/resin/special/attack_alien(mob/living/carbon/xenomorph/M)
if(M.can_destroy_special() || M.hivenumber != linked_hive.hivenumber)
return ..()

/obj/effect/alien/resin/special/get_projectile_hit_boolean(obj/projectile/firing_projectile)
if(firing_projectile.original == src || firing_projectile.original == get_turf(src))
return TRUE

return FALSE

0 comments on commit e491b02

Please sign in to comment.