mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
undefines our defines (#8506)
This commit is contained in:
10
code/__defines/projectile_cm.dm
Normal file
10
code/__defines/projectile_cm.dm
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#define NO_AUTO_LOAD 0
|
||||||
|
#define OPEN_BOLT 1
|
||||||
|
#define CLOSED_BOLT 2
|
||||||
|
#define LOCK_OPEN_EMPTY 4
|
||||||
|
#define LOCK_MANUAL_LOCK 8
|
||||||
|
#define LOCK_SLAPPABLE 16
|
||||||
|
#define CHAMBER_ON_RELOAD 32
|
||||||
|
|
||||||
|
#define INTERNAL_MAG_SEPARATE 1
|
||||||
|
#define IS_PUMP_SHOTGUN 2
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
#define FIRE_PRIORITY_REFLECTOR 20
|
#define FIRE_PRIORITY_REFLECTOR 20
|
||||||
|
|
||||||
SUBSYSTEM_DEF(reflector)
|
SUBSYSTEM_DEF(reflector)
|
||||||
name = "Reflectors"
|
name = "Reflectors"
|
||||||
priority = FIRE_PRIORITY_REFLECTOR
|
priority = FIRE_PRIORITY_REFLECTOR
|
||||||
@@ -44,3 +45,5 @@ SUBSYSTEM_DEF(reflector)
|
|||||||
return
|
return
|
||||||
|
|
||||||
current_thing = null
|
current_thing = null
|
||||||
|
|
||||||
|
#undef FIRE_PRIORITY_REFLECTOR
|
||||||
|
|||||||
@@ -173,4 +173,11 @@
|
|||||||
/obj/machinery/intershipdeployer/proc/SpawnPackage(var/list/objs)
|
/obj/machinery/intershipdeployer/proc/SpawnPackage(var/list/objs)
|
||||||
var/obj/structure/closet/crate/C = new/obj/structure/closet/crate
|
var/obj/structure/closet/crate/C = new/obj/structure/closet/crate
|
||||||
C.contents = objs
|
C.contents = objs
|
||||||
C.loc = src.loc
|
C.loc = src.loc
|
||||||
|
|
||||||
|
#undef SERVERS
|
||||||
|
#undef OPTIONS
|
||||||
|
#undef RECEIVE
|
||||||
|
#undef REC_CONF
|
||||||
|
#undef SENDING
|
||||||
|
#undef CHAT
|
||||||
|
|||||||
@@ -692,4 +692,5 @@
|
|||||||
|
|
||||||
#undef WARNING_DELAY
|
#undef WARNING_DELAY
|
||||||
|
|
||||||
|
#undef SUPERMATTER_COUNTDOWN_TIME
|
||||||
#undef SUPERMATTER_ACCENT_SOUND_COOLDOWN
|
#undef SUPERMATTER_ACCENT_SOUND_COOLDOWN
|
||||||
|
|||||||
@@ -1,14 +1,3 @@
|
|||||||
#define NO_AUTO_LOAD 0
|
|
||||||
#define OPEN_BOLT 1
|
|
||||||
#define CLOSED_BOLT 2
|
|
||||||
#define LOCK_OPEN_EMPTY 4
|
|
||||||
#define LOCK_MANUAL_LOCK 8
|
|
||||||
#define LOCK_SLAPPABLE 16
|
|
||||||
#define CHAMBER_ON_RELOAD 32
|
|
||||||
|
|
||||||
#define INTERNAL_MAG_SEPARATE 1
|
|
||||||
#define IS_PUMP_SHOTGUN 2
|
|
||||||
|
|
||||||
#define BOLT_NOEVENT 0
|
#define BOLT_NOEVENT 0
|
||||||
#define BOLT_CLOSED 1
|
#define BOLT_CLOSED 1
|
||||||
#define BOLT_OPENED 2
|
#define BOLT_OPENED 2
|
||||||
@@ -114,7 +103,7 @@
|
|||||||
playsound(src, sound_ejectchamber, 50, 0)
|
playsound(src, sound_ejectchamber, 50, 0)
|
||||||
user.visible_message("<span class='notice'>[user] pulls back \the [bolt_name] and locks it in the open position[casing_chambered][other_ejected].</span>", \
|
user.visible_message("<span class='notice'>[user] pulls back \the [bolt_name] and locks it in the open position[casing_chambered][other_ejected].</span>", \
|
||||||
"<span class='notice'>You pull back \the [bolt_name] and lock it in the open position[other_ejected][casing_chambered].</span>")
|
"<span class='notice'>You pull back \the [bolt_name] and lock it in the open position[other_ejected][casing_chambered].</span>")
|
||||||
else
|
else
|
||||||
user.visible_message("<span class='notice'>[user] pulls back \the [bolt_name] before releasing it, causing it to lock in the open position[casing_chambered][other_ejected].</span>", \
|
user.visible_message("<span class='notice'>[user] pulls back \the [bolt_name] before releasing it, causing it to lock in the open position[casing_chambered][other_ejected].</span>", \
|
||||||
"<span class='notice'>You pull back \the [bolt_name] before releasing it, causing it to lock in the open position[casing_chambered][other_ejected].</span>")
|
"<span class='notice'>You pull back \the [bolt_name] before releasing it, causing it to lock in the open position[casing_chambered][other_ejected].</span>")
|
||||||
else
|
else
|
||||||
@@ -167,7 +156,7 @@
|
|||||||
else
|
else
|
||||||
bolt_open = TRUE
|
bolt_open = TRUE
|
||||||
var/ejected = process_chambered()
|
var/ejected = process_chambered()
|
||||||
|
|
||||||
var/output = BOLT_OPENED
|
var/output = BOLT_OPENED
|
||||||
if(ejected) output |= BOLT_CASING_EJECTED
|
if(ejected) output |= BOLT_CASING_EJECTED
|
||||||
//if(chambering) output |= BOLT_CASING_CHAMBERED
|
//if(chambering) output |= BOLT_CASING_CHAMBERED
|
||||||
@@ -300,7 +289,7 @@
|
|||||||
chamber_bullet()
|
chamber_bullet()
|
||||||
bolt_toggle()
|
bolt_toggle()
|
||||||
playsound(src, 'sound/weapons/flipblade.ogg', 50, 1)
|
playsound(src, 'sound/weapons/flipblade.ogg', 50, 1)
|
||||||
user.hud_used.update_ammo_hud(user, src)
|
user.hud_used.update_ammo_hud(user, src)
|
||||||
if(SPEEDLOADER)
|
if(SPEEDLOADER)
|
||||||
if(only_open_load && !bolt_open)
|
if(only_open_load && !bolt_open)
|
||||||
to_chat(user, "<span_class='warning'>[src] must have its bolt open to be loaded!</span>")
|
to_chat(user, "<span_class='warning'>[src] must have its bolt open to be loaded!</span>")
|
||||||
@@ -320,7 +309,7 @@
|
|||||||
if(count)
|
if(count)
|
||||||
user.visible_message("[user] reloads [src].", "<span class='notice'>You load [count] round\s into [src].</span>")
|
user.visible_message("[user] reloads [src].", "<span class='notice'>You load [count] round\s into [src].</span>")
|
||||||
playsound(src, 'sound/weapons/empty.ogg', 50, 1)
|
playsound(src, 'sound/weapons/empty.ogg', 50, 1)
|
||||||
user.hud_used.update_ammo_hud(user, src)
|
user.hud_used.update_ammo_hud(user, src)
|
||||||
AM.update_icon()
|
AM.update_icon()
|
||||||
else if(istype(A, /obj/item/ammo_casing))
|
else if(istype(A, /obj/item/ammo_casing))
|
||||||
var/obj/item/ammo_casing/C = A
|
var/obj/item/ammo_casing/C = A
|
||||||
@@ -334,15 +323,15 @@
|
|||||||
if(do_after(user,5))
|
if(do_after(user,5))
|
||||||
user.visible_message("<span class='notice'>[user] slides \the [C] into the [src]'s chamber.</span>","<span class='notice'>You slide \the [C] into the [src]'s chamber.</span>")
|
user.visible_message("<span class='notice'>[user] slides \the [C] into the [src]'s chamber.</span>","<span class='notice'>You slide \the [C] into the [src]'s chamber.</span>")
|
||||||
chambered = C
|
chambered = C
|
||||||
user.hud_used.update_ammo_hud(user, src)
|
user.hud_used.update_ammo_hud(user, src)
|
||||||
else
|
else
|
||||||
return
|
return
|
||||||
else if(!(CHECK_BITFIELD(auto_loading_type,LOCK_OPEN_EMPTY) || (CHECK_BITFIELD(auto_loading_type,LOCK_MANUAL_LOCK))))
|
else if(!(CHECK_BITFIELD(auto_loading_type,LOCK_OPEN_EMPTY) || (CHECK_BITFIELD(auto_loading_type,LOCK_MANUAL_LOCK))))
|
||||||
if(do_after(user,15))
|
if(do_after(user,15))
|
||||||
user.visible_message("<span class='notice'>[user] holds open \the [src]'s [bolt_name] and slides [C] into the chamber before letting the bolt close again.</span>","<span class='notice'>You slide \the [C] into the [src]'s chamber.</span>")
|
user.visible_message("<span class='notice'>[user] holds open \the [src]'s [bolt_name] and slides [C] into the chamber before letting the bolt close again.</span>","<span class='notice'>You slide \the [C] into the [src]'s chamber.</span>")
|
||||||
|
|
||||||
chambered = C
|
chambered = C
|
||||||
user.hud_used.update_ammo_hud(user, src)
|
user.hud_used.update_ammo_hud(user, src)
|
||||||
else
|
else
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
@@ -372,7 +361,7 @@
|
|||||||
loaded.Insert(1, C) //add to the head of the list
|
loaded.Insert(1, C) //add to the head of the list
|
||||||
user.visible_message("[user] inserts \a [C] into [src].", "<span class='notice'>You insert \a [C] into [src].</span>")
|
user.visible_message("[user] inserts \a [C] into [src].", "<span class='notice'>You insert \a [C] into [src].</span>")
|
||||||
playsound(src, 'sound/weapons/empty.ogg', 50, 1)
|
playsound(src, 'sound/weapons/empty.ogg', 50, 1)
|
||||||
user.hud_used.update_ammo_hud(user, src)
|
user.hud_used.update_ammo_hud(user, src)
|
||||||
|
|
||||||
else if(istype(A, /obj/item/weapon/storage))
|
else if(istype(A, /obj/item/weapon/storage))
|
||||||
var/obj/item/weapon/storage/storage = A
|
var/obj/item/weapon/storage/storage = A
|
||||||
@@ -386,7 +375,7 @@
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
load_ammo(ammo, user)
|
load_ammo(ammo, user)
|
||||||
user.hud_used.update_ammo_hud(user, src)
|
user.hud_used.update_ammo_hud(user, src)
|
||||||
|
|
||||||
if(loaded.len >= max_shells)
|
if(loaded.len >= max_shells)
|
||||||
to_chat(user, "<span class='warning'>[src] is full.</span>")
|
to_chat(user, "<span class='warning'>[src] is full.</span>")
|
||||||
@@ -495,3 +484,11 @@
|
|||||||
if(!istype(P))
|
if(!istype(P))
|
||||||
return
|
return
|
||||||
P.sub_velocity(P.velocity - 35)
|
P.sub_velocity(P.velocity - 35)
|
||||||
|
|
||||||
|
#undef BOLT_NOEVENT
|
||||||
|
#undef BOLT_CLOSED
|
||||||
|
#undef BOLT_OPENED
|
||||||
|
#undef BOLT_LOCKED
|
||||||
|
#undef BOLT_UNLOCKED
|
||||||
|
#undef BOLT_CASING_EJECTED
|
||||||
|
#undef BOLT_CASING_CHAMBERED
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ only use the hollow_point and armor_penetration values.*/
|
|||||||
energy = max(0,energy - amount)
|
energy = max(0,energy - amount)
|
||||||
velocity = sqrt(2*energy/(grains / GRAINS_PER_KG))
|
velocity = sqrt(2*energy/(grains / GRAINS_PER_KG))
|
||||||
|
|
||||||
|
#undef GRAINS_PER_KG
|
||||||
|
|
||||||
//Pistol projectiles
|
//Pistol projectiles
|
||||||
/obj/item/projectile/bullet/pistol //9x19mm
|
/obj/item/projectile/bullet/pistol //9x19mm
|
||||||
fire_sound = 'sound/weapons/ballistics/a9mm.ogg'
|
fire_sound = 'sound/weapons/ballistics/a9mm.ogg'
|
||||||
@@ -568,4 +570,4 @@ only use the hollow_point and armor_penetration values.*/
|
|||||||
|
|
||||||
/obj/item/projectile/bullet/pistol/medium/ap/suppressor/turbo // spicy boys
|
/obj/item/projectile/bullet/pistol/medium/ap/suppressor/turbo // spicy boys
|
||||||
speed = 0.2 // this is 4x projectile speed
|
speed = 0.2 // this is 4x projectile speed
|
||||||
hud_state = "monkey"
|
hud_state = "monkey"
|
||||||
|
|||||||
@@ -163,4 +163,9 @@
|
|||||||
When a new zone has been scanned, your station's shuttle destination will be updated to direct it to the newly discovered area automatically.<br>
|
When a new zone has been scanned, your station's shuttle destination will be updated to direct it to the newly discovered area automatically.<br>
|
||||||
You can then travel to the new area to mine in that location.<br>
|
You can then travel to the new area to mine in that location.<br>
|
||||||
<br>
|
<br>
|
||||||
<font size=1>This technology produced under license from Thinktronic Systems, LTD.</font>"}
|
<font size=1>This technology produced under license from Thinktronic Systems, LTD.</font>"}
|
||||||
|
|
||||||
|
|
||||||
|
#undef OUTPOST_Z
|
||||||
|
#undef TRANSIT_Z
|
||||||
|
#undef BELT_Z
|
||||||
|
|||||||
@@ -101,6 +101,7 @@
|
|||||||
#include "code\__defines\process_scheduler.dm"
|
#include "code\__defines\process_scheduler.dm"
|
||||||
#include "code\__defines\procpath.dm"
|
#include "code\__defines\procpath.dm"
|
||||||
#include "code\__defines\projectile.dm"
|
#include "code\__defines\projectile.dm"
|
||||||
|
#include "code\__defines\projectile_cm.dm"
|
||||||
#include "code\__defines\projectiles.dm"
|
#include "code\__defines\projectiles.dm"
|
||||||
#include "code\__defines\qdel.dm"
|
#include "code\__defines\qdel.dm"
|
||||||
#include "code\__defines\recipe.dm"
|
#include "code\__defines\recipe.dm"
|
||||||
|
|||||||
Reference in New Issue
Block a user