mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Merge branch 'Bleeding-Edge' of github.com:d3athrow/vgstation13 into Bleeding-Edge
This commit is contained in:
@@ -38,25 +38,25 @@
|
||||
var/fire_delay = 2
|
||||
var/last_fired = 0
|
||||
|
||||
proc/ready_to_fire()
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/ready_to_fire() called tick#: [world.time]")
|
||||
if(world.time >= last_fired + fire_delay)
|
||||
last_fired = world.time
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
|
||||
proc/process_chambered()
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/process_chambered() called tick#: [world.time]")
|
||||
/obj/item/weapon/gun/proc/ready_to_fire()
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/ready_to_fire() called tick#: [world.time]")
|
||||
if(world.time >= last_fired + fire_delay)
|
||||
last_fired = world.time
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
|
||||
proc/special_check(var/mob/M) //Placeholder for any special checks, like detective's revolver.
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/special_check() called tick#: [world.time]")
|
||||
return 1
|
||||
/obj/item/weapon/gun/proc/process_chambered()
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/process_chambered() called tick#: [world.time]")
|
||||
return 0
|
||||
|
||||
emp_act(severity)
|
||||
for(var/obj/O in contents)
|
||||
O.emp_act(severity)
|
||||
/obj/item/weapon/gun/proc/special_check(var/mob/M) //Placeholder for any special checks, like detective's revolver.
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/special_check() called tick#: [world.time]")
|
||||
return 1
|
||||
|
||||
/obj/item/weapon/gun/emp_act(severity)
|
||||
for(var/obj/O in contents)
|
||||
O.emp_act(severity)
|
||||
|
||||
/obj/item/weapon/gun/afterattack(atom/A as mob|obj|turf|area, mob/living/user as mob|obj, flag, params, struggle = 0)
|
||||
if(flag) return //we're placing gun on a table or in backpack
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
var/obj/item/weapon/gun/energy/temperature/T = null
|
||||
|
||||
/obj/item/projectile/temp/OnFired()
|
||||
..()
|
||||
T = shot_from
|
||||
temperature = T.temperature
|
||||
switch(temperature)
|
||||
|
||||
Reference in New Issue
Block a user