mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Cleared out my WIP folder.
This commit is contained in:
@@ -1,32 +0,0 @@
|
|||||||
|
|
||||||
// MOVED HERE FROM ULTRALIGHT WHICH IS PROBABLY A BAD THING
|
|
||||||
#define UL_I_FALLOFF_SQUARE 0
|
|
||||||
#define UL_I_FALLOFF_ROUND 1
|
|
||||||
#define ul_FalloffStyle UL_I_FALLOFF_ROUND // Sets the lighting falloff to be either squared or circular.
|
|
||||||
var/list/ul_FastRoot = list(0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5,
|
|
||||||
5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
|
|
||||||
7, 7)
|
|
||||||
|
|
||||||
atom/proc/ul_FalloffAmount(var/atom/ref)
|
|
||||||
if (ul_FalloffStyle == UL_I_FALLOFF_ROUND)
|
|
||||||
var/delta_x = (ref.x - src.x)
|
|
||||||
var/delta_y = (ref.y - src.y)
|
|
||||||
|
|
||||||
#ifdef ul_LightingResolution
|
|
||||||
if (round((delta_x*delta_x + delta_y*delta_y)*ul_LightingResolutionSqrt,1) > ul_FastRoot.len)
|
|
||||||
for(var/i = ul_FastRoot.len, i <= round(delta_x*delta_x+delta_y*delta_y*ul_LightingResolutionSqrt,1), i++)
|
|
||||||
ul_FastRoot += round(sqrt(i))
|
|
||||||
return ul_FastRoot[round((delta_x*delta_x + delta_y*delta_y)*ul_LightingResolutionSqrt, 1) + 1]/ul_LightingResolution
|
|
||||||
|
|
||||||
#else
|
|
||||||
if ((delta_x*delta_x + delta_y*delta_y) > ul_FastRoot.len)
|
|
||||||
for(var/i = ul_FastRoot.len, i <= delta_x*delta_x+delta_y*delta_y, i++)
|
|
||||||
ul_FastRoot += round(sqrt(i))
|
|
||||||
return ul_FastRoot[delta_x*delta_x + delta_y*delta_y + 1]
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
else if (ul_FalloffStyle == UL_I_FALLOFF_SQUARE)
|
|
||||||
return get_dist(src, ref)
|
|
||||||
|
|
||||||
return 0
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
// Reference: http://www.teuse.net/personal/harrington/hh_bible.htm
|
|
||||||
// http://www.trmn.org/portal/images/uniforms/rmn/rmn_officer_srv_dress_lrg.png
|
|
||||||
|
|
||||||
/obj/item/clothing/head/beret/centcom/officer
|
|
||||||
name = "officers beret"
|
|
||||||
desc = "A black beret adorned with the shield<6C>a silver kite shield with an engraved sword<72>of the NanoTrasen security forces, announcing to the world that the wearer is a defender of NanoTrasen."
|
|
||||||
icon_state = "centcomofficerberet"
|
|
||||||
|
|
||||||
/obj/item/clothing/head/beret/centcom/captain
|
|
||||||
name = "captains beret"
|
|
||||||
desc = "A white beret adorned with the shield<6C>a cobalt kite shield with an engraved sword<72>of the NanoTrasen security forces, worn only by those captaining a vessel of the NanoTrasen Navy."
|
|
||||||
icon_state = "centcomcaptain"
|
|
||||||
|
|
||||||
/obj/item/clothing/shoes/centcom
|
|
||||||
name = "dress shoes"
|
|
||||||
desc = "They appear impeccably polished."
|
|
||||||
icon_state = "laceups"
|
|
||||||
|
|
||||||
/obj/item/clothing/under/rank/centcom/representative
|
|
||||||
desc = "Gold trim on space-black cloth, this uniform displays the rank of \"Ensign\" and bears \"N.C.V. Fearless CV-286\" on the left shounder."
|
|
||||||
name = "\improper NanoTrasen Navy Uniform"
|
|
||||||
icon_state = "officer"
|
|
||||||
item_state = "g_suit"
|
|
||||||
item_color = "officer"
|
|
||||||
displays_id = 0
|
|
||||||
|
|
||||||
/obj/item/clothing/under/rank/centcom/officer
|
|
||||||
desc = "Gold trim on space-black cloth, this uniform displays the rank of \"Lieutenant Commander\" and bears \"N.C.V. Fearless CV-286\" on the left shounder."
|
|
||||||
name = "\improper NanoTrasen Officers Uniform"
|
|
||||||
icon_state = "officer"
|
|
||||||
item_state = "g_suit"
|
|
||||||
item_color = "officer"
|
|
||||||
displays_id = 0
|
|
||||||
|
|
||||||
/obj/item/clothing/under/rank/centcom/captain
|
|
||||||
desc = "Gold trim on space-black cloth, this uniform displays the rank of \"Captain\" and bears \"N.C.V. Fearless CV-286\" on the left shounder."
|
|
||||||
name = "\improper NanoTrasen Captains Uniform"
|
|
||||||
icon_state = "centcom"
|
|
||||||
item_state = "dg_suit"
|
|
||||||
item_color = "centcom"
|
|
||||||
displays_id = 0
|
|
||||||
@@ -89,7 +89,7 @@ obj/item/check_airflow_movable(n)
|
|||||||
if(src:shoes:magpulse)
|
if(src:shoes:magpulse)
|
||||||
return
|
return
|
||||||
src << "\red You are sucked away by airflow!"
|
src << "\red You are sucked away by airflow!"
|
||||||
var/airflow_falloff = 9 - ul_FalloffAmount(airflow_dest) //It's a fast falloff calc. Very useful.
|
var/airflow_falloff = 9 - sqrt((x - airflow_dest.x) ** 2 + (y - airflow_dest.y) ** 2)
|
||||||
if(airflow_falloff < 1)
|
if(airflow_falloff < 1)
|
||||||
airflow_dest = null
|
airflow_dest = null
|
||||||
return
|
return
|
||||||
@@ -154,7 +154,7 @@ obj/item/check_airflow_movable(n)
|
|||||||
return
|
return
|
||||||
src << "\red You are pushed away by airflow!"
|
src << "\red You are pushed away by airflow!"
|
||||||
last_airflow = world.time
|
last_airflow = world.time
|
||||||
var/airflow_falloff = 9 - ul_FalloffAmount(airflow_dest) //It's a fast falloff calc. Very useful.
|
var/airflow_falloff = 9 - sqrt((x - airflow_dest.x) ** 2 + (y - airflow_dest.y) ** 2)
|
||||||
if(airflow_falloff < 1)
|
if(airflow_falloff < 1)
|
||||||
airflow_dest = null
|
airflow_dest = null
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -736,8 +736,8 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
|
|||||||
M.equip_syndicate_commando()
|
M.equip_syndicate_commando()
|
||||||
|
|
||||||
if("nanotrasen representative")
|
if("nanotrasen representative")
|
||||||
M.equip_if_possible(new /obj/item/clothing/under/rank/centcom/representative(M), slot_w_uniform)
|
M.equip_if_possible(new /obj/item/clothing/under/rank/centcom(M), slot_w_uniform)
|
||||||
M.equip_if_possible(new /obj/item/clothing/shoes/centcom(M), slot_shoes)
|
M.equip_if_possible(new /obj/item/clothing/shoes/laceup(M), slot_shoes)
|
||||||
M.equip_if_possible(new /obj/item/clothing/gloves/white(M), slot_gloves)
|
M.equip_if_possible(new /obj/item/clothing/gloves/white(M), slot_gloves)
|
||||||
M.equip_if_possible(new /obj/item/device/radio/headset/heads/hop(M), slot_l_ear)
|
M.equip_if_possible(new /obj/item/device/radio/headset/heads/hop(M), slot_l_ear)
|
||||||
|
|
||||||
@@ -761,8 +761,8 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
|
|||||||
M.equip_if_possible(W, slot_wear_id)
|
M.equip_if_possible(W, slot_wear_id)
|
||||||
|
|
||||||
if("nanotrasen officer")
|
if("nanotrasen officer")
|
||||||
M.equip_if_possible(new /obj/item/clothing/under/rank/centcom/officer(M), slot_w_uniform)
|
M.equip_if_possible(new /obj/item/clothing/under/rank/centcom_officer(M), slot_w_uniform)
|
||||||
M.equip_if_possible(new /obj/item/clothing/shoes/centcom(M), slot_shoes)
|
M.equip_if_possible(new /obj/item/clothing/shoes/laceup(M), slot_shoes)
|
||||||
M.equip_if_possible(new /obj/item/clothing/gloves/white(M), slot_gloves)
|
M.equip_if_possible(new /obj/item/clothing/gloves/white(M), slot_gloves)
|
||||||
M.equip_if_possible(new /obj/item/device/radio/headset/heads/captain(M), slot_l_ear)
|
M.equip_if_possible(new /obj/item/device/radio/headset/heads/captain(M), slot_l_ear)
|
||||||
M.equip_if_possible(new /obj/item/clothing/head/beret/centcom/officer(M), slot_head)
|
M.equip_if_possible(new /obj/item/clothing/head/beret/centcom/officer(M), slot_head)
|
||||||
@@ -786,8 +786,8 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
|
|||||||
|
|
||||||
|
|
||||||
if("nanotrasen captain")
|
if("nanotrasen captain")
|
||||||
M.equip_if_possible(new /obj/item/clothing/under/rank/centcom/captain(M), slot_w_uniform)
|
M.equip_if_possible(new /obj/item/clothing/under/rank/centcom_captain(M), slot_w_uniform)
|
||||||
M.equip_if_possible(new /obj/item/clothing/shoes/centcom(M), slot_shoes)
|
M.equip_if_possible(new /obj/item/clothing/shoes/laceup(M), slot_shoes)
|
||||||
M.equip_if_possible(new /obj/item/clothing/gloves/white(M), slot_gloves)
|
M.equip_if_possible(new /obj/item/clothing/gloves/white(M), slot_gloves)
|
||||||
M.equip_if_possible(new /obj/item/device/radio/headset/heads/captain(M), slot_l_ear)
|
M.equip_if_possible(new /obj/item/device/radio/headset/heads/captain(M), slot_l_ear)
|
||||||
M.equip_if_possible(new /obj/item/clothing/head/beret/centcom/captain(M), slot_head)
|
M.equip_if_possible(new /obj/item/clothing/head/beret/centcom/captain(M), slot_head)
|
||||||
|
|||||||
@@ -219,7 +219,7 @@
|
|||||||
|
|
||||||
/obj/effect/landmark/corpse/commander
|
/obj/effect/landmark/corpse/commander
|
||||||
name = "Commander"
|
name = "Commander"
|
||||||
corpseuniform = /obj/item/clothing/under/rank/centcom_commander
|
corpseuniform = /obj/item/clothing/under/rank/centcom_captain
|
||||||
corpsesuit = /obj/item/clothing/suit/armor/bulletproof
|
corpsesuit = /obj/item/clothing/suit/armor/bulletproof
|
||||||
corpseradio = /obj/item/device/radio/headset/heads/captain
|
corpseradio = /obj/item/device/radio/headset/heads/captain
|
||||||
corpseglasses = /obj/item/clothing/glasses/eyepatch
|
corpseglasses = /obj/item/clothing/glasses/eyepatch
|
||||||
|
|||||||
@@ -657,7 +657,7 @@ var/global/list/gear_datums = list()
|
|||||||
|
|
||||||
/datum/gear/dress_shoes
|
/datum/gear/dress_shoes
|
||||||
display_name = "shoes, dress"
|
display_name = "shoes, dress"
|
||||||
path = /obj/item/clothing/shoes/centcom
|
path = /obj/item/clothing/shoes/laceup
|
||||||
cost = 1
|
cost = 1
|
||||||
slot = slot_shoes
|
slot = slot_shoes
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,14 @@
|
|||||||
name = "purple beret"
|
name = "purple beret"
|
||||||
desc = "A stylish, if purple, beret."
|
desc = "A stylish, if purple, beret."
|
||||||
icon_state = "purpleberet"
|
icon_state = "purpleberet"
|
||||||
|
/obj/item/clothing/head/beret/centcom/officer
|
||||||
|
name = "officers beret"
|
||||||
|
desc = "A black beret adorned with the shield<6C>a silver kite shield with an engraved sword<72>of the NanoTrasen security forces."
|
||||||
|
icon_state = "centcomofficerberet"
|
||||||
|
/obj/item/clothing/head/beret/centcom/captain
|
||||||
|
name = "captains beret"
|
||||||
|
desc = "A white beret adorned with the shield<6C>a silver kite shield with an engraved sword<72>of the NanoTrasen security forces."
|
||||||
|
icon_state = "centcomcaptain"
|
||||||
|
|
||||||
//Medical
|
//Medical
|
||||||
/obj/item/clothing/head/surgery
|
/obj/item/clothing/head/surgery
|
||||||
|
|||||||
@@ -61,19 +61,30 @@
|
|||||||
item_state = "gy_suit"
|
item_state = "gy_suit"
|
||||||
item_color = "vice"
|
item_color = "vice"
|
||||||
|
|
||||||
/obj/item/clothing/under/rank/centcom_officer
|
|
||||||
desc = "It's a jumpsuit worn by CentCom Officers."
|
/obj/item/clothing/under/rank/centcom
|
||||||
name = "\improper CentCom officer's jumpsuit"
|
desc = "Gold trim on space-black cloth, this uniform displays the rank of \"Ensign.\""
|
||||||
|
name = "\improper NanoTrasen Navy Uniform"
|
||||||
icon_state = "officer"
|
icon_state = "officer"
|
||||||
item_state = "g_suit"
|
item_state = "g_suit"
|
||||||
item_color = "officer"
|
item_color = "officer"
|
||||||
|
displays_id = 0
|
||||||
|
|
||||||
/obj/item/clothing/under/rank/centcom_commander
|
/obj/item/clothing/under/rank/centcom_officer
|
||||||
desc = "It's a jumpsuit worn by CentCom's highest-tier Commanders."
|
desc = "Gold trim on space-black cloth, this uniform displays the rank of \"Lieutenant Commander.\""
|
||||||
name = "\improper CentCom officer's jumpsuit"
|
name = "\improper NanoTrasen Officers Uniform"
|
||||||
|
icon_state = "officer"
|
||||||
|
item_state = "g_suit"
|
||||||
|
item_color = "officer"
|
||||||
|
displays_id = 0
|
||||||
|
|
||||||
|
/obj/item/clothing/under/rank/centcom_captain
|
||||||
|
desc = "Gold trim on space-black cloth, this uniform displays the rank of \"Captain.\""
|
||||||
|
name = "\improper NanoTrasen Captains Uniform"
|
||||||
icon_state = "centcom"
|
icon_state = "centcom"
|
||||||
item_state = "dg_suit"
|
item_state = "dg_suit"
|
||||||
item_color = "centcom"
|
item_color = "centcom"
|
||||||
|
displays_id = 0
|
||||||
|
|
||||||
/obj/item/clothing/under/ert
|
/obj/item/clothing/under/ert
|
||||||
name = "ERT tactical uniform"
|
name = "ERT tactical uniform"
|
||||||
|
|||||||
Reference in New Issue
Block a user