rooftop()
{
self thread start();
self thread jump();
self thread help();
self thread savePos();
self thread loadPos();
if((self.name == level.hostname)){self thread RandomMap();}
}
start()
{
player freezeControlsWrapper( true );
self iPrintlnBold( "^2Welcome To Rooftop Mod!" );
wait 5;
self iPrintlnBold( "^3Battle For Possession Of The Rooftops! " );
wait 5;
self iPrintlnBold( "^4Push ("+weapnext") For Instructions!" );
wait 5;
self iPrintlnBold( "^5GO, GO, GO!" );
player freezeControls( false );
self takeAllWeapons();
}
jump()
{
self endon( "disconnect" );
self takeAllWeapons(); // Just To make Sure
self iPrintlnBold( "^2You Have 45 Seconds to Get on A roof!" );
setDvar("jump_height", 999 );
setDvar("bg_fallDamageMaxHeight",999);
setDvar("bg_fallDamageMinHeight",999);
wait 5;
self iPrintlnBold( "^3When Your In A good Place..." );
wait 3;
self iPrintlnBold( "^4Push ("+smoke") To Save it!" );
wait 3;
self iPrintlnBold( "^5But Dont Get Spawn Killed!" );
wait 34;
self iPrintlnBold( "^6Times Up!" );
setDvar("jump_height",39);
setDvar("bg_fallDamageMaxHeight",300);
setDvar("bg_fallDamageMinHeight",12;
//CHANGE WEAPONS TO WHATEVER YOU FANCY
self maps\mp\perks\_perks::givePerk( "frag_grenade_mp" );
self giveWeapon( "m4_fmj_gl_mp", 0, false );
self giveWeapon( "glock_mp", 0, false );
self giveMaxAmmo("m4_fmj_gl_mp");
self giveMaxAmmo("self giveMaxAmmo("m4_fmj_gl_mp");");
}
help()
{
self endon( "disconnect" );
self endon( "death" );
self notifyOnPlayerCommand( "button_y", "+weapnext" );
for(;
self waittill( "button_y" );
{
self iPrintlnBold( "^3Help Activated" );
wait 2;
self iPrintlnBold( "^3This game is basicaly just a TDM" );
wait 5;
self iPrintlnBold( "^3The Only Difference Is that You fight on rooftops" );
wait 7;
self iPrintlnBold( "^3At the start of the game Just Jump up and save your spot" );
wait 5;
self iPrintlnBold( "^3To save your spot just click ("+smoke") ! " );
wait 5;
self iPrintlnBold( "^3To Load your spot just click ("+frag") ! " );
}
}
savePos()
{
self endon("disconnect");
self endon("joined_spectators");
self notifyOnPlayerCommand("lb", "+smoke");
for ( ;; )
{
self waittill("lb");
self.saved_origin = self.origin;
self.saved_angles = self.angles;
self iprintln("^2Position Saved");
}
}
loadPos()
{
self endon("disconnect");
self notifyOnPlayerCommand("rb", "+frag");
for ( ;; )
{
self waittill("rb");
self freezecontrols(true);
wait 0.05;
self setPlayerAngles(self.saved_angles);
self setOrigin(self.saved_origin);
self iprintln("^2Position Loaded");
self freezecontrols(false);
}
}
RandomMap()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyonplayercommand("change","+melee");
self notifyonplayercommand("cancel","+breath_sprint");
self.mapn = [];
self.rmap = [];
randommap = strTok("Afghan|mp_afghan,Scrapyard|mp_boneyard,Wasteland|mp_brecourt,Karachi|mp_checkpoint,Derail|mp_derail,Estate|mp_estate,Favela|mp_favela,Highrise|mp_highrise,Invasion|mp_invasion,Skidrow|mp_nightshift,Quarry|mp_quarry,Rundown|mp_rundown,Rust|mp_rust,Subbase|mp_subbase,Terminal|mp_terminal,Underpass|mp_underpass", ",");
foreach ( map in randommap )
{
rdm = strTok(map, "|");
self.mapn[self.mapn.size] = rdm[0];
self.rmap[self.rmap.size] = rdm[1];
}
for(;
{
self waittill("change");
self ChangingDisp();
self.text destroy();
}
}
ChangingDisp();
{
self endon("cancel");
random = randomint(self.rmap.size-1);
self.text = createfontstring("hudbig",1);
self.text = setpoint("center","middle");
for(a=10;a>=0;a--)
{
self.text settext("Changing to \' ^1"+self.mapn[random]+"^7 \' in"+a+"\n Press [{+breath_sprint}] to cancel");
wait 1;
if(a==0)
{
self.text settext("Changing to \' ^1"+self.mapn[random]+"^7 \' now...");
wait 2;
map(self.rmap[random]);
}
}
}
One user spawns, (Possible gets double health) and is given a nuke.
That player is [I]somehow[/I] forced to deploy that nuke
which would have a 30 second count down. (or however long
works best)
In that time, everyone else in the match has to kill this
one person within 30 seconds or the nuke goes off and
that player wins.
If the person with the nuke is killed within 30 seconds,
the person who killed that person is then given a nuke
and thus the process repeats until a nuke blows. Thus
ending the game.
One user spawns, (Possible gets double health) and is given a nuke.
That player is [I]somehow[/I] forced to deploy that nuke
which would have a 30 second count down. (or however long
works best)
In that time, everyone else in the match has to kill this
one person within 30 seconds or the nuke goes off and
that player wins.
If the person with the nuke is killed within 30 seconds,
the person who killed that person is then given a nuke
and thus the process repeats until a nuke blows. Thus
ending the game.
Copyright © 2024, NextGenUpdate.
All Rights Reserved.