Files
Aurora.3/code/game/objects/auras/radiant_aura.dm
T
FluffyandGitHub c24b4c7097 Projectile refactoring madness (#19878)
Refactored the projectile code, mostly in line with TG's now.
Refactored various procs that are used or depends on it.
Projectiles can now ricochet if enabled to.
Damage falloffs with distance.
Homing projectiles can now have accuracy falloff with distance.
Projectiles have a maximum range.
Muzzle flash is configurable per projectile.
Impact effect of the projectile is configurable per projectile.
Accuracy decreases with distance.
Projectiles work with signals and emits them, for easy hooking up from
other parts of the code.
Meatshielding is now less effective .
Impact sound is now configurable per projectile.

High risk.
2024-09-23 10:12:57 +00:00

29 lines
1.1 KiB
Plaintext

/obj/aura/radiant_aura
name = "radiant aura"
icon = 'icons/effects/effects.dmi'
icon_state = "at_shield1"
alpha = 75
layer = ABOVE_WINDOW_LAYER
/obj/aura/radiant_aura/handle_bullet_act(datum/source, obj/projectile/projectile)
if(projectile.check_armor == LASER)
user.visible_message(SPAN_WARNING("\The [projectile] refracts, bending into \the [user]'s aura."))
return COMPONENT_BULLET_BLOCKED
/obj/aura/radiant_aura/added_to(mob/living/user)
..()
to_chat(user, SPAN_NOTICE("A bubble of light appears around you, exuding protection and warmth."))
set_light(6, 6, COLOR_AMBER)
/obj/aura/radiant_aura/Destroy()
to_chat(user, SPAN_WARNING("Your protective aura dissipates, leaving you feeling cold and unsafe."))
return ..()
/obj/aura/radiant_aura/bullet_act(obj/projectile/hitting_projectile, def_zone, piercing_hit)
SHOULD_CALL_PARENT(FALSE) //Ancient coders deserve the rope
if(hitting_projectile.check_armor == LASER)
user.visible_message(SPAN_WARNING("\The [hitting_projectile] refracts, bending into \the [user]'s aura."))
return AURA_FALSE
return FALSE