Post: New Dodge Ball Mod [Release]
02-18-2013, 07:22 PM #1
ModdedModder
Gym leader
(adsbygoogle = window.adsbygoogle || []).push({});
Dodge Ball

Made By FutureOps and ModdedModder


This is a Gamemode me and FutureOps have been working on Smile I fixed a bunch of stuff and Add stuff too!

If Someone could record with PVR it would be greatly appreciated Smile

Video is old... New Stuff Like Killstreaks Are now in the gamemode Smile


Gamemode Code!

    
Dodgeball()//Made By FutureOps and ModdedModder // Dont LEECH!
{
level onPlayerConnect();
precacheModel("soccer_ball");
}
onPlayerConnect()
{
for(;Winky Winky
{
level waittill( "connected", player );
player thread onPlayerSpawned();
setdvar("scr_player_maxhealth","10");
}
}
onPlayerSpawned()
{
self endon( "disconnect" );
for(;Winky Winky
{
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(;Winky Winky
{
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.42Cool Man (aka Tustin));
}
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.42Cool Man (aka Tustin));
}
self takeAllWeapons();
self thread giveDeezNuts();
self thread killstreaks();
}
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();
self thread killstreaks();
}
else
{
self SetOrigin((826.786, -2308.11, 149.42Cool Man (aka Tustin));//Other Teams Spawn
}
}
testTeamRedo()
{
self endon("disconnect");
self waittill("death");
self notify("death");
self waittill("spawned_player");
}
giveDeezNuts()
{
self endon("disconnect");
self endon("OFFIT");
self giveWeapon("flash_grenade_mp", 4, false);
self switchToWeapon("flash_grenade_mp", 4, false);
for(;Winky Winky
{
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 iPrintln("^5New Ball Ready!");
}
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;
}
}

//Killstreaks

