- Makes it so micros can be affected by recoil or not. (Disabled on Virgo, used downstream)
This commit is contained in:
Cameron Lennox
2025-02-07 12:20:46 -05:00
committed by GitHub
parent 3ac6fb4edf
commit 71627d97ce
6 changed files with 19 additions and 1 deletions
+13
View File
@@ -94,6 +94,7 @@
var/obj/item/dnalockingchip/attached_lock
var/last_shot = 0 //records the last shot fired
var/recoil_mode = 0 //If the gun will hurt micros if shot or not. Disabled on Virgo, used downstream.
//VOREStation Add - /tg/ icon system
var/charge_sections = 4
@@ -418,6 +419,18 @@
user.hud_used.update_ammo_hud(user, src)
user.setClickCooldown(DEFAULT_QUICK_COOLDOWN)
if(recoil_mode && iscarbon(user))
var/mob/living/carbon/micro = user
var/mysize = micro.size_multiplier
if(recoil_mode > 0)
if(mysize <= 0.60)
micro.Weaken(1*recoil_mode)
if(!istype(src,/obj/item/gun/energy))
micro.adjustBruteLoss((5-mysize*4)*recoil_mode)
to_chat(micro, span_danger("You're so tiny that you drop the gun and hurt yourself from the recoil!"))
else
to_chat(micro, span_danger("You're so tiny that the pull of the trigger causes you to drop the gun!"))
if(!(target && target.loc))
target = targloc
pointblank = 0
@@ -20,6 +20,7 @@
charge_cost = 200 //slightly more shots than lasers
var/safetycatch = 0 //if 1, won't let you fire in pressurised environment, rather than malfunctioning
var/obj/item/pressurelock/attached_safety
recoil_mode = 0
/obj/item/gun/energy/particle/advanced //particle equivalent of AEG
@@ -11,6 +11,7 @@
charge_cost = 240
projectile_type = /obj/item/projectile/energy/phase
one_handed_penalty = 15
recoil_mode = 0
/obj/item/gun/energy/phasegun/mounted
self_recharge = 1
@@ -65,4 +66,4 @@
charge_cost = 100
projectile_type = /obj/item/projectile/energy/phase/heavy/cannon
accuracy = 15
one_handed_penalty = 65
one_handed_penalty = 65
@@ -79,6 +79,7 @@
list(mode_name="lethal", fire_delay=12, projectile_type=/obj/item/projectile/beam/blue, modifystate="phaserkill", charge_cost = 300),
list(mode_name="low-power", fire_delay=8, projectile_type=/obj/item/projectile/beam/weaklaser/blue, modifystate="phaserstun", charge_cost = 100),
)
recoil_mode = 0
/obj/item/gun/energy/locked/frontier/unload_ammo(var/mob/user)
if(recharging)
@@ -49,6 +49,7 @@
battery_lock = 1
var/decl/plantgene/gene = null
recoil_mode = 0
var/obj/item/stock_parts/micro_laser/emitter
firemodes = list(