mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 21:49:11 +01:00
Adds and tweaks Vox toys
This commit is contained in:
@@ -150,3 +150,19 @@ obj/item/weapon/gun/energy/staff/focus
|
||||
user << "<span class='warning'>The [src.name] will now strike only a single person.</span>"
|
||||
projectile_type = "/obj/item/projectile/forcebolt"
|
||||
*/
|
||||
|
||||
//Vox toys
|
||||
/obj/item/weapon/gun/energy/sonicgun
|
||||
name = "sonic cannon"
|
||||
desc = "A vicious alien sonic weapon. Parts of it quiver gelatinously, as though the thing is insectile and alive."
|
||||
icon_state = "plasma_stun"
|
||||
item_state = "plasma_stun"
|
||||
fire_sound = 'sound/effects/basscannon.ogg'
|
||||
fire_delay = 10
|
||||
|
||||
self_recharge = 1
|
||||
|
||||
firemodes = list(
|
||||
list(mode_name="incapacitate", projectile_type=/obj/item/projectile/energy/sonic/weak, fire_delay=10, charge_cost = 120),
|
||||
list(mode_name="kill", projectile_type=/obj/item/projectile/energy/sonic/strong, fire_delay=20, charge_cost = 240),
|
||||
)
|
||||
@@ -171,4 +171,51 @@
|
||||
|
||||
/obj/item/projectile/energy/plasmastun/on_hit(var/atom/target)
|
||||
bang(target)
|
||||
. = ..()
|
||||
. = ..()
|
||||
|
||||
/obj/item/projectile/energy/sonic
|
||||
name = "sonic pulse"
|
||||
icon_state = "sonic_pulse"
|
||||
armor_penetration = 50
|
||||
kill_count = 8
|
||||
damage_type = BRUTE
|
||||
embed_chance = 0
|
||||
check_armour = "melee"
|
||||
vacuum_traversal = 0
|
||||
var/ear_pain = 10
|
||||
|
||||
/obj/item/projectile/energy/sonic/on_hit(var/atom/target)
|
||||
sonicboom(target, ear_pain)
|
||||
. = ..()
|
||||
|
||||
/obj/item/projectile/energy/sonic/proc/sonicboom(var/mob/living/carbon/M, var/ear_pain)
|
||||
to_chat(M, "<span class='danger'>You hear a loud roar.</span>")
|
||||
var/ear_safety = 0
|
||||
var/ear_effect = ear_pain
|
||||
ear_safety = M.get_ear_protection()
|
||||
if (ear_safety > 1)
|
||||
ear_effect *= 0.5
|
||||
else if (!ear_safety)
|
||||
ear_effect *= 2
|
||||
|
||||
M.adjustEarDamage(ear_effect, ear_effect*2)
|
||||
M.halloss += ear_effect
|
||||
|
||||
if (M.ear_damage >= 15)
|
||||
to_chat(M, "<span class='danger'>Your ears start to ring badly!</span>")
|
||||
M.confused = max(M.confused, 100) //Balance thrown off
|
||||
if (prob(M.ear_damage - 5))
|
||||
to_chat(M, "<span class='danger'>You can't hear anything!</span>")
|
||||
M.sdisabilities |= DEAF
|
||||
else
|
||||
if (M.ear_damage >= 5)
|
||||
to_chat(M, "<span class='danger'>Your ears start to ring!</span>")
|
||||
M.update_icons()
|
||||
|
||||
/obj/item/projectile/energy/sonic/weak
|
||||
damage = 10
|
||||
ear_pain = 20
|
||||
|
||||
/obj/item/projectile/energy/sonic/strong
|
||||
damage = 40
|
||||
ear_pain = 10
|
||||
Reference in New Issue
Block a user