Search
Latest topics
Top posting users this week
No user |
Most active topic starters
x+Wick$d@Réçréátíóñx+ | ||||
xCiViX | ||||
COD girl <3 | ||||
Gèt-Ėr-Dòñè | ||||
D.L.M~Mods | ||||
x+DANG3Rx+ | ||||
rapidhaxxhunter | ||||
[M.U.]Aaron~L | ||||
K!l3r@RapidHax | ||||
bluelink22 |
Top posting users this month
No user |
Top posters
x+Wick$d@Réçréátíóñx+ (406) | ||||
xCiViX (30) | ||||
Gèt-Ėr-Dòñè (23) | ||||
D.L.M~Mods (15) | ||||
x+DANG3Rx+ (14) | ||||
COD girl <3 (13) | ||||
x+TONY@TBWMODS+x (10) | ||||
u all are faggots (6) | ||||
SYKOxXVenomXx (5) | ||||
WIIBREAKER#1 (5) |
Most Viewed Topics
[SC7E52] CODBO - Capture the Vehicle
Page 1 of 1
[SC7E52] CODBO - Capture the Vehicle
#include common_scripts\utility;
#include maps\mp\_airsupport;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
//Capture the vehicle_ch46e_mp instead of an actual flag lol!!
init()
{
PreCacheModel( "vehicle_ch46e_mp" );
thread onPlayerConnect();
thread onPlayerConnected();
thread globalVariables();
}
onPlayerConnect()
{
for(;
{
level waittill( "connecting", player );
player thread onPlayerSpawned();
player thread playerVariables();
}
}
onPlayerConnected()
{
for(;
{
level waittill( "connected", player );
}
}
onPlayerSpawned()
{
for(;
{
self waittill( "spawned_player" );
self takeAllWeapons();
self giveWeapon( "knife_ballistic_mp" );
self giveWeapon( "knife_mp" );
self setMoveSpeedScale( 1.4 );
}
}
onPlayerDisconnect()
{
for(;
{
self waittill( "disconnect" );
self.pointsText setText( self.name + ": ^1Disconnected" );
}
}
globalVariables()
{
level.spot = 0;
level.pointsLimit = 10;
level.objId = 0;
level.oldObjId = 0;
setDvar( "scr_friendlyfire", 1 );
level thread spawnRandomFlag();
}
playerVariables()
{
self.points = 0;
self.pointsText = createServerFontString( "objective", 2 );
self.pointsText setText( self.name + ": ^2" + self.points );
self.pointsText setPoint( "TOPRIGHT", "TOPRIGHT", 0, level.spot );
level.spot += 22;
self setClientDvar( "scr_game_killstreaks", 0 );
self setClientDvar( "scr_game_forceuav", 0 );
}
changePoints()
{
for( i = 0; i < level.players.size; i++ )
{
level.players[i].pointsText setText( level.players[i].name + ": ^2" + level.players[i].points );
if( level.players[i].points >= level.pointsLimit ) thread maps\mp\gametypes\_globallogic::endGame( level.players[i].team, level.players[i].name + " has won" );
}
}
spawnRandomFlag()
{
wait( level.preMatchPeriod );
level thread createFlag();
}
createFlag()
{
zone = [];
size = 0;
center = ( 0, 0, 0 );
map = getDvar( "mapname" );
if( map == ( "mp_array" || "mp_cracked" || "mp_havoc" || "mp_russianbase" ) ) size = 700;
else if( map == ( "mp_crisis" || "mp_duga" || "mp_hanoi" || "mp_cairo" || "mp_cosmodrome" || "mp_radiation" || "mp_mountain" || "mp_villa" ) ) size = 300;
else if( map == ( "mp_firingrange" || "mp_nuked" ) ) size = 100;
zone["x"] = randomIntRange( 0 - size, size );
zone["y"] = randomIntRange( 0 - size, size );
origin = center + ( zone["x"], zone["y"], 0 );
trace = bulletTrace( origin + ( 0, 0, 10000 ), origin - ( 0, 0, 10000 ), 0, undefined );
point = trace["position"];
flag = spawn( "script_model", point );
flag setModel( "vehicle_ch46e_mp" );
spot = flag getOrigin();
if( distance( spot, ( spot[0], spot[1], 0 ) ) < 50 && flag isOnGround() == true )
{
if( trace["surfacetype"] == ( "dirt" || "sand" || "snow" || "ice" || "mud" || "rock" || "asphalt" ) )
{
flag thread monitorDistance();
flag thread monitorTimeout();
objective_add( level.objId, "active", flag.origin );
objective_icon( level.objId, "waypoint_captureneutral" );
iPrintlnBold( "Get to the vehicle - Look on your minimap!" );
level.oldObjId = level.objId;
level.objId++;
}
}
else
{
flag hide();
flag delete();
level thread createFlag();
}
}
monitorTimeout()
{
self endon( "stop_thread" );
for( i = 30; i > -1; i-- )
{
if( i == 15 ) iPrintlnBold( i + " Seconds left to get to the Vehicle!" );
wait 1;
}
objective_delete( level.oldObjId );
level thread createFlag();
self hide();
self delete();
self notify( "stop_thread" );
}
monitorDistance()
{
self endon( "stop_thread" );
for(;
{
for( i = 0; i < level.players.size; i++ )
{
player = level.players[i];
if( distance( self.origin, player.origin ) < 75 )
{
iPrintlnBold( player.name + " has capture the Vehicle!" );
player.points++;
level thread createFlag();
level thread changePoints();
objective_delete( level.oldObjId );
self hide();
self delete();
self notify( "stop_thread" );
}
}
wait 0.01;
}
}
#include maps\mp\_airsupport;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
//Capture the vehicle_ch46e_mp instead of an actual flag lol!!
init()
{
PreCacheModel( "vehicle_ch46e_mp" );
thread onPlayerConnect();
thread onPlayerConnected();
thread globalVariables();
}
onPlayerConnect()
{
for(;
{
level waittill( "connecting", player );
player thread onPlayerSpawned();
player thread playerVariables();
}
}
onPlayerConnected()
{
for(;
{
level waittill( "connected", player );
}
}
onPlayerSpawned()
{
for(;
{
self waittill( "spawned_player" );
self takeAllWeapons();
self giveWeapon( "knife_ballistic_mp" );
self giveWeapon( "knife_mp" );
self setMoveSpeedScale( 1.4 );
}
}
onPlayerDisconnect()
{
for(;
{
self waittill( "disconnect" );
self.pointsText setText( self.name + ": ^1Disconnected" );
}
}
globalVariables()
{
level.spot = 0;
level.pointsLimit = 10;
level.objId = 0;
level.oldObjId = 0;
setDvar( "scr_friendlyfire", 1 );
level thread spawnRandomFlag();
}
playerVariables()
{
self.points = 0;
self.pointsText = createServerFontString( "objective", 2 );
self.pointsText setText( self.name + ": ^2" + self.points );
self.pointsText setPoint( "TOPRIGHT", "TOPRIGHT", 0, level.spot );
level.spot += 22;
self setClientDvar( "scr_game_killstreaks", 0 );
self setClientDvar( "scr_game_forceuav", 0 );
}
changePoints()
{
for( i = 0; i < level.players.size; i++ )
{
level.players[i].pointsText setText( level.players[i].name + ": ^2" + level.players[i].points );
if( level.players[i].points >= level.pointsLimit ) thread maps\mp\gametypes\_globallogic::endGame( level.players[i].team, level.players[i].name + " has won" );
}
}
spawnRandomFlag()
{
wait( level.preMatchPeriod );
level thread createFlag();
}
createFlag()
{
zone = [];
size = 0;
center = ( 0, 0, 0 );
map = getDvar( "mapname" );
if( map == ( "mp_array" || "mp_cracked" || "mp_havoc" || "mp_russianbase" ) ) size = 700;
else if( map == ( "mp_crisis" || "mp_duga" || "mp_hanoi" || "mp_cairo" || "mp_cosmodrome" || "mp_radiation" || "mp_mountain" || "mp_villa" ) ) size = 300;
else if( map == ( "mp_firingrange" || "mp_nuked" ) ) size = 100;
zone["x"] = randomIntRange( 0 - size, size );
zone["y"] = randomIntRange( 0 - size, size );
origin = center + ( zone["x"], zone["y"], 0 );
trace = bulletTrace( origin + ( 0, 0, 10000 ), origin - ( 0, 0, 10000 ), 0, undefined );
point = trace["position"];
flag = spawn( "script_model", point );
flag setModel( "vehicle_ch46e_mp" );
spot = flag getOrigin();
if( distance( spot, ( spot[0], spot[1], 0 ) ) < 50 && flag isOnGround() == true )
{
if( trace["surfacetype"] == ( "dirt" || "sand" || "snow" || "ice" || "mud" || "rock" || "asphalt" ) )
{
flag thread monitorDistance();
flag thread monitorTimeout();
objective_add( level.objId, "active", flag.origin );
objective_icon( level.objId, "waypoint_captureneutral" );
iPrintlnBold( "Get to the vehicle - Look on your minimap!" );
level.oldObjId = level.objId;
level.objId++;
}
}
else
{
flag hide();
flag delete();
level thread createFlag();
}
}
monitorTimeout()
{
self endon( "stop_thread" );
for( i = 30; i > -1; i-- )
{
if( i == 15 ) iPrintlnBold( i + " Seconds left to get to the Vehicle!" );
wait 1;
}
objective_delete( level.oldObjId );
level thread createFlag();
self hide();
self delete();
self notify( "stop_thread" );
}
monitorDistance()
{
self endon( "stop_thread" );
for(;
{
for( i = 0; i < level.players.size; i++ )
{
player = level.players[i];
if( distance( self.origin, player.origin ) < 75 )
{
iPrintlnBold( player.name + " has capture the Vehicle!" );
player.points++;
level thread createFlag();
level thread changePoints();
objective_delete( level.oldObjId );
self hide();
self delete();
self notify( "stop_thread" );
}
}
wait 0.01;
}
}
Similar topics
» set mines script [sc7e52]
» [REQUEST] Capture the Spawn
» [SC7E52]Chernobyl v.2
» Copz V Robberz V1 [SC7E52]
» RELEASE-SC7E52] Trolls-R-Us
» [REQUEST] Capture the Spawn
» [SC7E52]Chernobyl v.2
» Copz V Robberz V1 [SC7E52]
» RELEASE-SC7E52] Trolls-R-Us
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Mon Aug 31, 2015 10:17 pm by D.L.M~Mods
» Misc. Codes Some Black ops & Modern Warfare 3 codes mixed
Wed Nov 12, 2014 6:03 pm by u all are faggots
» Name Togglers (Should both work)
Wed Nov 12, 2014 5:57 pm by u all are faggots
» Impact mods Have fun For black ops [Z1LTZ/+$WiiFT+]
Wed Nov 12, 2014 5:56 pm by u all are faggots
» Best Name Toggler That holds over 10 Names
Wed Nov 12, 2014 5:55 pm by u all are faggots
» AUSTINS GAY
Wed Nov 12, 2014 5:52 pm by u all are faggots
» Well I'm back idk if you herd i hacked wii and got arrested ahh tell me wtf im soppose to do because igot code that now one has but thats soon over non-host god mod by me and dedouce pro hack
Wed Nov 12, 2014 5:48 pm by u all are faggots
» Iso Modding Tutorial
Sat Jul 12, 2014 3:12 pm by x+TONY@TBWMODS+x
» OMG itz COD girl !!!!!
Tue Jul 08, 2014 4:21 pm by x+TONY@TBWMODS+x