mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 16:10:02 +01:00
Throwing Firearms (#23085)
* Firearms can no longer be thrown while on harm intent, preventing accidental throws when attempting to fire. AI usage disclosure: The code for the tweaks here was created using GPT 5.6 Sol.
This commit is contained in:
@@ -413,6 +413,9 @@ GLOBAL_LIST_INIT(slot_equipment_priority, list(
|
||||
var/atom/movable/item = src.get_active_hand()
|
||||
if(!item)
|
||||
return FALSE
|
||||
if(a_intent == I_HURT && !item.can_throw_on_harm)
|
||||
balloon_alert(src, item.throw_on_harm_alert)
|
||||
return TRUE
|
||||
|
||||
var/throw_range = item.throw_range
|
||||
var/itemsize
|
||||
|
||||
@@ -55,6 +55,8 @@ ABSTRACT_TYPE(/obj/item/gun)
|
||||
throwforce = 5
|
||||
throw_speed = 4
|
||||
throw_range = 5
|
||||
can_throw_on_harm = FALSE
|
||||
throw_on_harm_alert = "can't throw firearms on harm intent!"
|
||||
force = 11
|
||||
origin_tech = list(TECH_COMBAT = 1)
|
||||
attack_verb = list("struck", "hit", "bashed")
|
||||
|
||||
Reference in New Issue
Block a user