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

Lethal Company 13 - Patch 0.1 #2622

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all 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
6 changes: 6 additions & 0 deletions code/modules/lethal_company/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"We trust that you will be a great asset to the company"

- A module for Shiptest created by these fine folk on Discord

tiberianeuan (programmer)
cephalopod9814 (sprite artist)
56 changes: 56 additions & 0 deletions code/modules/lethal_company/mob/coilhead.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/mob/living/simple_animal/hostile/statue/coilhead
name = "coilhead"
desc = "A withered humanoid statue of concrete, lacking arms and sporting a neck made of a single big loud coil. Multiple nails are puncturing into the statue."

icon = 'coilhead.dmi'
icon_state = "coilhead"
icon_living = "coilhead"
icon_dead = "coilhead"

var/coilhead_sound_ready = TRUE

animate_movement = FORWARD_STEPS

melee_damage_lower = 90
melee_damage_upper = 90

attack_verb_continuous = "coils"
attack_verb_simple = "coil"
attack_sound = 'kill.ogg'

move_to_delay = 0 // Very fast

search_objects = 1

faction = list("coilhead")

pixel_x = 6

// springy sproingy SFX
/mob/living/simple_animal/hostile/statue/coilhead/Move(turf/NewLoc)
var/any_mob_facing = FALSE
if(can_be_seen())
for(var/mob/living/M in view(src))
if(is_A_facing_B(M, src))
any_mob_facing = TRUE
break

if(any_mob_facing && coilhead_sound_ready)
src.coilhead_sound_ready = FALSE
playsound(src, 'spring.ogg', 300, TRUE, use_reverb = TRUE)
return 0
else if(!any_mob_facing)
src.coilhead_sound_ready = TRUE

return ..()


/mob/living/simple_animal/hostile/statue/coilhead/sir_coils_your_brains
name = "Sir Coils-Your-Brains"
desc = "A withered humanoid statue of concrete, lacking arms and sporting a neck made of a single big loud coil. Multiple nails are puncturing into the statue. For some unknown reason, this one seems to don fancy attire, and there's some yorkshire tea dribbling out of the mouth"
melee_damage_upper = 1000
melee_damage_lower = 1000
icon_state = "sir"
icon_living = "sir"
icon_dead = "sir"

Binary file added code/modules/lethal_company/mob/coilhead.dmi
Binary file not shown.
Binary file added code/modules/lethal_company/mob/kill.ogg
Binary file not shown.
Binary file added code/modules/lethal_company/mob/spring.ogg
Binary file not shown.
21 changes: 21 additions & 0 deletions code/modules/lethal_company/obj/clothing/LCspacesuit.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/obj/item/clothing/head/helmet/space/lethal
name = "Company issued space helmet"
desc = "Never in your life have you seen something more bulky and awkward than this."
icon = 'spacehelm_item.dmi'
mob_overlay_icon = 'spacehelm_worn.dmi'
item_state = "lethal_helmet"
icon_state = "lethal_helmet"
armor = list("melee" = 0, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 0, "acid" = 0)
flags_cover = HEADCOVERSEYES | HEADCOVERSMOUTH
flash_protect = 0

/obj/item/clothing/suit/space/lethal
name = "Company issued spacesuit"
desc = "This thing... is complete garbage. Disposable suit for disposable people!"
icon = 'spacesuit_item.dmi'
mob_overlay_icon = 'spacesuit_worn.dmi'
item_state = "lethal_suit"
icon_state = "lethal_suit"
slowdown = 0
permeability_coefficient = 1
armor = list("melee" = 0, "bullet" = 0, "laser" = 0,"energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 3, "fire" = 0, "acid" = 0)
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
21 changes: 13 additions & 8 deletions code/modules/mob/living/simple_animal/hostile/statue.dm
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,14 @@

/mob/living/simple_animal/hostile/statue/Move(turf/NewLoc)
if(can_be_seen(NewLoc))
if(client)
to_chat(src, "<span class='warning'>You cannot move, there are eyes on you!</span>")
return 0
for(var/mob/living/M in view(src))
if(is_A_facing_B(M, src))
if(client)
to_chat(src, "<span class='warning'>You cannot move, there are eyes on you!</span>")
return 0
return ..()


/mob/living/simple_animal/hostile/statue/Life()
..()
if(!client && target) // If we have a target and we're AI controlled
Expand All @@ -95,11 +98,13 @@

/mob/living/simple_animal/hostile/statue/AttackingTarget()
if(can_be_seen(get_turf(loc)))
if(client)
to_chat(src, "<span class='warning'>You cannot attack, there are eyes on you!</span>")
return FALSE
else
return ..()
for(var/mob/living/M in view(src))
if(is_A_facing_B(M, src))
if(client)
to_chat(src, "<span class='warning'>You cannot attack, there are eyes on you!</span>")
return FALSE
return ..()


/mob/living/simple_animal/hostile/statue/DestroyPathToTarget()
if(!can_be_seen(get_turf(loc)))
Expand Down
2 changes: 2 additions & 0 deletions shiptest.dme
Original file line number Diff line number Diff line change
Expand Up @@ -2318,6 +2318,8 @@
#include "code\modules\language\teceti_unified.dm"
#include "code\modules\language\vox_pidgin.dm"
#include "code\modules\language\xenocommon.dm"
#include "code\modules\lethal_company\mob\coilhead.dm"
#include "code\modules\lethal_company\obj\clothing\LCspacesuit.dm"
#include "code\modules\library\lib_codex_gigas.dm"
#include "code\modules\library\lib_items.dm"
#include "code\modules\library\lib_machines.dm"
Expand Down