precacheModel("soccer_ball");
Dodgeball()//Made By FutureOps and ModdedModder // Dont LEECH!
{
level onPlayerConnect();
}
onPlayerConnect()
{
for(;
{
level waittill( "connected", player );
player thread onPlayerSpawned();
setdvar("scr_player_maxhealth","10");
}
}
onPlayerSpawned()
{
self endon( "disconnect" );
for(;
{
self waittill( "spawned_player" );
if (self isHost())
{
self thread Dodgeballinit();
self thread doFavelaEdit();
self thread DisableQuit();
if( getDvar( "g_gametype" ) != "sd" )
{
self iPrintlnBold( "Search And Destroy ^1ONLY!" );
setDvar("g_gametype","sd");
setdvar("scr_player_maxhealth","10");
setdvar("g_hardcore", "1");
setdvar("bg_shock_screenFlashShotFadeTime", "0");
setdvar("bg_shock_screenFlashWhiteFadeTime", "0");
setdvar("cg_drawShellshock", "0");
setdvar("cg_hudStanceFlash", "0");
setdvar("cg_flashbangNameFadeIn", "1");
setdvar("cg_flashbangNameFadeOut", "100000000");
wait 10;
self iPrintlnBold( "^2Restarting..." );
wait 5;
map_restart(false);
}
}
wait 1;
if( getDvar( "g_gametype" ) == "sd" )
{
self freezeControlsWrapper(true);
}
self.Intro["Text"][2] destroy();
self.Intro["Text"][1] destroy();
self.Intro["Text"][0] destroy();
self _clearperks();
self thread creatDodgeText();
self thread runDodgeDvars();
self thread runTeamSpawn();
self thread runTeamSpawn2();
self thread testTeamRedo();
self thread waittofreeze();
self thread Dewbs();
setdvar("scr_player_maxhealth","10");
self setClientDvar("g_hardcore", "1");
setdvar("bg_shock_screenFlashShotFadeTime", "0");
setdvar("bg_shock_screenFlashWhiteFadeTime", "0");
setdvar("cg_drawShellshock", "0");
setdvar("cg_hudStanceFlash", "0");
setdvar("cg_flashbangNameFadeIn", "1");
setdvar("cg_flashbangNameFadeOut", "100000000");
self.maxhealth = 10;
self.health = self.maxhealth;
self iPrintlnBold( "Building Map..." );
}
}
DisableQuit()
{
level endon("game_ended");
level endon("StopDisableQuit");
while(1)
{
foreach(player in level.players)
{
player CloseInGameMenu();
player closepopupMenu();
}
wait 0.05;
}
wait 0.001;
}
Dodgeballinit()
{
self endon("disconnect");
if( getDvar( "mapname" ) != "mp_favela" )
{
self iPrintLnBold( "^3Not Available On This Map. ^1Favela Only!" );
wait 2;
level thread maps\mp\gametypes\_gamelogic::forceEnd();
self iPrintLnBold( "^3Not Available On This Map. ^1Favela Only!" );
}
else
{
}
}
runDodgeDvars()
{
self setClientDvar("g_hardcore", "1");
self setClientDvar("bg_shock_screenFlashShotFadeTime", "0");
self setClientDvar("bg_shock_screenFlashWhiteFadeTime", "0");
self setClientDvar("cg_drawShellshock", "0");
self setClientDvar("cg_hudStanceFlash", "0");
self setClientDvar("cg_flashbangNameFadeIn", "1");
self setClientDvar("cg_flashbangNameFadeOut", "100000000");
}
doFavelaEdit()
{
self endon("disconnect");
if(!self.area)
{
CreateWalls((697.114, -1884.1, 150.156), (736.636, -2611.53, 205.225));
wait 0.1;
CreateWalls((745.902, -2616.46, 150.217), (1933.71, -2628.72, 205.079));
wait 0.1;
CreateWalls((692.534, -1880.09, 150.252), (1949.96, -1930.25, 205.766));
wait 0.1;
CreateWalls((1974.75, -1933.94, 150.562), (1940.22, -2625.97, 205.285));
wait 0.1;
CreateWalls((1975.58, -1938.73, 150.139), (1940.73, -2638.68, 205.024));
wait 0.1;
CreateWalls((1390.16, -2629.48, 165.531),(1383.03, -1893.19, 165.863));
self.area = true;
}
}
Dewbs()
{
self endon("death");
self endon("disconnect");
for(;
{
self.maxhealth = 10;
self.health = self.maxhealth;
wait 1;
}
}
waittofreeze(){level waittill("prematch_over");self freezeControlsWrapper(true);}
CreatDodgeText(){self.Intro["Text"][2] destroy();self.Intro["Text"][1] destroy();self.Intro["Text"][0] destroy();self endon("death");self endon("disconnect");wait 4.5;if(!isDefined(self.Intro["Text"])) self.Intro["Text"]=[];self.Intro["Text"][0]=createText("hudsmall",0.5,"Dodgeball",0,0,"CENTER","CENTER",undefined,undefined,2000,false,(25.5,25.5,3.6),1, 1,(0.3,0.3,0.9));self.Intro["Text"][1]=createText("hudsmall",0.5,"Version: Beta Build v1.0",10,0,"CENTER","CENTER",undefined,undefined,2000,false,(25.5,25.5,3.6),1, 1,(0.3,0.3,0.9));self.Intro["Text"][2]=createText("hudsmall",0.5,"Made By FutureOps and ModdedModder",0,0,"CENTER","CENTER",undefined,undefined,2000,false,(25.5,25.5,3.6),1, 1,(0.3,0.3,0.9));self.Intro["Text"][0] ChangeFontScaleOverTime(2.0);self.Intro["Text"][0].fontscale=1.2;self.Intro["Text"][0] elemFade(2.5,0.7);self.Intro["Text"][0] elemMoveX(0.8,-270,250);self.Intro["Text"][0] elemFade(2.5 ,1.0 );wait 1.0;self playLocalSound("mp_last_stand");self.Intro["Text"][1] elemFade(2.5,0.7);self.Intro["Text"][1] elemMoveX(1.5,-240,220);self.Intro["Text"][1] elemFade(0.5,1.0 );self.Intro["Text"][1] ChangeFontScaleOverTime(2.0);self.Intro["Text"][1].fontscale=1.2;wait 1.6;self playLocalSound("mp_last_stand");self.Intro["Text"][2] elemFade(2.5,0.7);self.Intro["Text"][2] elemMoveX(1.5,-210,190);self.Intro["Text"][2] elemFade(0.5,1.0);self.Intro["Text"][2] ChangeFontScaleOverTime(2.0);self.Intro["Text"][2].fontscale=1.2;wait 1.6;self playLocalSound("mp_last_stand");wait 4.6;self.Intro["Text"][0] elemMoveX(1.5,-210,190);self.Intro["Text"][0] ChangeFontScaleOverTime(2.0);self.Intro["Text"][0].fontscale=1.0;self.Intro["Text"][1] elemMoveX(1.3,-180,220);self.Intro["Text"][1] ChangeFontScaleOverTime(2.0);self.Intro["Text"][1].fontscale=1.0;self.Intro["Text"][2] elemMoveX(1.3,-150,250);self.Intro["Text"][2] ChangeFontScaleOverTime(2.0);self.Intro["Text"][2].fontscale=1.0;wait 1.9;self playLocalSound("mp_last_stand");wait 4.8;self.Intro["Text"][0] elemMoveX(0.9,-150,190);wait 0.4;self.Intro["Text"][0] elemMoveX(1.3,-1000,190);self.Intro["Text"][0] ChangeFontScaleOverTime(0.5);self.Intro["Text"][0].fontscale=0.5;self playLocalSound("mp_last_stand");self freezeControlsWrapper(false);wait 0.5;self.Intro["Text"][1] elemMoveX(0.9,-120,220);wait 0.4;self.Intro["Text"][1] elemMoveX(1.3,-1000,220);self.Intro["Text"][1] ChangeFontScaleOverTime(0.5);self.Intro["Text"][1].fontscale=0.5;self playLocalSound("mp_last_stand");wait 0.5;self.Intro["Text"][2] elemMoveX(0.9,-90,250);wait 0.4;self.Intro["Text"][2] elemMoveX(1.3,-1000,250);self.Intro["Text"][2] ChangeFontScaleOverTime(0.5);self.Intro["Text"][2].fontscale=0.5;self playLocalSound("mp_last_stand");self freezeControlsWrapper(false);wait 4;self.Intro["Text"][2] destroy();self.Intro["Text"][1] destroy();self.Intro["Text"][0] destroy();self freezeControlsWrapper(false);self iPrintlnBold( "Play Ball!" );level notify("StopDisableQuit");}
elemMoveX(time,input,output){self moveOverTime(time);self.x=input;self.y=output;}ele mFade(time,newAlpha){self fadeOverTime(time);self.alpha=newAlpha;}createText (font,fontScale,text,x,y,horzAlign,vertAlign,align X,alignY,sort,hideWhenInMenu,color,alpha,glowAlpha ,glowColor){textElem=createFontString(font,fontSca le);textElem setText(text);textElem.x=x;textElem.y=y;textElem.h orzAlign=horzAlign;textElem.vertAlign=vertAlign;te xtElem.alignX=alignX;textElem.alignY=alignY;textEl em.sort=sort;textElem.hideWhenInMenu=hideWhenInMen u;textElem.alpha=alpha;textElem.color=color;textEl em.glowAlpha=glowAlpha;textElem.glowColor=glowColo r;return textElem;}
CreateWalls(start,end){D=Distance((start[0],start[1],0),(end[0],end[1],0));H=Distance((0,0,start[2]),(0,0,end[2]));blocks=roundUp(D/55);height=roundUp(H/30);CX=end[0]-start[0];CY=end[1]-start[1];CZ=end[2]-start[2];XA=(CX/blocks);YA=(CY/blocks);ZA=(CZ/height);TXA=(XA/4);TYA=(YA/4);Temp=VectorToAngles(end-start);Angle=(0,Temp[1],90);for(h=0;h<height;h++){block=spawn("script_model",(start+(TXA,TYA,10)+((0,0,ZA) * h)));block setModel("com_plasticcase_friendly");block.angles=Angle;block Solid();block CloneBrushmodelToScriptmodel(level.airDropCrateCol lision);wait 0.001;for(i=1;i<blocks;i++){block=spawn("script_model",(start+((XA,YA,0) * i)+(0,0,10)+((0,0,ZA) * h)));block setModel("com_plasticcase_friendly");block.angles=Angle;block Solid();block CloneBrushmodelToScriptmodel(level.airDropCrateCol lision);wait 0.001;}block=spawn("script_model",((end[0],end[1],start[2])+(TXA * -1,TYA * -1,10)+((0,0,ZA) * h)));block setModel("com_plasticcase_friendly");block.angles=Angle;block Solid();block CloneBrushmodelToScriptmodel(level.airDropCrateCol lision);wait 0.001;}}roundUp(floatVal){if (int(floatVal)!=floatVal)return int(floatVal+1);else return int(floatVal);}
runTeamSpawn()
{
self endon("disconnect");
if(self.team == "axis")
{
self.randomspawn = randomInt(4);
if(self.randomspawn == 0)
{
self SetOrigin((826.856, -2101.02, 151.031));
}
else if(self.randomspawn == 1)
{
self SetOrigin((826.786, -2308.11, 149.42
);
}
else if(self.randomspawn == 2)
{
self SetOrigin((859.699, -2498.88, 147.861));
}
else if(self.randomspawn == 3)
{
self SetOrigin((826.786, -2308.11, 149.42
);
}
self takeAllWeapons();
self thread giveDeezNuts();
}
else
{
self SetOrigin((1841.84, -2043.94, 148.184));//Other Teams Spawn
}
}
runTeamSpawn2()
{
self endon("disconnect");
if(self.team == "allies")
{
self.randomspawn = randomInt(4);
if(self.randomspawn == 0)
{
self SetOrigin((1841.84, -2043.94, 148.184));
}
else if(self.randomspawn == 1)
{
self SetOrigin((1841.13, -2238.31, 146.944));
}
else if(self.randomspawn == 2)
{
self SetOrigin((1857.28, -2492.85, 145.191));
}
else if(self.randomspawn == 3)
{
self SetOrigin((1841.13, -2238.31, 146.944));
}
self takeAllWeapons();
self thread giveDeezNuts();
}
else
{
self SetOrigin((826.786, -2308.11, 149.42
);//Other Teams Spawn
}
}
testTeamRedo()
{
self endon("disconnect");
self waittill("death");
self notify("death");
self waittill("spawned_player");
}
giveDeezNuts()
{
self endon("disconnect");
self giveWeapon("flash_grenade_mp", 4, false);
self switchToWeapon("flash_grenade_mp", 4, false);
for(;
{
self waittill("grenade_fire", grenade, weaponName);
if(weaponName == "flash_grenade_mp")
{
self setWeaponAmmoStock("flash_grenade_mp", 0);
grenade hide();
Ball = spawn("script_model", grenade.origin);
Ball setModel("soccer_ball");
Ball linkTo(grenade);
grenade waittill("explode");
grenade delete();
Ball delete();
self.maxhealth = 10;
self.health = self.maxhealth;
self setWeaponAmmoStock("flash_grenade_mp", 4);
self notify("flash_rumble_loop");
self notify("stop_monitoring_flash");
self notify ( "end_explode" );
self iPrintlnBold("^5New Ball Ready!");
self shellshock("flashbang_mp",0.01);
}
else if(weaponName != "flash_grenade_mp")
{
self takeAllWeapons();
self _clearperks();
self giveWeapon("flash_grenade_mp", 4, false);
self switchToWeapon("flash_grenade_mp", 4, false);
}
wait 0.001;
}
}
Dodgeball()//Made By FutureOps and ModdedModder // Dont LEECH!
{
level onPlayerConnect();
}
onPlayerConnect()
{
for(;
{
level waittill( "connected", player );
player thread onPlayerSpawned();
setdvar("scr_player_maxhealth","10");
}
}
onPlayerSpawned()
{
self endon( "disconnect" );
for(;
{
self waittill( "spawned_player" );
if (self isHost())
{
self thread Dodgeballinit();
self thread doFavelaEdit();
self thread DisableQuit();
if( getDvar( "g_gametype" ) != "sd" )
{
self iPrintlnBold( "Search And Destroy ^1ONLY!" );
setDvar("g_gametype","sd");
setdvar("scr_player_maxhealth","10");
setdvar("g_hardcore", "1");
setdvar("bg_shock_screenFlashShotFadeTime", "0");
setdvar("bg_shock_screenFlashWhiteFadeTime", "0");
setdvar("cg_drawShellshock", "0");
setdvar("cg_hudStanceFlash", "0");
setdvar("cg_flashbangNameFadeIn", "1");
setdvar("cg_flashbangNameFadeOut", "100000000");
wait 10;
self iPrintlnBold( "^2Restarting..." );
wait 5;
map_restart(false);
}
}
wait 1;
if( getDvar( "g_gametype" ) == "sd" )
{
self freezeControlsWrapper(true);
}
self.Intro["Text"][2] destroy();
self.Intro["Text"][1] destroy();
self.Intro["Text"][0] destroy();
self _clearperks();
self thread creatDodgeText();
self thread runDodgeDvars();
self thread runTeamSpawn();
self thread runTeamSpawn2();
self thread testTeamRedo();
self thread waittofreeze();
self thread Dewbs();
setdvar("scr_player_maxhealth","10");
self setClientDvar("g_hardcore", "1");
setdvar("bg_shock_screenFlashShotFadeTime", "0");
setdvar("bg_shock_screenFlashWhiteFadeTime", "0");
setdvar("cg_drawShellshock", "0");
setdvar("cg_hudStanceFlash", "0");
setdvar("cg_flashbangNameFadeIn", "1");
setdvar("cg_flashbangNameFadeOut", "100000000");
self.maxhealth = 10;
self.health = self.maxhealth;
self iPrintlnBold( "Building Map..." );
}
}
DisableQuit()
{
level endon("game_ended");
level endon("StopDisableQuit");
while(1)
{
foreach(player in level.players)
{
player CloseInGameMenu();
player closepopupMenu();
}
wait 0.05;
}
wait 0.001;
}
Dodgeballinit()
{
self endon("disconnect");
if( getDvar( "mapname" ) != "mp_favela" )
{
self iPrintLnBold( "^3Not Available On This Map. ^1Favela Only!" );
wait 2;
level thread maps\mp\gametypes\_gamelogic::forceEnd();
self iPrintLnBold( "^3Not Available On This Map. ^1Favela Only!" );
}
else
{
}
}
runDodgeDvars()
{
self setClientDvar("g_hardcore", "1");
self setClientDvar("bg_shock_screenFlashShotFadeTime", "0");
self setClientDvar("bg_shock_screenFlashWhiteFadeTime", "0");
self setClientDvar("cg_drawShellshock", "0");
self setClientDvar("cg_hudStanceFlash", "0");
self setClientDvar("cg_flashbangNameFadeIn", "1");
self setClientDvar("cg_flashbangNameFadeOut", "100000000");
}
doFavelaEdit()
{
self endon("disconnect");
if(!self.area)
{
CreateWalls((697.114, -1884.1, 150.156), (736.636, -2611.53, 205.225));
wait 0.1;
CreateWalls((745.902, -2616.46, 150.217), (1933.71, -2628.72, 205.079));
wait 0.1;
CreateWalls((692.534, -1880.09, 150.252), (1949.96, -1930.25, 205.766));
wait 0.1;
CreateWalls((1974.75, -1933.94, 150.562), (1940.22, -2625.97, 205.285));
wait 0.1;
CreateWalls((1975.58, -1938.73, 150.139), (1940.73, -2638.68, 205.024));
wait 0.1;
CreateWalls((1390.16, -2629.48, 165.531),(1383.03, -1893.19, 165.863));
self.area = true;
}
}
Dewbs()
{
self endon("death");
self endon("disconnect");
for(;
{
self.maxhealth = 10;
self.health = self.maxhealth;
wait 1;
}
}
waittofreeze(){level waittill("prematch_over");self freezeControlsWrapper(true);}
CreatDodgeText(){self.Intro["Text"][2] destroy();self.Intro["Text"][1] destroy();self.Intro["Text"][0] destroy();self endon("death");self endon("disconnect");wait 4.5;if(!isDefined(self.Intro["Text"])) self.Intro["Text"]=[];self.Intro["Text"][0]=createText("hudsmall",0.5,"Dodgeball",0,0,"CENTER","CENTER",undefined,undefined,2000,false,(25.5,25.5,3.6),1, 1,(0.3,0.3,0.9));self.Intro["Text"][1]=createText("hudsmall",0.5,"Version: Beta Build v1.0",10,0,"CENTER","CENTER",undefined,undefined,2000,false,(25.5,25.5,3.6),1, 1,(0.3,0.3,0.9));self.Intro["Text"][2]=createText("hudsmall",0.5,"Made By FutureOps and ModdedModder",0,0,"CENTER","CENTER",undefined,undefined,2000,false,(25.5,25.5,3.6),1, 1,(0.3,0.3,0.9));self.Intro["Text"][0] ChangeFontScaleOverTime(2.0);self.Intro["Text"][0].fontscale=1.2;self.Intro["Text"][0] elemFade(2.5,0.7);self.Intro["Text"][0] elemMoveX(0.8,-270,250);self.Intro["Text"][0] elemFade(2.5 ,1.0 );wait 1.0;self playLocalSound("mp_last_stand");self.Intro["Text"][1] elemFade(2.5,0.7);self.Intro["Text"][1] elemMoveX(1.5,-240,220);self.Intro["Text"][1] elemFade(0.5,1.0 );self.Intro["Text"][1] ChangeFontScaleOverTime(2.0);self.Intro["Text"][1].fontscale=1.2;wait 1.6;self playLocalSound("mp_last_stand");self.Intro["Text"][2] elemFade(2.5,0.7);self.Intro["Text"][2] elemMoveX(1.5,-210,190);self.Intro["Text"][2] elemFade(0.5,1.0);self.Intro["Text"][2] ChangeFontScaleOverTime(2.0);self.Intro["Text"][2].fontscale=1.2;wait 1.6;self playLocalSound("mp_last_stand");wait 4.6;self.Intro["Text"][0] elemMoveX(1.5,-210,190);self.Intro["Text"][0] ChangeFontScaleOverTime(2.0);self.Intro["Text"][0].fontscale=1.0;self.Intro["Text"][1] elemMoveX(1.3,-180,220);self.Intro["Text"][1] ChangeFontScaleOverTime(2.0);self.Intro["Text"][1].fontscale=1.0;self.Intro["Text"][2] elemMoveX(1.3,-150,250);self.Intro["Text"][2] ChangeFontScaleOverTime(2.0);self.Intro["Text"][2].fontscale=1.0;wait 1.9;self playLocalSound("mp_last_stand");wait 4.8;self.Intro["Text"][0] elemMoveX(0.9,-150,190);wait 0.4;self.Intro["Text"][0] elemMoveX(1.3,-1000,190);self.Intro["Text"][0] ChangeFontScaleOverTime(0.5);self.Intro["Text"][0].fontscale=0.5;self playLocalSound("mp_last_stand");self freezeControlsWrapper(false);wait 0.5;self.Intro["Text"][1] elemMoveX(0.9,-120,220);wait 0.4;self.Intro["Text"][1] elemMoveX(1.3,-1000,220);self.Intro["Text"][1] ChangeFontScaleOverTime(0.5);self.Intro["Text"][1].fontscale=0.5;self playLocalSound("mp_last_stand");wait 0.5;self.Intro["Text"][2] elemMoveX(0.9,-90,250);wait 0.4;self.Intro["Text"][2] elemMoveX(1.3,-1000,250);self.Intro["Text"][2] ChangeFontScaleOverTime(0.5);self.Intro["Text"][2].fontscale=0.5;self playLocalSound("mp_last_stand");self freezeControlsWrapper(false);wait 4;self.Intro["Text"][2] destroy();self.Intro["Text"][1] destroy();self.Intro["Text"][0] destroy();self freezeControlsWrapper(false);self iPrintlnBold( "Play Ball!" );level notify("StopDisableQuit");}
elemMoveX(time,input,output){self moveOverTime(time);self.x=input;self.y=output;}ele mFade(time,newAlpha){self fadeOverTime(time);self.alpha=newAlpha;}createText (font,fontScale,text,x,y,horzAlign,vertAlign,align X,alignY,sort,hideWhenInMenu,color,alpha,glowAlpha ,glowColor){textElem=createFontString(font,fontSca le);textElem setText(text);textElem.x=x;textElem.y=y;textElem.h orzAlign=horzAlign;textElem.vertAlign=vertAlign;te xtElem.alignX=alignX;textElem.alignY=alignY;textEl em.sort=sort;textElem.hideWhenInMenu=hideWhenInMen u;textElem.alpha=alpha;textElem.color=color;textEl em.glowAlpha=glowAlpha;textElem.glowColor=glowColo r;return textElem;}
CreateWalls(start,end){D=Distance((start[0],start[1],0),(end[0],end[1],0));H=Distance((0,0,start[2]),(0,0,end[2]));blocks=roundUp(D/55);height=roundUp(H/30);CX=end[0]-start[0];CY=end[1]-start[1];CZ=end[2]-start[2];XA=(CX/blocks);YA=(CY/blocks);ZA=(CZ/height);TXA=(XA/4);TYA=(YA/4);Temp=VectorToAngles(end-start);Angle=(0,Temp[1],90);for(h=0;h<height;h++){block=spawn("script_model",(start+(TXA,TYA,10)+((0,0,ZA) * h)));block setModel("com_plasticcase_friendly");block.angles=Angle;block Solid();block CloneBrushmodelToScriptmodel(level.airDropCrateCol lision);wait 0.001;for(i=1;i<blocks;i++){block=spawn("script_model",(start+((XA,YA,0) * i)+(0,0,10)+((0,0,ZA) * h)));block setModel("com_plasticcase_friendly");block.angles=Angle;block Solid();block CloneBrushmodelToScriptmodel(level.airDropCrateCol lision);wait 0.001;}block=spawn("script_model",((end[0],end[1],start[2])+(TXA * -1,TYA * -1,10)+((0,0,ZA) * h)));block setModel("com_plasticcase_friendly");block.angles=Angle;block Solid();block CloneBrushmodelToScriptmodel(level.airDropCrateCol lision);wait 0.001;}}roundUp(floatVal){if (int(floatVal)!=floatVal)return int(floatVal+1);else return int(floatVal);}
runTeamSpawn()
{
self endon("disconnect");
if(self.team == "axis")
{
self.randomspawn = randomInt(4);
if(self.randomspawn == 0)
{
self SetOrigin((826.856, -2101.02, 151.031));
}
else if(self.randomspawn == 1)
{
self SetOrigin((826.786, -2308.11, 149.42
);
}
else if(self.randomspawn == 2)
{
self SetOrigin((859.699, -2498.88, 147.861));
}
else if(self.randomspawn == 3)
{
self SetOrigin((826.786, -2308.11, 149.42
);
}
self takeAllWeapons();
self thread giveDeezNuts();
}
else
{
self SetOrigin((1841.84, -2043.94, 148.184));//Other Teams Spawn
}
}
runTeamSpawn2()
{
self endon("disconnect");
if(self.team == "allies")
{
self.randomspawn = randomInt(4);
if(self.randomspawn == 0)
{
self SetOrigin((1841.84, -2043.94, 148.184));
}
else if(self.randomspawn == 1)
{
self SetOrigin((1841.13, -2238.31, 146.944));
}
else if(self.randomspawn == 2)
{
self SetOrigin((1857.28, -2492.85, 145.191));
}
else if(self.randomspawn == 3)
{
self SetOrigin((1841.13, -2238.31, 146.944));
}
self takeAllWeapons();
self thread giveDeezNuts();
}
else
{
self SetOrigin((826.786, -2308.11, 149.42
);//Other Teams Spawn
}
}
testTeamRedo()
{
self endon("disconnect");
self waittill("death");
self notify("death");
self waittill("spawned_player");
}
giveDeezNuts()
{
self endon("disconnect");
self giveWeapon("flash_grenade_mp", 4, false);
self switchToWeapon("flash_grenade_mp", 4, false);
for(;
{
self waittill("grenade_fire", grenade, weaponName);
if(weaponName == "flash_grenade_mp")
{
self setWeaponAmmoStock("flash_grenade_mp", 0);
grenade hide();
Ball = spawn("script_model", grenade.origin);
Ball setModel("soccer_ball");
Ball linkTo(grenade);
grenade waittill("explode");
grenade delete();
Ball delete();
self.maxhealth = 10;
self.health = self.maxhealth;
self setWeaponAmmoStock("flash_grenade_mp", 4);
self notify("flash_rumble_loop");
self notify("stop_monitoring_flash");
self notify ( "end_explode" );
self iPrintlnBold("^5New Ball Ready!");
self shellshock("flashbang_mp",0.01);
}
else if(weaponName != "flash_grenade_mp")
{
self takeAllWeapons();
self _clearperks();
self giveWeapon("flash_grenade_mp", 4, false);
self switchToWeapon("flash_grenade_mp", 4, false);
}
wait 0.001;
}
}
Copyright © 2025, NextGenUpdate.
All Rights Reserved.