mirror of
https://github.com/Aurorastation/Aurora-Old.git
synced 2026-08-28 23:26:17 +01:00
Fixing switchable rifles
Fixes for the pulse rifle and energyrifle, changes the proc to a verb. Need to see if this actually works.
This commit is contained in:
@@ -273,7 +273,17 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out.
|
||||
fire_delay_wielded = 25
|
||||
fire_delay_unwielded = 75
|
||||
|
||||
attack_self(mob/living/user as mob)
|
||||
// attack_self(mob/living/user as mob)
|
||||
//Let's do some magical things, make this a verb, yes?
|
||||
//Needs some testing done, primary concerns: useability (when restrained, etc.) and icon updating
|
||||
verb/toggle()
|
||||
set name = "Switch weapon mode"
|
||||
set category = "Object"
|
||||
set src in usr
|
||||
|
||||
if(!usr.canmove || usr.stat || usr.restrained())
|
||||
return 0
|
||||
|
||||
switch(mode)
|
||||
if(2)
|
||||
mode = 0
|
||||
@@ -329,7 +339,15 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out.
|
||||
var/mode = 0 //0 = stun, 1 = kill
|
||||
|
||||
|
||||
attack_self(mob/living/user as mob)
|
||||
// attack_self(mob/living/user as mob)
|
||||
verb/toggle()
|
||||
set name = "Switch weapon mode"
|
||||
set category = "Object"
|
||||
set src in usr
|
||||
|
||||
if(!usr.canmove || usr.stat || usr.restrained())
|
||||
return 0
|
||||
|
||||
switch(mode)
|
||||
if(0)
|
||||
mode = 1
|
||||
|
||||
Reference in New Issue
Block a user