mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-06 23:12:36 +00:00
[MIRROR] You can no longer shoot and melee with guns at the same time (#3133)
* You can no longer shoot and melee with guns at the same time (#56647) * You can no longer shoot and melee with guns at the same time Co-authored-by: Qustinnus <Floydje123@hotmail.com>
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
var/semicd = 0 //cooldown handler
|
||||
var/weapon_weight = WEAPON_LIGHT
|
||||
var/dual_wield_spread = 24 //additional spread when dual wielding
|
||||
|
||||
|
||||
/// Just 'slightly' snowflakey way to modify projectile damage for projectiles fired from this gun.
|
||||
var/projectile_damage_multiplier = 1
|
||||
|
||||
@@ -212,7 +212,7 @@
|
||||
if(flag) //It's adjacent, is the user, or is on the user's person
|
||||
if(target in user.contents) //can't shoot stuff inside us.
|
||||
return
|
||||
if(!ismob(target) || !user.combat_mode) //melee attack
|
||||
if(!ismob(target) || user.combat_mode) //melee attack
|
||||
return
|
||||
if(target == user && user.zone_selected != BODY_ZONE_PRECISE_MOUTH) //so we can't shoot ourselves (unless mouth selected)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user