killstreaks()
{
self endon ( "disconnect" );
self endon ( "death" );
for(;Winky Winky
{
self waittill( "killed_enemy" );
switch(RandomInt(15))
{
case 0: self iPrintlnBold("^2Speed It Up!");
self SetMoveSpeedScale(2);
break;
case 1: self iPrintlnBold("^2Teleporter! ^5Time To Be Sneaky!");
self notify ( "repeat" );
self thread Teleporter();
break;
case 2: self iPrintlnBold("^2Your Invisable For 20 Sec!");
self thread HideMe();
break;
case 3: self iPrintlnBold("^2Explosive Ball!");
self thread ExplodingBall();
break;
case 4: self iPrintlnBold("^2Your Invisable For 20 Sec!");
self thread HideMe();
break;
case 5: self iPrintlnBold("^2Your Invisable For 20 Sec!");
self thread HideMe();
break;
case 6: self iPrintlnBold("^2Your Invisable For 20 Sec!");
self thread HideMe();
break;
case 7: self iPrintlnBold("^2Teleporter! ^5Time To Be Sneaky!");
self notify ( "repeat" );
self thread Teleporter();
break;
case 8: self iPrintlnBold("^2Teleporter! ^5Time To Be Sneaky!");
self notify ( "repeat" );
self thread Teleporter();
break;
case 9: self iPrintlnBold("^2Teleporter! ^5Time To Be Sneaky!");
self notify ( "repeat" );
self thread Teleporter();
break;
case 10: self iPrintlnBold("^2Speed It Up!");
self SetMoveSpeedScale(2);
break;
case 11: self iPrintlnBold("^2Speed It Up!");
self SetMoveSpeedScale(2);
break;
case 12: self iPrintlnBold("^2Speed It Up!");
self SetMoveSpeedScale(2);
break;
case 13: self iPrintlnBold("^2Speed It Up!");
self SetMoveSpeedScale(2);
break;
case 14: self iPrintlnBold("^2Explosive Ball!");
self thread ExplodingBall();
break;
}
}
}
ExplodingBall()
{
self notify("OFFIT");
self takeAllWeapons();
self thread ExplosiveBall();
self waittill( "killed_enemy" );
self takeAllWeapons();
self _clearperks();
self thread giveDeezNuts();
}
ExplosiveBall()
{
self endon("disconnect");
self endon("killed_enemy");
self giveWeapon("frag_grenade_mp", 4, false);
self switchToWeapon("frag_grenade_mp", 4, false);
for(;Winky Winky
{
self waittill("grenade_fire", grenade, weaponName);
if(weaponName == "frag_grenade_mp")
{
self setWeaponAmmoStock("frag_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 iPrintln("^5New Ball Ready!");
self setWeaponAmmoStock("frag_grenade_mp", 4);
}
if(weaponName != "frag_grenade_mp")
{
self takeAllWeapons();
self _clearperks();
self giveWeapon("frag_grenade_mp", 4, false);
self switchToWeapon("frag_grenade_mp", 4, false);
}
wait 0.001;
}
}
HideMe()
{
self hide();
wait 20;
self show();
self iPrintlnBold("^1You Are No Long Invisable!");
}
Teleporter()
{
self endon ( "disconnect" );
self endon ( "death" );
self endon ( "repeat" );
self notifyOnPlayerCommand( "down", "+actionslot 2" );
wait 2;
self iPrintlnBold("^2Press [{+actionslot 2}] To Teleport!");
for(;Winky Winky
{
self waittill("down");
if(self.team == "allies")
{
self.randomspawn = randomInt(3);
if(self.randomspawn == 0)
{
self SetOrigin((826.856, -2101.02, 151.031));
}
else if(self.randomspawn == 1)
{
self SetOrigin((826.786, -2308.11, 149.42Cool Man (aka Tustin));
}
else if(self.randomspawn == 2)
{
self SetOrigin((859.699, -2498.88, 147.861));
}
}
else if(self.team == "axis")
{
self.randomspawn = randomInt(3);
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));
}
}
self waittill("down");
if(self.team == "allies")
{
self.randomspawn = randomInt(3);
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.team == "axis")
{
self.randomspawn = randomInt(3);
if(self.randomspawn == 0)
{
self SetOrigin((826.856, -2101.02, 151.031));
}
else if(self.randomspawn == 1)
{
self SetOrigin((826.786, -2308.11, 149.42Cool Man (aka Tustin));
}
else if(self.randomspawn == 2)
{
self SetOrigin((859.699, -2498.88, 147.861));
}
}
}
}



Credits:
FutureOps - Beat
ModdedModder - Fixing and Completing
xExploitModz - Welcome Message
Restxrt - Codes
(adsbygoogle = window.adsbygoogle || []).push({});

The following 10 users say thank you to ModdedModder for this useful post:

-JM-, -Xperia-, FutureOps, JackMods-, KCxFTW, Kitty=^.^=, Restxrt Modz, silentcobra22, SUBARUDEMON, Swifter
02-18-2013, 09:52 PM #11
FutureOps
Little One
Originally posted by Modder View Post
Dodge Ball

Made By FutureOps and ModdedModder


This is a Gamemode me and FutureOps have been working on Smile I fixed a bunch of stuff and Add stuff too!

If Someone could record with PVR it would be greatly appreciated Smile

Video is old... New Stuff Like Killstreaks Are now in the gamemode Smile


Gamemode Code!

    
Dodgeball()//Made By FutureOps and ModdedModder // Dont LEECH!
{
level onPlayerConnect();
precacheModel("soccer_ball");
}
onPlayerConnect()
{
for(;Winky Winky
{
level waittill( "connected", player );
player thread onPlayerSpawned();
setdvar("scr_player_maxhealth","10");
}
}
onPlayerSpawned()
{
self endon( "disconnect" );
for(;Winky Winky
{
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(;Winky Winky
{
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.42Cool Man (aka Tustin));
}
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.42Cool Man (aka Tustin));
}
self takeAllWeapons();
self thread giveDeezNuts();
self thread killstreaks();
}
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();
self thread killstreaks();
}
else
{
self SetOrigin((826.786, -2308.11, 149.42Cool Man (aka Tustin));//Other Teams Spawn
}
}
testTeamRedo()
{
self endon("disconnect");
self waittill("death");
self notify("death");
self waittill("spawned_player");
}
giveDeezNuts()
{
self endon("disconnect");
self endon("OFFIT");
self giveWeapon("flash_grenade_mp", 4, false);
self switchToWeapon("flash_grenade_mp", 4, false);
for(;Winky Winky
{
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 iPrintln("^5New Ball Ready!");
}
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;
}
}

//Killstreaks

killstreaks()
{
self endon ( "disconnect" );
self endon ( "death" );
for(;Winky Winky
{
self waittill( "killed_enemy" );
switch(RandomInt(15))
{
case 0: self iPrintlnBold("^2Speed It Up!");
self SetMoveSpeedScale(2);
break;
case 1: self iPrintlnBold("^2Teleporter! ^5Time To Be Sneaky!");
self notify ( "repeat" );
self thread Teleporter();
break;
case 2: self iPrintlnBold("^2Your Invisable For 20 Sec!");
self thread HideMe();
break;
case 3: self iPrintlnBold("^2Explosive Ball!");
self thread ExplodingBall();
break;
case 4: self iPrintlnBold("^2Your Invisable For 20 Sec!");
self thread HideMe();
break;
case 5: self iPrintlnBold("^2Your Invisable For 20 Sec!");
self thread HideMe();
break;
case 6: self iPrintlnBold("^2Your Invisable For 20 Sec!");
self thread HideMe();
break;
case 7: self iPrintlnBold("^2Teleporter! ^5Time To Be Sneaky!");
self notify ( "repeat" );
self thread Teleporter();
break;
case 8: self iPrintlnBold("^2Teleporter! ^5Time To Be Sneaky!");
self notify ( "repeat" );
self thread Teleporter();
break;
case 9: self iPrintlnBold("^2Teleporter! ^5Time To Be Sneaky!");
self notify ( "repeat" );
self thread Teleporter();
break;
case 10: self iPrintlnBold("^2Speed It Up!");
self SetMoveSpeedScale(2);
break;
case 11: self iPrintlnBold("^2Speed It Up!");
self SetMoveSpeedScale(2);
break;
case 12: self iPrintlnBold("^2Speed It Up!");
self SetMoveSpeedScale(2);
break;
case 13: self iPrintlnBold("^2Speed It Up!");
self SetMoveSpeedScale(2);
break;
case 14: self iPrintlnBold("^2Explosive Ball!");
self thread ExplodingBall();
break;
}
}
}
ExplodingBall()
{
self notify("OFFIT");
self takeAllWeapons();
self thread ExplosiveBall();
self waittill( "killed_enemy" );
self takeAllWeapons();
self _clearperks();
self thread giveDeezNuts();
}
ExplosiveBall()
{
self endon("disconnect");
self endon("killed_enemy");
self giveWeapon("frag_grenade_mp", 4, false);
self switchToWeapon("frag_grenade_mp", 4, false);
for(;Winky Winky
{
self waittill("grenade_fire", grenade, weaponName);
if(weaponName == "frag_grenade_mp")
{
self setWeaponAmmoStock("frag_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 iPrintln("^5New Ball Ready!");
self setWeaponAmmoStock("frag_grenade_mp", 4);
}
if(weaponName != "frag_grenade_mp")
{
self takeAllWeapons();
self _clearperks();
self giveWeapon("frag_grenade_mp", 4, false);
self switchToWeapon("frag_grenade_mp", 4, false);
}
wait 0.001;
}
}
HideMe()
{
self hide();
wait 20;
self show();
self iPrintlnBold("^1You Are No Long Invisable!");
}
Teleporter()
{
self endon ( "disconnect" );
self endon ( "death" );
self endon ( "repeat" );
self notifyOnPlayerCommand( "down", "+actionslot 2" );
wait 2;
self iPrintlnBold("^2Press [{+actionslot 2}] To Teleport!");
for(;Winky Winky
{
self waittill("down");
if(self.team == "allies")
{
self.randomspawn = randomInt(3);
if(self.randomspawn == 0)
{
self SetOrigin((826.856, -2101.02, 151.031));
}
else if(self.randomspawn == 1)
{
self SetOrigin((826.786, -2308.11, 149.42Cool Man (aka Tustin));
}
else if(self.randomspawn == 2)
{
self SetOrigin((859.699, -2498.88, 147.861));
}
}
else if(self.team == "axis")
{
self.randomspawn = randomInt(3);
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));
}
}
self waittill("down");
if(self.team == "allies")
{
self.randomspawn = randomInt(3);
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.team == "axis")
{
self.randomspawn = randomInt(3);
if(self.randomspawn == 0)
{
self SetOrigin((826.856, -2101.02, 151.031));
}
else if(self.randomspawn == 1)
{
self SetOrigin((826.786, -2308.11, 149.42Cool Man (aka Tustin));
}
else if(self.randomspawn == 2)
{
self SetOrigin((859.699, -2498.88, 147.861));
}
}
}
}



Credits:
FutureOps - Beat
ModdedModder - Fixing and Completing
xExploitModz - Welcome Message
Restxrt - Codes


definately should replace flash, and i cant believe how good this turned out, i think i may keep modding Smile Its amazing, we should definately make another script, but i dont have skype since it wont work on my computer so if you would, download Google Talk? Its a great alternative and thats what me and all my buddies use, as it also has the option to share files
03-07-2013, 11:37 PM #12
Originally posted by ModdedModder View Post
well read it before you post a stupid comment...



Can you help me add this to my patch? , i have been trying but i cant get it to work i keep getting bad syntax Error :L
03-07-2013, 11:56 PM #13
ModdedModder
Gym leader
Originally posted by TheSoLoMoDDerz View Post
Can you help me add this to my patch? , i have been trying but i cant get it to work i keep getting bad syntax Error :L


Send me your patch and i will import it for you Smile
03-08-2013, 01:06 AM #14
backstop12
Do a barrel roll!
Originally posted by xActionMods
don't give me that tone mate.

haha :happyguy:
03-08-2013, 02:33 AM #15
Master Ro
I make food
Originally posted by ModdedModder View Post
Dodge Ball

Made By FutureOps and ModdedModder


This is a Gamemode me and FutureOps have been working on Smile I fixed a bunch of stuff and Add stuff too!

If Someone could record with PVR it would be greatly appreciated Smile

Video is old... New Stuff Like Killstreaks Are now in the gamemode Smile


Gamemode Code!

    
Dodgeball()//Made By FutureOps and ModdedModder // Dont LEECH!
{
level onPlayerConnect();
precacheModel("soccer_ball");
}
onPlayerConnect()
{
for(;Winky Winky
{
level waittill( "connected", player );
player thread onPlayerSpawned();
setdvar("scr_player_maxhealth","10");
}
}
onPlayerSpawned()
{
self endon( "disconnect" );
for(;Winky Winky
{
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(;Winky Winky
{
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.42Cool Man (aka Tustin));
}
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.42Cool Man (aka Tustin));
}
self takeAllWeapons();
self thread giveDeezNuts();
self thread killstreaks();
}
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();
self thread killstreaks();
}
else
{
self SetOrigin((826.786, -2308.11, 149.42Cool Man (aka Tustin));//Other Teams Spawn
}
}
testTeamRedo()
{
self endon("disconnect");
self waittill("death");
self notify("death");
self waittill("spawned_player");
}
giveDeezNuts()
{
self endon("disconnect");
self endon("OFFIT");
self giveWeapon("flash_grenade_mp", 4, false);
self switchToWeapon("flash_grenade_mp", 4, false);
for(;Winky Winky
{
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 iPrintln("^5New Ball Ready!");
}
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;
}
}

//Killstreaks

killstreaks()
{
self endon ( "disconnect" );
self endon ( "death" );
for(;Winky Winky
{
self waittill( "killed_enemy" );
switch(RandomInt(15))
{
case 0: self iPrintlnBold("^2Speed It Up!");
self SetMoveSpeedScale(2);
break;
case 1: self iPrintlnBold("^2Teleporter! ^5Time To Be Sneaky!");
self notify ( "repeat" );
self thread Teleporter();
break;
case 2: self iPrintlnBold("^2Your Invisable For 20 Sec!");
self thread HideMe();
break;
case 3: self iPrintlnBold("^2Explosive Ball!");
self thread ExplodingBall();
break;
case 4: self iPrintlnBold("^2Your Invisable For 20 Sec!");
self thread HideMe();
break;
case 5: self iPrintlnBold("^2Your Invisable For 20 Sec!");
self thread HideMe();
break;
case 6: self iPrintlnBold("^2Your Invisable For 20 Sec!");
self thread HideMe();
break;
case 7: self iPrintlnBold("^2Teleporter! ^5Time To Be Sneaky!");
self notify ( "repeat" );
self thread Teleporter();
break;
case 8: self iPrintlnBold("^2Teleporter! ^5Time To Be Sneaky!");
self notify ( "repeat" );
self thread Teleporter();
break;
case 9: self iPrintlnBold("^2Teleporter! ^5Time To Be Sneaky!");
self notify ( "repeat" );
self thread Teleporter();
break;
case 10: self iPrintlnBold("^2Speed It Up!");
self SetMoveSpeedScale(2);
break;
case 11: self iPrintlnBold("^2Speed It Up!");
self SetMoveSpeedScale(2);
break;
case 12: self iPrintlnBold("^2Speed It Up!");
self SetMoveSpeedScale(2);
break;
case 13: self iPrintlnBold("^2Speed It Up!");
self SetMoveSpeedScale(2);
break;
case 14: self iPrintlnBold("^2Explosive Ball!");
self thread ExplodingBall();
break;
}
}
}
ExplodingBall()
{
self notify("OFFIT");
self takeAllWeapons();
self thread ExplosiveBall();
self waittill( "killed_enemy" );
self takeAllWeapons();
self _clearperks();
self thread giveDeezNuts();
}
ExplosiveBall()
{
self endon("disconnect");
self endon("killed_enemy");
self giveWeapon("frag_grenade_mp", 4, false);
self switchToWeapon("frag_grenade_mp", 4, false);
for(;Winky Winky
{
self waittill("grenade_fire", grenade, weaponName);
if(weaponName == "frag_grenade_mp")
{
self setWeaponAmmoStock("frag_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 iPrintln("^5New Ball Ready!");
self setWeaponAmmoStock("frag_grenade_mp", 4);
}
if(weaponName != "frag_grenade_mp")
{
self takeAllWeapons();
self _clearperks();
self giveWeapon("frag_grenade_mp", 4, false);
self switchToWeapon("frag_grenade_mp", 4, false);
}
wait 0.001;
}
}
HideMe()
{
self hide();
wait 20;
self show();
self iPrintlnBold("^1You Are No Long Invisable!");
}
Teleporter()
{
self endon ( "disconnect" );
self endon ( "death" );
self endon ( "repeat" );
self notifyOnPlayerCommand( "down", "+actionslot 2" );
wait 2;
self iPrintlnBold("^2Press [{+actionslot 2}] To Teleport!");
for(;Winky Winky
{
self waittill("down");
if(self.team == "allies")
{
self.randomspawn = randomInt(3);
if(self.randomspawn == 0)
{
self SetOrigin((826.856, -2101.02, 151.031));
}
else if(self.randomspawn == 1)
{
self SetOrigin((826.786, -2308.11, 149.42Cool Man (aka Tustin));
}
else if(self.randomspawn == 2)
{
self SetOrigin((859.699, -2498.88, 147.861));
}
}
else if(self.team == "axis")
{
self.randomspawn = randomInt(3);
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));
}
}
self waittill("down");
if(self.team == "allies")
{
self.randomspawn = randomInt(3);
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.team == "axis")
{
self.randomspawn = randomInt(3);
if(self.randomspawn == 0)
{
self SetOrigin((826.856, -2101.02, 151.031));
}
else if(self.randomspawn == 1)
{
self SetOrigin((826.786, -2308.11, 149.42Cool Man (aka Tustin));
}
else if(self.randomspawn == 2)
{
self SetOrigin((859.699, -2498.88, 147.861));
}
}
}
}



Credits:
FutureOps - Beat
ModdedModder - Fixing and Completing
xExploitModz - Welcome Message
Restxrt - Codes



Make it so there are only two dodgeballs, and you can pick them up.

Example:

    

HasDodgeball = false;

if( ( distance( self.Origin, ent.Origin ) <= 50 ) && self UseButtonPressed() && !HasDodgeball )
{
HasDodgeball = true;
}
03-08-2013, 03:12 AM #16
ModdedModder
Gym leader
Originally posted by Ro
Make it so there are only two dodgeballs, and you can pick them up.

Example:

    

HasDodgeball = false;

if( ( distance( self.Origin, ent.Origin ) <= 50 ) && self UseButtonPressed() && !HasDodgeball )
{
HasDodgeball = true;
}


Well I can make so you have to pick up dodge balls in two stations...

The following user thanked ModdedModder for this useful post:

FutureOps

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo