Skip to content

Instantly share code, notes, and snippets.

@caligari87
Last active July 31, 2019 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caligari87/b335c5f84337c2f88e5cc0d4e328e590 to your computer and use it in GitHub Desktop.
Save caligari87/b335c5f84337c2f88e5cc0d4e328e590 to your computer and use it in GitHub Desktop.
Oops All Marines: Small mutator for Hideous Destructor that makes all monsters into enemy marines.
gameinfo {
AddEventHandlers = "OopsAllMarines"
}
version "4.1"
class OopsAllMarines : EventHandler {
override void WorldThingSpawned(worldevent e) {
if(!e.thing) { return; }
if(!(e.thing is 'HDMobBase')) { return; }
if(e.thing is 'HDMarine') { return; }
bool friend = e.thing.bFRIENDLY;
vector3 thingpos = e.thing.pos;
double thingangle = e.thing.angle;
e.thing.destroy();
actor newmarine = Actor.spawn("Tango", thingpos);
newmarine.angle = thingangle;
newmarine.bFRIENDLY = friend;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment