mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 20:17:15 +01:00
Comments out the automatic firemode code (#4748)
This commit is contained in:
+7
-4
@@ -1,3 +1,6 @@
|
||||
//This entire file is unticked for quality control and testing
|
||||
|
||||
|
||||
//True automagic gun modes. Dakka dakka.
|
||||
//A significant portion of this code was donated by Mport from SS:CM
|
||||
|
||||
@@ -35,7 +38,7 @@
|
||||
autodel()
|
||||
return
|
||||
if(gun.shooting == 0)
|
||||
del(src)
|
||||
qdel(src)
|
||||
else
|
||||
autodel()//Yes in theory this could hit the inf loop
|
||||
return
|
||||
@@ -55,15 +58,15 @@
|
||||
if(over_location != loc)//This updates the loc to our new location when we drag it to a new turf
|
||||
loc = over_location
|
||||
if((usr.get_active_hand() != gun))
|
||||
del(src)
|
||||
qdel(src)
|
||||
|
||||
//This gets rid of us when they let go of the click, but only after they actually drag the target to a new turf which is why the below also has to exist
|
||||
/obj/screen/auto_target/MouseDrop(over_object,src_location,over_location,src_control,over_control,params)
|
||||
del(src)
|
||||
qdel(src)
|
||||
return
|
||||
//This is needed so if they just MouseDown and then let go it will stop shooting, otherwise we stick around till they run out of bullets
|
||||
/obj/screen/auto_target/MouseUp(object,location,control,params)
|
||||
del(src)
|
||||
qdel(src)
|
||||
return
|
||||
|
||||
//This pseudo code is being left in place to serve as references to the modifications to gun.dm, the Fire() proc, and the afterattack() proc. -k22
|
||||
@@ -190,14 +190,22 @@
|
||||
|
||||
one_handed_penalty = 6
|
||||
|
||||
var/cover_open = 0
|
||||
|
||||
/* Commented out for quality control and testing.
|
||||
firemodes = list(
|
||||
list(mode_name="semiauto", burst=1, fire_delay=0, move_delay=null, burst_accuracy=null, dispersion=null, automatic = 0),
|
||||
list(mode_name="3-round bursts", burst=3, fire_delay=null, move_delay=4, burst_accuracy=list(0,-1,-1), dispersion=list(0.0, 0.6, 1.0), automatic = 0),
|
||||
list(mode_name="short bursts", burst=5, move_delay=6, burst_accuracy = list(0,-1,-1,-2,-2), dispersion = list(0.6, 1.0, 1.0, 1.0, 1.2), automatic = 0),
|
||||
list(mode_name="automatic", burst=1, fire_delay=-1, move_delay=null, burst_accuracy=null, dispersion=null, automatic = 1),
|
||||
)
|
||||
*/
|
||||
|
||||
var/cover_open = 0
|
||||
firemodes = list(
|
||||
list(mode_name="semiauto", burst=1, fire_delay=0, move_delay=null, burst_accuracy=null, dispersion=null),
|
||||
list(mode_name="3-round bursts", burst=3, fire_delay=null, move_delay=4, burst_accuracy=list(0,-1,-1), dispersion=list(0.0, 0.6, 1.0)),
|
||||
list(mode_name="short bursts", burst=5, move_delay=6, burst_accuracy = list(0,-1,-1,-2,-2), dispersion = list(0.6, 1.0, 1.0, 1.0, 1.2)),
|
||||
)
|
||||
|
||||
/obj/item/weapon/gun/projectile/automatic/l6_saw/special_check(mob/user)
|
||||
if(cover_open)
|
||||
|
||||
Reference in New Issue
Block a user