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

Fingergun emote! #1343

Merged
merged 10 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
80 changes: 80 additions & 0 deletions monkestation/code/modules/mob/living/carbon/emote.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
//Finger Guns *blows smoke off his finger tips*
/datum/emote/living/carbon/fingergun
key = "fingergun"
key_third_person = "fingerguns"
hands_use_check = TRUE
cooldown = 1 SECONDS

/datum/emote/living/carbon/fingergun/run_emote(mob/user, params, type_override, intentional)
. = ..()
if(!.)
return
var/obj/item/gun/ballistic/fingergun_emote/N = new(user)
if(user.put_in_hands(N))
to_chat(user, span_notice("You fold your hand into a finger gun."))
user.manual_emote("folds thier hand into a finger gun.")
CannibalHunter marked this conversation as resolved.
Show resolved Hide resolved
else
qdel(N)
to_chat(user, span_warning("You're incapable of readying a finger gun in your current state."))

/obj/item/ammo_casing/caseless/fingergun_bullet
name = "imaginary bullet"
desc = "Bullets are not real idiot."
projectile_type = /obj/projectile/bullet/fingergun_bullet
item_flags = DROPDEL
caliber = "bulletsarenotrealyouidiot"
custom_materials = list()
harmful = FALSE

/obj/projectile/bullet/fingergun_bullet
name = "imaginary bullet"
desc = "Bullets are not real idiot."
icon = 'monkestation/icons/obj/weapons/guns/fingergun_emote.dmi'
icon_state = "projectile"
damage = 0
hitsound_wall = ""
impact_effect_type = null
embedding = list(embed_chance=0)

/obj/item/ammo_box/magazine/fingergun_emote
name = "finger gun magazine"
desc = "You should not be seeing this..."
ammo_type = /obj/item/ammo_casing/caseless/fingergun_bullet
caliber = "bulletsarenotrealyouidiot"
max_ammo = 8

/obj/item/gun/ballistic/fingergun_emote
name = "finger gun"
desc = "This is how real men fight."
icon = 'monkestation/icons/obj/weapons/guns/fingergun_emote.dmi'
icon_state = "item"
inhand_icon_state = "nothing"
item_flags = DROPDEL | HAND_ITEM
force = 0
throwforce = 0
load_sound_volume = 0
rack_sound_volume = 0
lock_back_sound_volume = 0
eject_sound_volume = 0
bolt_drop_sound_volume = 0
dry_fire_sound = ""
pinless = TRUE
clumsy_check = FALSE
trigger_guard = TRIGGER_GUARD_ALLOW_ALL
gun_flags = NONE
mag_type = /obj/item/ammo_box/magazine/fingergun_emote
spawnwithmagazine = TRUE
internal_magazine = TRUE
bolt_type = BOLT_TYPE_NO_BOLT

/obj/item/gun/ballistic/fingergun_emote/fire_sounds()
usr.say("'s hand flying upwards with recoil*BANG!")

/obj/item/gun/ballistic/fingergun_emote/attack_self()
return

/obj/item/gun/ballistic/fingergun_emote/attackby()
return

/obj/item/gun/ballistic/fingergun_emote/eject_magazine()
return
Binary file not shown.
1 change: 1 addition & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -6360,6 +6360,7 @@
#include "monkestation\code\modules\mob\living\carbon\carbon_defense.dm"
#include "monkestation\code\modules\mob\living\carbon\carbon_defines.dm"
#include "monkestation\code\modules\mob\living\carbon\carbon_update_icons.dm"
#include "monkestation\code\modules\mob\living\carbon\emote.dm"
#include "monkestation\code\modules\mob\living\carbon\human\accessory_helpers.dm"
#include "monkestation\code\modules\mob\living\carbon\human\carbon.dm"
#include "monkestation\code\modules\mob\living\carbon\human\custom_bodytype.dm"
Expand Down
Loading