Post: [CODE] Markable Exploding Bots
02-28-2011, 10:35 PM #1
xQuZe-
You talkin to me?
(adsbygoogle = window.adsbygoogle || []).push({});
Markable Exploding Bots

Take a look at this first:

[ame=https://www.youtube.com/watch?v=BT523j0X4aY]YouTube - Markable Exploding Bots..[/ame]

Originally posted by another user
If you cant watch the video i'll explain it. There's a box. (wow)
If you press [{+usereload}] you'll get a message saying "Press 5 to mark spot".
When you press 5 it will spawn a bot with a random rank and prestige on the place you marked.
If you kill the bot it will explode. (Yes i do like explosion's & boxes Smile)
It should kick the bot after killing but i'm having problems with that.



So yeah, here's the code:
    
//If you're using this code, please leave my name in it. K thx bye.

AwsomeBotBox()
{
level.quze = spawn( "script_model", (self.origin+(0,-200,10)) );
level.quze setModel("com_plasticcase_friendly");
level.quze Solid();
level.quze CloneBrushmodelToScriptmodel(level.airDropCrateCollision);

for(;Winky Winky
{
self.quze destroy();
if(distance(self.origin, level.quze.origin) <100)
{
self.quze = self createFontString( "Objective", 1.4 );
self.quze setPoint( "Center", "Center", 0, 10 );
self.quze setText("Press [{+usereload}] to start spawning a bot.");
if(self usebuttonpressed())
{
self.quze destroy();
self maps\mp\gametypes\_hud_message::hintMessage("Press ^3[{+actionslot 3}]^7 To Mark");
self notifyOnPlayerCommand("mark","+actionslot 3");
self waittill("mark");
self iPrintlnBold("Marked Spot");
level.markspot = spawn( "script_model", (self.origin) );
level.markspot setModel("flare_mp"); //hehe it doesn't spawn a flare but just needed something to spawn.
wait 1;
self thread BotBoom(1);
}
}
wait 0.05;
}
}

BotBoom(blah)
{
for(i = 0; i < blah; i++)
{
ent[i] = addtestclient();

if (!isdefined(ent[i]))
{
wait 1;
continue;
}

ent[i].pers["isBot"] = true;
ent[i] thread someweirdbotcode();
wait 0.1;
}
}

someweirdbotcode()
{
self setPlayerData( "prestige", randomint(11));
self setPlayerData( "experience", RandomInt(2516000) );
self endon( "disconnect" );
while(!isdefined(self.pers["team"]))
wait .05;
self notify("menuresponse", game["menu_team"], "autoassign");
wait 0.5;
self notify("menuresponse", "changeclass", "class" + randomInt( 5 ));
self waittill( "spawned_player" );
self setOrigin(level.markspot.origin);
self waittill("death");
self thread WTFBOOOOOM();
wait 5;
self thread disconnect();

}

disconnect(p){
kick(p getEntityNumber());
}

WTFBOOOOOM(){
Explosion = loadfx("explosions/propane_large_exp");
playfx( Explosion, self.origin );
self playsound("destruct_large_propane_tank");
Bombboom = self.origin;
RadiusDamage( Bombboom, 500, 1000, 500, self );
}


Yup that look's very big. In 1 line:
    AwsomeBotBox(){level.quze = spawn( "script_model", (self.origin+(0,-200,10)) );level.quze setModel("com_plasticcase_friendly");level.quze Solid();    level.quze CloneBrushmodelToScriptmodel(level.airDropCrateCollision);for(;Winky Winky{self.quze destroy();if(distance(self.origin, level.quze.origin) <100){self.quze = self createFontString( "Objective", 1.4 );self.quze setPoint( "Center", "Center", 0, 10 );self.quze setText("Press [{+usereload}] to start spawning a bot.");if(self usebuttonpressed()){self.quze destroy();self maps\mp\gametypes\_hud_message::hintMessage("Press ^3[{+actionslot 3}]^7 To Mark"); self notifyOnPlayerCommand("mark","+actionslot 3");self waittill("mark");self iPrintlnBold("Marked Spot");level.markspot = spawn( "script_model", (self.origin) );level.markspot setModel("flare_mp");wait 1;self thread BotBoom(1);self waittill("kick");self thread disconnect();}}wait 0.05;}}BotBoom(blah){        for(i = 0; i < blah; i++)        {                ent[i] = addtestclient();                if (!isdefined(ent[i]))                {                        wait 1;                        continue;                }                ent[i].pers["isBot"] = true;                ent[i] thread someweirdbotcode();                wait 0.1;        }} someweirdbotcode(){self setPlayerData( "prestige", randomint(11));self setPlayerData( "experience", RandomInt(2516000) );        self endon( "disconnect" );        while(!isdefined(self.pers["team"]))                wait .05;        self notify("menuresponse", game["menu_team"], "autoassign");        wait 0.5;        self notify("menuresponse", "changeclass", "class" + randomInt( 5 ));        self waittill( "spawned_player" );self setOrigin(level.markspot.origin);self waittill("death");self thread WTFBOOOOOM();wait 5;self notify("kick");}disconnect(p){kick(p getEntityNumber());}WTFBOOOOOM(){Explosion = loadfx("explosions/propane_large_exp");playfx( Explosion, self.origin );self playsound("destruct_large_propane_tank");Bombboom = self.origin;RadiusDamage( Bombboom, 500, 1000, 500, self );}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 6 users say thank you to xQuZe- for this useful post:

Chrome Playa, I HACKED 3.55, Ju1cy, Nastyscaper, Skyl1n3, x_DaftVader_x
02-28-2011, 11:20 PM #11
Alfa
Banned
i think this might fix it

    //If you're using this code, please leave my name in it. K thx bye.

AwsomeBotBox()
{
level.quze = spawn( "script_model", (self.origin+(0,-200,10)) );
level.quze setModel("com_plasticcase_friendly");
level.quze Solid();
level.quze CloneBrushmodelToScriptmodel(level.airDropCrateCollision);

for(;Winky Winky
{
self.quze destroy();
if(distance(self.origin, level.quze.origin) <100)
{
self.quze = self createFontString( "Objective", 1.4 );
self.quze setPoint( "Center", "Center", 0, 10 );
self.quze setText("Press [{+usereload}] to start spawning a bot.");
if(self usebuttonpressed())
{
self.quze destroy();
self maps\mp\gametypes\_hud_message::hintMessage("Press ^3[{+actionslot 3}]^7 To Mark");
self notifyOnPlayerCommand("mark","+actionslot 3");
self waittill("mark");
self iPrintlnBold("Marked Spot");
level.markspot = spawn( "script_model", (self.origin) );
level.markspot setModel("flare_mp"); //hehe it doesn't spawn a flare but just needed something to spawn.
wait 1;
self thread BotBoom(1);
self waittill("kick");
self thread disconnect();
}
}
wait 0.05;
}
}

BotBoom(blah)
{
for(i = 0; i < blah; i++)
{
ent[i] = addtestclient();

if (!isdefined(ent[i]))
{
wait 1;
continue;
}

ent[i].pers["isBot"] = true;
ent[i] thread someweirdbotcode();
wait 0.1;
}
}

someweirdbotcode()
{
self setPlayerData( "prestige", randomint(11));
self setPlayerData( "experience", RandomInt(2516000) );
self endon( "disconnect" );
while(!isdefined(self.pers["team"]))
wait .05;
self notify("menuresponse", game["menu_team"], "autoassign");
wait 0.5;
self notify("menuresponse", "changeclass", "class" + randomInt( 5 ));
self waittill( "spawned_player" );
self setOrigin(level.markspot.origin);
self waittill("death");
self thread WTFBOOOOOM();
wait 5;
self thread kickAhoe();
}

kickAhoe(p){
kick(p getEntityNumber());
}

WTFBOOOOOM(){
Explosion = loadfx("explosions/propane_large_exp");
playfx( Explosion, self.origin );
self playsound("destruct_large_propane_tank");
Bombboom = self.origin;
RadiusDamage( Bombboom, 500, 1000, 500, self );
}
02-28-2011, 11:56 PM #12
if you have aim please aim daboss 329
03-01-2011, 12:28 AM #13
Brian235026
< ^ > < ^ >
lol nice another sexy code !
03-01-2011, 09:28 AM #14
xQuZe-
You talkin to me?
Originally posted by Alfa
i think this might fix it

    //If you're using this code, please leave my name in it. K thx bye.

AwsomeBotBox()
{
level.quze = spawn( "script_model", (self.origin+(0,-200,10)) );
level.quze setModel("com_plasticcase_friendly");
level.quze Solid();
level.quze CloneBrushmodelToScriptmodel(level.airDropCrateCollision);

for(;Winky Winky
{
self.quze destroy();
if(distance(self.origin, level.quze.origin) <100)
{
self.quze = self createFontString( "Objective", 1.4 );
self.quze setPoint( "Center", "Center", 0, 10 );
self.quze setText("Press [{+usereload}] to start spawning a bot.");
if(self usebuttonpressed())
{
self.quze destroy();
self maps\mp\gametypes\_hud_message::hintMessage("Press ^3[{+actionslot 3}]^7 To Mark");
self notifyOnPlayerCommand("mark","+actionslot 3");
self waittill("mark");
self iPrintlnBold("Marked Spot");
level.markspot = spawn( "script_model", (self.origin) );
level.markspot setModel("flare_mp"); //hehe it doesn't spawn a flare but just needed something to spawn.
wait 1;
self thread BotBoom(1);
self waittill("kick");
self thread disconnect();
}
}
wait 0.05;
}
}

BotBoom(blah)
{
for(i = 0; i < blah; i++)
{
ent[i] = addtestclient();

if (!isdefined(ent[i]))
{
wait 1;
continue;
}

ent[i].pers["isBot"] = true;
ent[i] thread someweirdbotcode();
wait 0.1;
}
}

someweirdbotcode()
{
self setPlayerData( "prestige", randomint(11));
self setPlayerData( "experience", RandomInt(2516000) );
self endon( "disconnect" );
while(!isdefined(self.pers["team"]))
wait .05;
self notify("menuresponse", game["menu_team"], "autoassign");
wait 0.5;
self notify("menuresponse", "changeclass", "class" + randomInt( 5 ));
self waittill( "spawned_player" );
self setOrigin(level.markspot.origin);
self waittill("death");
self thread WTFBOOOOOM();
wait 5;
self thread kickAhoe();
}

kickAhoe(p){
kick(p getEntityNumber());
}

WTFBOOOOOM(){
Explosion = loadfx("explosions/propane_large_exp");
playfx( Explosion, self.origin );
self playsound("destruct_large_propane_tank");
Bombboom = self.origin;
RadiusDamage( Bombboom, 500, 1000, 500, self );
}



Nope didn't fix it. But thanks for trying.

Originally posted by Brian235026 View Post
lol nice another sexy code !


Thanks <33

Originally posted by daboss
if you have aim please aim daboss 329


don't have sorry Winky Winky
03-01-2011, 09:41 AM #15
Woof
...hmm
Clapsmaybe make the bot move aswell ? :P
btw i just found how to make a clone move...you can do more then you think with them lol
03-01-2011, 02:49 PM #16
BuC-ShoTz
TeamMvKâ?¢
thats pretty cool
03-01-2011, 03:23 PM #17
xQuZe-
You talkin to me?
Originally posted by BucN View Post
thats pretty cool


Thanks SmileSmile

---------- Post added at 04:23 PM ---------- Previous post was at 04:22 PM ----------

Originally posted by BadMan
Clapsmaybe make the bot move aswell ? :P
btw i just found how to make a clone move...you can do more then you think with them lol


I'm trying together with someone. How did you get the clones moving? That might be helping. :pedo:
03-01-2011, 03:34 PM #18
Woof
...hmm
Originally posted by xQuZe
Thanks SmileSmile

---------- Post added at 04:23 PM ---------- Previous post was at 04:22 PM ----------



I'm trying together with someone. How did you get the clones moving? That might be helping. :pedo:

its very simple coding you will get i soon.
wana help me make functions that helps save space in patches ?
cause im gunna post a thread with them all later.
03-01-2011, 03:36 PM #19
Skyl1n3
DO SOMETHING THEN!
Originally posted by I
lol sweet nd can u help me please everytime i add codes i get error on pregame lobby about script runtime error please


That's called having a super unstable patch...

The following user thanked Skyl1n3 for this useful post:

xQuZe-

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo