Skip to content

Instantly share code, notes, and snippets.

@Rumrusher
Rumrusher / RandomKillstreak.gml
Last active August 29, 2015 13:55
modified from 2 lorgens codes ps I have a github account who knew.
//killstreak plugin by Lorgan (original idea by Vindicator)
object_event_add(Character,ev_create,0,"
killStreak = 0;
currentStreak = global.paramPlayer.stats[KILLS];
");
object_event_add(Character,ev_step,ev_step_normal,"
if (!global.isHost) exit;
//killstreak plugin by Lorgan (original idea by Vindicator)
object_event_add(Character,ev_create,0,"
killStreak = 0;
currentStreak = global.paramPlayer.stats[KILLS];
");
object_event_add(PlayerControl,ev_create,0,"
alarm[0] = 300;
");
@Rumrusher
Rumrusher / Arenafriendly.lua
Created February 24, 2014 09:08
this script will set all your civ to be on the same side so that if you ever venture out to Arena mode you don't have to worry about too much chaos. PS someone could make this slightly more fort mode friendly but hey.
function Arenafriendly(unit,trgunit)
local adv=df.global.world.units.active[0].civ_id
for k,v in pairs(df.global.world.units.active) do
if v.civ_id==adv then
if v== nil then
error("Invalid creature")
end
trgunit=df.global.world.units.active[0]
@Rumrusher
Rumrusher / Solder_test.npc
Created March 2, 2014 15:41
a modified version of a rocketman dodge map script
instance_create(41*6,16*6,NPC01);
with(NPC01) {
createAllyQuote();
txt = "QQQQ-Hello.#This is a QQQQ-test map. QQQQ-";
intelTxt = "You got the QQQQ-intel!#QQQQ-Hello. What am I QQQQ-#doing here?";
object_event_add(NPC01, ev_other, NPC_EVENT_MEET, '
if(global.myself.object.intel) {
addDialog(intelTxt, face, subFace);
} else {
//combined RTD and Killstreak+BUFFS by Rumrusher/ZaSpai
//designed with partial Upgradeable Sentries (BassMakesPaste) compatibility
//original killstreak plugin by Lorgan (original idea by Vindicator)
//original rtd plugin by Lorgan
//edits the following: Sentry creation, begin and end steps, Sentry and N+B HUDs, numerous Character events, StabMask collision with Sentry and Character. Adds alarm[8] to Sentry and Character
//uses global.SerializeBuffer to sync new data. WILL CAUSE A HANG AND CRASH if you forget to take this plugin out when you join another server as client!!!
//known issues: incorrect new sentry build HP with respect to sentryBuffStats (IDK how to reference the Character object of the owner player of sentry). Haven't checked the sentry gibs issue thing (I may need to sync its bolt gain value)
//RTD mostly untouched apart from Rummy's inclusion of the Stomp attack for effect 16
//Now with Vindicators weapon mod thrown into the mix may god have mercy on our souls if this work.
//kinda wigs out i
//combined RTD and Killstreak+BUFFS by Rumrusher/ZaSpai
//designed with partial Upgradeable Sentries (BassMakesPaste) compatibility
//original killstreak plugin by Lorgan (original idea by Vindicator)
//original rtd plugin by Lorgan
//edits the following: Sentry creation, begin and end steps, Sentry and N+B HUDs, numerous Character events, StabMask collision with Sentry and Character. Adds alarm[8] to Sentry and Character
//uses global.SerializeBuffer to sync new data. WILL CAUSE A HANG AND CRASH if you forget to take this plugin out when you join another server as client!!!
//known issues: incorrect new sentry build HP with respect to sentryBuffStats (IDK how to reference the Character object of the owner player of sentry). Haven't checked the sentry gibs issue thing (I may need to sync its bolt gain value)
//RTD mostly untouched apart from Rummy's inclusion of the Stomp attack for effect 16
object_event_add(Character,ev_create,0,"
@Rumrusher
Rumrusher / Rocketbootz.gml
Created March 25, 2014 05:39
Goomba stomp + this = stomp fest with rocket bootz
if (player.class == CLASS_MEDIC || player.class == CLASS_ENGINEER || player.class == CLASS_SPY) && taunting{
if tauntindex == 0 or tauntindex == tauntlength {
//Nwith(SentryTurret) team = 3;
effect = noone;
vspeed = 15;
moveStatus = 1;
}
}
if (player.class == CLASS_SOLDIER || player.class == CLASS_DEMOMAN || player.class == CLASS_SNIPER || player.class == CLASS_MEDIC||player.class == CLASS_PYRO ){
@Rumrusher
Rumrusher / everyoneisEngi.gml
Created April 3, 2014 16:41
put this on your server if you want invisible Floating autoguns that fire on you.
//Roll The Dice server plugin by lorgan
// current error the new sentry drop causes the plugin to add extra speed and send it plumeting to it's doom, also needs to be server sent so that players can see the orbital strike cannons.
global.canRoll = true;
global.effects = 28;
global.effect[0] = " Exploded!";
global.effect[1] = " Turned into a timebomb! Detonation in 10 seconds!"
global.effect[2] = " froze for 10 seconds!";
global.effect[3] = " Lost health!"
global.effect[4] = " can't jump for 20 seconds!";
@Rumrusher
Rumrusher / Conga.gml
Created July 6, 2014 10:16
Conga attempt needs spriteloader and to be converted into a serversent.
object_event_add(Character,ev_step,ev_step_normal,'
repeat(global.frameskip)
{
// Do movement
if(taunting)
{
hspeed *= delta_mult_skip(baseFriction);
}
}
@Rumrusher
Rumrusher / spawn.lua
Created July 24, 2014 21:09
40.0x version of the script
--create unit at pointer or given location and with given civ (usefull to pass -1 for enemy). Usage e.g. "spawnunit DWARF 0 Dwarfy"
--[=[
Creature (ID), caste (number), name, x,y,z , civ_id(-1 for enemy, optional) for spawn.
Made by warmist, but edited by Putnam for the dragon ball mod to be used in reactions
note that it's extensible to any autosyndrome reaction to spawn anything due to this; to use in autosyndrome, you want \COMMAND spawnunit CREATURE caste_number name \LOCATION
TODO:
birth time
death time
real body size
blood max