Skip to content

Instantly share code, notes, and snippets.

View arctic5's full-sized avatar

jason arctic5

View GitHub Profile
@arctic5
arctic5 / steamchat
Created August 8, 2013 06:42
steamchat
#SharkWeek: http://forum.wippies.com/wiki/Port_forwarding_using_UPnP
#SharkWeek: we dont need to write a program
Orangestar: Oh I just used a java program
Orangestar: So
Orangestar: Time to uh
Orangestar: Download prboom+
Orangestar: http://prboom-plus.sourceforge.net/
#SharkWeek: yes im already there
Orangestar: Kk
#SharkWeek: so what does zdoom have that skulltag dont?
@arctic5
arctic5 / gist:6196534
Created August 9, 2013 19:37
respawntimer code
//respawn timer here
if (global.respawntimer == 1)
if time <= global.Server_Respawntime time += 1
else instance_destroy();
if instance_exists(global.myself)
if global.myself.object != -1 instance_destroy();
if (global.myself.team != TEAM_SPECTATOR)
{
if !instance_exists(ArenaHUD)
draw_text(xoffset+10, yoffset+10,'Respawn in ' +string(floor((global.Server_Respawntime-time)/30))+ ' seconds.')
var buffer;
buffer = buffer_create();
if ownerPlayer == -1
{
with Player
{
if name == other.name
{
other.ownerPlayer = id;
var name
global.names = 5
object_event_add(OptionsController,ev_create,0,'
menu_addlink("Generate Random Name", "
name = floor(random(global.names));
switch(name) {
case 1: name = "name1"; break;
case 2: name = "name2"; break;
case 3: name = "name3"; break;
case 4: name = "name4"; break;
@arctic5
arctic5 / customtimelimits.c
Last active December 22, 2015 13:58
my idea on doing custom map times
//goes in game_init
global.ctftimelimit = max(1, min(255, ini_read_real("Server", " Ctf Time Limit", 2)));
global.cptimelimit = max(1, min(255, ini_read_real("Server", " Cp Time Limit", 3)));
global.gentimelimit = max(1, min(255, ini_read_real("Server", " Gen Time Limit", 4)));
global.arenatimelimit = max(1, min(255, ini_read_real("Server", " Arena Time Limit", 5)));
ini_write_real("Server", "Ctf Time Limit", global.ctftimelimit);
ini_write_real("Server", "Cp Time Limit", global.cptimelimit);
ini_write_real("Server", "Gen Time Limit", global.gentimelimit);
ini_write_real("Server", "Arena Time Limit", global.arenatimelimit);
@arctic5
arctic5 / readme
Last active December 23, 2015 02:29
an updated readme for the new website design
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="keywords" content="force dropbox http to use utf-8 (◡‿◡✿)">
<title>Gang Garrison 2</title>
<link rel="stylesheet" type="text/css" href="chum.css" />
<meta name="viewport" content="width=device-width, user-scalable=false;">
<!-- Flatter JS -->
@arctic5
arctic5 / supersmashbros.c
Last active December 23, 2015 16:49
super smash bros pre-realease
//Arctics Super Smash Bros Plugin
//prepare for some shitty object_event_clears and object_event_adds that change only one value
//and make the code much longer than it probably should be
object_event_add(Character,ev_step,ev_step_normal, "
//sorta shitty invincibility code
if (hp < maxHp)
{
hp = maxHp;
}
//make a new menu for plugin options
if !variable_global_exists("pluginOptions") {
global.pluginOptions = object_add();
object_set_parent(global.pluginOptions,OptionsController);
object_set_depth(global.pluginOptions,-130000);
object_event_add(global.pluginOptions,ev_create,0,'
menu_create(40, 140, 300, 200, 30);
if room != Options {
menu_setdimmed();
@arctic5
arctic5 / stuff2remember
Last active December 23, 2015 19:09
stuff to remember when billy or wolfram asks for help
Shanoa: ban people
Wolfram Akari: only if it's you XD
Shanoa: gimme a custom title while u have control of this account
Wolfram Akari: err no lol
//make a new menu for plugin options
if !variable_global_exists("pluginOptions") {
global.pluginOptions = object_add();
object_set_parent(global.pluginOptions,OptionsController);
object_set_depth(global.pluginOptions,-130000);
object_event_add(global.pluginOptions,ev_create,0,'
menu_create(40, 140, 300, 200, 30);
if room != Options {
menu_setdimmed();