Post: [Release] Zombie Turret (Verruckt Only)
02-19-2013, 02:40 AM #1
coolbunny1234
the bunny who started it all
(adsbygoogle = window.adsbygoogle || []).push({}); Browsing through the asylum fastfile, stumbled upon this. Just removed the triggers and waits, and bam! Got a working turret. Treyarch never should have taken this out :'(

Also threw in cripplers zombie swag Winky Winky



    
Fountain_Mg42_Activate()
{
if( IsSubStr( level.script, "nazi_zombie_asylum" ) ) {
self thread Fountain_Mg42_Activate1(30);
} else {
self iPrintln("Verruckt Only!");
}
}

Fountain_Mg42_Activate1(time)
{
self iPrintln("Turrect Activated For " +time+ " Seconds!");
trig = getent("trig_courtyard_mg","targetname");
trig sethintstring(&"ZOMBIE_USE_AUTO_TURRET");

mgs = getentarray( "fountain_mg", "targetname" );
fake_mgs = getentarray("fake_mg","script_noteworthy");

//hide the real mg's
for(i=0;i<mgs.size;i++)
{
mgs[i] hide();
}
trig.is_activated = true;
trig trigger_off();
trig sethintstring(&"ZOMBIE_FLAMES_UNAVAILABLE");
//the fountain top sinks down
fountain_top = getent("fountain_top","targetname");
fountain_top moveto(fountain_top.origin + (0,0,-200),3);
fountain_top waittill("movedone");
trig trigger_on();
fountain_mg = getentarray( "fountain_turret", "targetname" );
for(i=0;i<fountain_mg.size;i++)
{
fountain_mg[i] moveto(fountain_mg[i].origin + (0,0,200),3);
}
fountain_mg[0] waittill("movedone");
//hide the fake MG's once they're in place
for(i=0;i<fake_mgs.size;i++)
{
fake_mgs[i] hide();
}
array_thread(fake_mgs,::trigger_off);
//show the real MG's
for(i=0;i<mgs.size;i++)
{
mgs[i] show();
}
for(i=0;i<mgs.size;i++)
{
mg = mgs[i];
mg setTurretTeam( "allies" );
mg SetMode( "auto_nonai" );
mg thread maps\_mgturret::burst_fire_unmanned();
}
wait(time);
self iPrintln("Turret ^2Over");
for(i=0;i<mgs.size;i++)
{
mg = mgs[i];
mg notify("stop_burst_fire_unmanned");
mg SetMode( "manual" );
}
array_thread(fake_mgs,::trigger_on);
for(i=0;i<fake_mgs.size;i++)
{
fake_mgs[i] show();
}
for(i=0;i<mgs.size;i++)
{
mgs[i] hide();
}
for(i=0;i<fountain_mg.size;i++)
{
fountain_mg[i] moveto(fountain_mg[i].origin + (0,0,-200),3);
}
fountain_mg[0] waittill("movedone");
fountain_top moveto(fountain_top.origin + (0,0,200),3);
fountain_top waittill("movedone");
wait(15);
trig.is_activated = undefined;
trig sethintstring(&"ZOMBIE_USE_AUTO_TURRET");
}


Pastebin as well.

You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 4 users say thank you to coolbunny1234 for this useful post:

TheMightyMoJo, philipeininger, primetime43, Taylor
02-27-2013, 08:04 PM #11
primetime43
Knowledge is power Tiphat
Originally posted by coolbunny1234 View Post
No I was in rehab...


Why were you in rehab?
03-04-2013, 03:23 PM #12
coolbunny1234
the bunny who started it all
Originally posted by primetime43 View Post
Why were you in rehab?


Bad things man, spent 6 months there.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo