mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
just fuck my shit up
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
/proc/dopage(src,target)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/dopage() called tick#: [world.time]")
|
||||
var/href_list
|
||||
var/href
|
||||
href_list = params2list("src=\ref[src]&[target]=1")
|
||||
@@ -8,6 +9,7 @@
|
||||
return null
|
||||
|
||||
/proc/get_area(const/atom/O)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/get_area() called tick#: [world.time]")
|
||||
if (isnull(O))
|
||||
return
|
||||
|
||||
@@ -23,18 +25,21 @@
|
||||
return
|
||||
|
||||
/proc/get_area_master(const/O)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/get_area_master() called tick#: [world.time]")
|
||||
var/area/A = get_area(O)
|
||||
|
||||
if(isarea(A))
|
||||
return A
|
||||
|
||||
/proc/get_area_name(N) //get area by its name
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/get_area_name() called tick#: [world.time]")
|
||||
for(var/area/A in areas)
|
||||
if(A.name == N)
|
||||
return A
|
||||
return 0
|
||||
|
||||
/proc/in_range(source, user)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/in_range() called tick#: [world.time]")
|
||||
if(get_dist(source, user) <= 1)
|
||||
return 1
|
||||
|
||||
@@ -43,6 +48,8 @@
|
||||
// Like view but bypasses luminosity check
|
||||
/proc/get_hear(var/range, var/atom/source)
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/get_hear() called tick#: [world.time]")
|
||||
|
||||
var/lum = source.luminosity
|
||||
source.luminosity = 6
|
||||
|
||||
@@ -53,6 +60,7 @@
|
||||
|
||||
|
||||
/proc/alone_in_area(var/area/the_area, var/mob/must_be_alone, var/check_type = /mob/living/carbon)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/alone_in_area() called tick#: [world.time]")
|
||||
var/area/our_area = get_area_master(the_area)
|
||||
for(var/C in living_mob_list)
|
||||
if(!istype(C, check_type))
|
||||
@@ -65,6 +73,8 @@
|
||||
|
||||
/proc/circlerange(center=usr,radius=3)
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/circlerange() called tick#: [world.time]")
|
||||
|
||||
var/turf/centerturf = get_turf(center)
|
||||
var/list/turfs = new/list()
|
||||
var/rsq = radius * (radius+0.5)
|
||||
@@ -80,6 +90,8 @@
|
||||
|
||||
/proc/circleview(center=usr,radius=3)
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/circleview() called tick#: [world.time]")
|
||||
|
||||
var/turf/centerturf = get_turf(center)
|
||||
var/list/atoms = new/list()
|
||||
var/rsq = radius * (radius+0.5)
|
||||
@@ -94,6 +106,7 @@
|
||||
return atoms
|
||||
|
||||
/proc/get_dist_euclidian(atom/Loc1 as turf|mob|obj,atom/Loc2 as turf|mob|obj)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/get_dist_euclidian() called tick#: [world.time]")
|
||||
var/dx = Loc1.x - Loc2.x
|
||||
var/dy = Loc1.y - Loc2.y
|
||||
|
||||
@@ -103,6 +116,8 @@
|
||||
|
||||
/proc/circlerangeturfs(center=usr,radius=3)
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/circlerangeturfs() called tick#: [world.time]")
|
||||
|
||||
var/turf/centerturf = get_turf(center)
|
||||
var/list/turfs = new/list()
|
||||
var/rsq = radius * (radius+0.5)
|
||||
@@ -116,6 +131,8 @@
|
||||
|
||||
/proc/circleviewturfs(center=usr,radius=3) //Is there even a diffrence between this proc and circlerangeturfs()?
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/circleviewturfs() called tick#: [world.time]")
|
||||
|
||||
var/turf/centerturf = get_turf(center)
|
||||
var/list/turfs = new/list()
|
||||
var/rsq = radius * (radius+0.5)
|
||||
@@ -128,6 +145,7 @@
|
||||
return turfs
|
||||
|
||||
/proc/recursive_type_check(atom/O, type = /atom)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/recursive_type_check() called tick#: [world.time]")
|
||||
var/list/processing_list = list(O)
|
||||
var/list/processed_list = new/list()
|
||||
var/found_atoms = new/list()
|
||||
@@ -150,6 +168,7 @@
|
||||
//var/debug_mob = 0
|
||||
|
||||
/proc/get_contents_in_object(atom/O, type_path = /atom/movable)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/get_contents_in_object() called tick#: [world.time]")
|
||||
if (O)
|
||||
return recursive_type_check(O, type_path) - O
|
||||
else
|
||||
@@ -190,6 +209,7 @@ proc
|
||||
#undef SIGN
|
||||
|
||||
proc/isInSight(var/atom/A, var/atom/B)
|
||||
writepanic("[__FILE__].[__LINE__] \\/proc/isInSight() called tick#: [world.time]")
|
||||
var/turf/Aturf = get_turf(A)
|
||||
var/turf/Bturf = get_turf(B)
|
||||
|
||||
@@ -203,6 +223,7 @@ proc/isInSight(var/atom/A, var/atom/B)
|
||||
return 0
|
||||
|
||||
/proc/get_cardinal_step_away(atom/start, atom/finish) //returns the position of a step from start away from finish, in one of the cardinal directions
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/get_cardinal_step_away() called tick#: [world.time]")
|
||||
//returns only NORTH, SOUTH, EAST, or WEST
|
||||
var/dx = finish.x - start.x
|
||||
var/dy = finish.y - start.y
|
||||
@@ -218,12 +239,14 @@ proc/isInSight(var/atom/A, var/atom/B)
|
||||
return get_step(start, EAST)
|
||||
|
||||
/proc/try_move_adjacent(atom/movable/AM)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/try_move_adjacent() called tick#: [world.time]")
|
||||
var/turf/T = get_turf(AM)
|
||||
for(var/direction in cardinal)
|
||||
if(AM.Move(get_step(T, direction)))
|
||||
break
|
||||
|
||||
/proc/get_mob_by_key(var/key)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/get_mob_by_key() called tick#: [world.time]")
|
||||
for(var/mob/M in mob_list)
|
||||
if(M.ckey == lowertext(key))
|
||||
return M
|
||||
@@ -231,6 +254,7 @@ proc/isInSight(var/atom/A, var/atom/B)
|
||||
|
||||
//i think this is used soley by verb/give(), cael
|
||||
proc/check_can_reach(atom/user, atom/target)
|
||||
writepanic("[__FILE__].[__LINE__] \\/proc/check_can_reach() called tick#: [world.time]")
|
||||
if(!in_range(user,target))
|
||||
return 0
|
||||
return CanReachThrough(get_turf(user), get_turf(target), target)
|
||||
@@ -240,6 +264,8 @@ var/list/DummyCache = list()
|
||||
|
||||
/proc/CanReachThrough(turf/srcturf, turf/targetturf, atom/target, var/pass_flags=0)
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/CanReachThrough() called tick#: [world.time]")
|
||||
|
||||
var/obj/item/weapon/dummy/D = locate() in DummyCache
|
||||
if(!D)
|
||||
D = new /obj/item/weapon/dummy( srcturf )
|
||||
@@ -287,6 +313,7 @@ var/list/DummyCache = list()
|
||||
|
||||
// Will return a list of active candidates. It increases the buffer 5 times until it finds a candidate which is active within the buffer.
|
||||
/proc/get_active_candidates(var/role_id=null, var/buffer=ROLE_SELECT_AFK_BUFFER, var/poll=0)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/get_active_candidates() called tick#: [world.time]")
|
||||
var/list/candidates = list() //List of candidate mobs to assume control of the new larva ~fuck you
|
||||
var/i = 0
|
||||
while(candidates.len <= 0 && i < 5)
|
||||
@@ -310,6 +337,7 @@ var/list/DummyCache = list()
|
||||
return candidates
|
||||
|
||||
/proc/get_candidates(var/role_id=null)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/get_candidates() called tick#: [world.time]")
|
||||
. = list()
|
||||
for(var/mob/dead/observer/G in player_list)
|
||||
if(!(G.mind && G.mind.current && G.mind.current.stat != DEAD))
|
||||
@@ -317,6 +345,7 @@ var/list/DummyCache = list()
|
||||
. += G.client
|
||||
|
||||
/proc/ScreenText(obj/O, maptext="", screen_loc="CENTER-7,CENTER-7", maptext_height=480, maptext_width=480)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/ScreenText() called tick#: [world.time]")
|
||||
if(!isobj(O)) O = new /obj/screen/text()
|
||||
O.maptext = maptext
|
||||
O.maptext_height = maptext_height
|
||||
@@ -325,6 +354,7 @@ var/list/DummyCache = list()
|
||||
return O
|
||||
|
||||
/proc/Show2Group4Delay(obj/O, list/group, delay=0)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/Show2Group4Delay() called tick#: [world.time]")
|
||||
if(!isobj(O)) return
|
||||
if(!group) group = clients
|
||||
for(var/client/C in group)
|
||||
@@ -335,6 +365,7 @@ var/list/DummyCache = list()
|
||||
C.screen -= O
|
||||
|
||||
/proc/flick_overlay(image/I, list/show_to, duration)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/flick_overlay() called tick#: [world.time]")
|
||||
for(var/client/C in show_to)
|
||||
C.images += I
|
||||
sleep(duration)
|
||||
@@ -342,6 +373,7 @@ var/list/DummyCache = list()
|
||||
C.images -= I
|
||||
|
||||
/proc/get_active_player_count()
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/get_active_player_count() called tick#: [world.time]")
|
||||
// Get active players who are playing in the round
|
||||
var/active_players = 0
|
||||
for(var/i = 1; i <= player_list.len; i++)
|
||||
@@ -379,6 +411,8 @@ var/list/DummyCache = list()
|
||||
|
||||
/proc/projectile_trajectory(var/src_x, var/src_y, var/rotation, var/angle, var/power)
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/projectile_trajectory() called tick#: [world.time]")
|
||||
|
||||
// returns the destination (Vx,y) that a projectile shot at [src_x], [src_y], with an angle of [angle],
|
||||
// rotated at [rotation] and with the power of [power]
|
||||
// Thanks to VistaPOWA for this function
|
||||
@@ -396,6 +430,7 @@ var/list/DummyCache = list()
|
||||
|
||||
|
||||
/proc/mobs_in_area(var/area/the_area, var/client_needed=0, var/moblist=mob_list)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/mobs_in_area() called tick#: [world.time]")
|
||||
var/list/mobs_found[0]
|
||||
var/area/our_area = get_area_master(the_area)
|
||||
for(var/mob/M in moblist)
|
||||
@@ -407,15 +442,19 @@ var/list/DummyCache = list()
|
||||
return mobs_found
|
||||
|
||||
/proc/GetRedPart(const/hexa)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/GetRedPart() called tick#: [world.time]")
|
||||
return hex2num(copytext(hexa, 2, 4))
|
||||
|
||||
/proc/GetGreenPart(const/hexa)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/GetGreenPart() called tick#: [world.time]")
|
||||
return hex2num(copytext(hexa, 4, 6))
|
||||
|
||||
/proc/GetBluePart(const/hexa)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/GetBluePart() called tick#: [world.time]")
|
||||
return hex2num(copytext(hexa, 6, 8))
|
||||
|
||||
/proc/GetHexColors(const/hexa)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/GetHexColors() called tick#: [world.time]")
|
||||
return list(\
|
||||
GetRedPart(hexa),\
|
||||
GetGreenPart(hexa),\
|
||||
@@ -423,6 +462,7 @@ var/list/DummyCache = list()
|
||||
)
|
||||
|
||||
/proc/MixColors(const/list/colors)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/MixColors() called tick#: [world.time]")
|
||||
var/list/reds = new
|
||||
var/list/blues = new
|
||||
var/list/greens = new
|
||||
@@ -440,6 +480,7 @@ var/list/DummyCache = list()
|
||||
return rgb(r,g,b)
|
||||
|
||||
/proc/mixOneColor(var/list/weight, var/list/color)
|
||||
writepanic("[__FILE__].[__LINE__] (no type)([usr ? usr.ckey : ""]) \\/proc/mixOneColor() called tick#: [world.time]")
|
||||
if(!weight || !color || length(weight) != length(color))
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user