Skip to content

Commit

Permalink
You can enter hell after you die. There's a few monsters and things t…
Browse files Browse the repository at this point in the history
…o find, but not much else.
  • Loading branch information
Muncher2112 committed Oct 27, 2020
1 parent e20f0f2 commit 388b2da
Show file tree
Hide file tree
Showing 7 changed files with 128 additions and 40 deletions.
1 change: 1 addition & 0 deletions InterHippie.dme
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@
#include "code\game\antagonist\outsider\deathsquad.dm"
#include "code\game\antagonist\outsider\deity.dm"
#include "code\game\antagonist\outsider\ert.dm"
#include "code\game\antagonist\outsider\hell_delver.dm"
#include "code\game\antagonist\outsider\mercenary.dm"
#include "code\game\antagonist\outsider\ninja.dm"
#include "code\game\antagonist\outsider\raider.dm"
Expand Down
1 change: 1 addition & 0 deletions code/__defines/gamemode.dm
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
#define MODE_DEITY "deity"
#define MODE_GODCULTIST "god cultist"
#define MODE_CRUSADE "crusader"
#define MODE_DELVER "delver"

#define DEFAULT_TELECRYSTAL_AMOUNT 100
#define IMPLANT_TELECRYSTAL_AMOUNT(x) (round(x * 0.49)) // If this cost is ever greater than half of DEFAULT_TELECRYSTAL_AMOUNT then it is possible to buy more TC than you spend
Expand Down
68 changes: 68 additions & 0 deletions code/game/antagonist/outsider/hell_delver.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
GLOBAL_DATUM_INIT(delver, /datum/antagonist/delver, new)

/datum/antagonist/delver
id = MODE_DELVER
role_text = "Hell Delver"
role_text_plural = "Hell Delvers"
welcome_text = "A destitute individual, doomed to wander the wastes in search of death."
antag_text = "You are a<b>survivor.</b> Wander the wastes and try not to die"
leader_welcome_text = "You shouldn't see this"
landmark_id = "Hell Spawn"
id_type = /obj/item/weapon/card/id/centcom/ERT

flags = ANTAG_OVERRIDE_JOB | ANTAG_HAS_LEADER | ANTAG_CHOOSE_NAME | ANTAG_RANDOM_EXCEPTED
antaghud_indicator = "hudloyalist"

hard_cap = 25
hard_cap_round = 25
initial_spawn_req = 1
initial_spawn_target = 10
show_objectives_on_creation = 0 //we are not antagonists, we do not need the antagonist shpiel/objectives

/datum/antagonist/delver/create_default(var/mob/source)
var/mob/living/carbon/human/M = ..()
if(istype(M)) M.age = rand(25,45)

/datum/antagonist/delver/Initialize()
..()
leader_welcome_text = "You have no leaders"

/datum/antagonist/delver/greet(var/datum/mind/player)
if(!..())
return
to_chat(player.current, "You're all alone. Beware the dark.")

/datum/antagonist/delver/equip(var/mob/living/carbon/human/player)

//Special radio setup
player.equip_to_slot_or_del(new /obj/item/clothing/under/soviet(src), slot_w_uniform)
player.equip_to_slot_or_del(new /obj/item/device/flashlight/lantern(src), slot_belt)
player.equip_to_slot_or_del(new /obj/item/weapon/gun/projectile/shotgun/pump/boltaction/shitty (src), slot_back)
player.equip_to_slot_or_del(new /obj/item/stack/bullets/rifle(5), slot_l_store)
player.equip_to_slot_or_del(new /obj/item/stack/bullets/rifle(5), slot_r_store)
player.equip_to_slot_or_del(new /obj/item/clothing/shoes/black, slot_shoes)
player.generate_stats(STAT_ST)
player.generate_skills("melee", "ranged")

create_id(role_text, player)
return 1

client/verb/JoinHellDelverTeam()

set name = "Join Hell Delver Squad"
set category = "IC"
set hidden = 0

if(GAME_STATE < RUNLEVEL_GAME)
to_chat(src, "Hell is closed.")
return 0
if(!MayRespawn(1))
to_chat(usr, "<span class='warning'>You cannot join the delver squad.</span>")
return
if(isghost(usr) || isnewplayer(usr))
if(GLOB.delver.current_antagonists.len >= GLOB.delver.hard_cap)
to_chat(usr, "Hell is already full!")
return
GLOB.delver.create_default(usr)
else
to_chat(usr, "You need to be an observer or new player to use this.")
6 changes: 3 additions & 3 deletions code/game/objects/items/stacks/bullets.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
max_amount = 5
item_flags = ITEM_FLAG_NO_BLUDGEON

/obj/item/stack/bullets/New(var/amount = 1)
if(isnum_safe(amount))
amount = amount
/obj/item/stack/bullets/New(var/set_amount = 1)
if(isnum_safe(set_amount))
amount = set_amount
update_icon()

/obj/item/stack/bullets/afterattack(var/obj/item/I as obj, mob/user as mob, proximity)
Expand Down
5 changes: 5 additions & 0 deletions code/game/objects/items/weapons/storage/boxes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@
desc = "It has a picture of a gun and several warning symbols on the front.<br>WARNING: Live ammunition. Misuse may result in serious injury or death."
startswith = list(/obj/item/stack/bullets/shotgun/practice = 7)

/obj/item/weapon/storage/box/brifleammo
name = "box of 7.62mm shells"
desc = "It has a picture of a gun and several warning symbols on the front.<br>WARNING: Live ammunition. Misuse may result in serious injury or death."
startswith = list(/obj/item/stack/bullets/rifle = 15)

/obj/item/weapon/storage/box/sniperammo
name = "box of 14.5mm shells"
desc = "It has a picture of a gun and several warning symbols on the front.<br>WARNING: Live ammunition. Misuse may result in serious injury or death."
Expand Down
6 changes: 6 additions & 0 deletions code/modules/mob/living/simple_animal/hostile/faithless.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,16 @@
faction = "faithless"

/mob/living/simple_animal/hostile/faithless/Process_Spacemove(var/check_drift = 0)
if(rand(1/20)==1)
var/attack_sound = "sound/effects/Cultistemessage[pick(1,10)].ogg"
playsound(src.loc, attack_sound, 75, 1)
return 1

/mob/living/simple_animal/hostile/faithless/FindTarget()
. = ..()
if(.)
var/attack_sound = "sound/effects/Cultistemessage[pick(1,10)].ogg"
playsound(src.loc, attack_sound, 75, 1)
audible_emote("wails at [.]")

/mob/living/simple_animal/hostile/faithless/AttackingTarget()
Expand All @@ -40,6 +45,7 @@
if(istype(L))
if(prob(12))
L.Weaken(3)
playsound(src.loc, "sound/effects/xom_laugh.ogg", 75, 1)
L.visible_message("<span class='danger'>\the [src] knocks down \the [L]!</span>")

/mob/living/simple_animal/hostile/faithless/cult
Expand Down
Loading

0 comments on commit 388b2da

Please sign in to comment.