Skip to content

Instantly share code, notes, and snippets.

process()
..()
injecting = 0
if(!on)
return 0
if(air_contents.temperature > 0)
var/transfer_moles = (air_contents.return_pressure())*volume_rate/(air_contents.temperature * R_IDEAL_GAS_EQUATION)
var getDensityOnMap = function(checkx, checky)
{
var ciy = 0;
for(var mapstring in map)
{
var tmp = map[mapstring];
for(var cix = 0; cix < map[mapstring].length; cix++)
{
if((cix+1) == checkx && (ciy+1) == checky);
{
if(strs.length >= 2)
println(tempstr);
int tempx, tempy;
tempx = int(strs[0])/4;
tempy = int(strs[1])/4;
rect(tempx, tempy, 4, 4);
@mloc
mloc / dm.c
Created May 27, 2012 18:42
DM Compiler
__size32 puts = 0x375e;// 4 bytes
__size32 ?IsFile@@YADPBD@Z = 0x33c4;// 4 bytes
void proc1();
void proc2();
void proc3();
void proc4();
void proc5();
// address: 0x401040
@mloc
mloc / gist:2815771
Created May 27, 2012 20:27
BYOND DLL functions
This file has been truncated, but you can view the full file.
==================================================
Function Name : `string'
Address : 0x101c179c
Relative Address : 0x001c179c
Ordinal : 373 (0x175)
Filename : byondcore.dll
Full Path : C:\Program Files\BYOND\bin\byondcore.dll
Type : Exported Function
==================================================
#include <SFML/Graphics.hpp>
#include <iostream>
#include <String>
using std::string;
string map ="\
SSSSSSSSSS\
SWWWWWWWWS\
SWFFFFFFWS\
/obj/item/clothing/glasses/cyberneticscarf/attack_hand(mob/user as mob)
if(istype(user, /mob/living/carbon/human) && istype(user:glasses, /obj/item/clothing/glasses/cyberneticscarf))
if(istype(access_point, /obj/machinery/vr_access))
if(access_point in range(2))
user << "\blue You activate the [src]..."
var/mob/living/carbon/human/simulation/M = new(access_point:entry_point)
M.real_mob = user
M.name = user.name
M.real_name = user:real_name
/vrscript
var/vrworld/vr_world //The VR world that this executor is working on.
var/loadedscript = "" //The currently loaded script.
var/vrscript_func/funcs[] //A list of parsed functions.
var/variables[] //A list of defined variables.
var/debounce = 0 //Because BYOND is SILLY.
@mloc
mloc / gist:5657760
Created May 27, 2013 15:53
No average - Self CPU sort
This file has been truncated, but you can view the full file.
Profile results (total time)
Proc Name Self CPU Total CPU Real Time Calls
----------------------------------------------------------------------------------------------- --------- --------- --------- ---------
/proc/playsound 2092.437 2101.276 2102.495 2334645
/atom/movable/Del 1196.484 1310.144 1310.479 772772
/zone/proc/process 1111.845 4641.693 4648.255 37448326
/connection/proc/Cleanup 742.901 962.924 970.728 39615264
/datum/controller/game_controller/proc/process_m
@mloc
mloc / gist:5657768
Created May 27, 2013 15:55
Average - Self CPU sort
This file has been truncated, but you can view the full file.
Profile results (average time)
Proc Name Self CPU Total CPU Real Time Calls
----------------------------------------------------------------------------------------------- --------- --------- --------- ---------
/datum/controller/lighting/proc/process 35.451 180.144 0.000 7
/datum/admins/proc/Jobbans 2.156 2.156 2.156 1
/proc/power_failure 1.141 8.438 8.438 1
/datum/controller/lighting/proc/Initialize 0.768 6.669 9.142 6
/datum/controller/gameticker/proc/station_explo