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
03-01-2011, 04:22 PM #20
xQuZe-
You talkin to me?
Originally posted by BadMan
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.


Sure but im not so code in optimizing Winky Winky
My codes are big. Smile
03-01-2011, 04:24 PM #21
Woof
...hmm
Originally posted by xQuZe
Sure but im not so code in optimizing Winky Winky
My codes are big. Smile

oh well, i mainly need ideas :/
03-01-2011, 07:50 PM #22
xQuZe-
You talkin to me?
Originally posted by BadMan
oh well, i mainly need ideas :/


k lol 14312341234235345awer
03-01-2011, 09:21 PM #23
Merkii
Former Staff
Originally posted by daboss
if you have aim please aim daboss 329


Loner with no friends coming on to ngu looking for people to add him? doesn look good
03-01-2011, 09:27 PM #24
Originally posted by MerkLovesToHack View Post
Loner with no friends coming on to ngu looking for people to add him? doesn look good


really why dont you just stfu you niggr big lipped bitch im from 7s and it told him to aim me for a reason not because i have no friends which i do i dont get why you would post that any ways you must be mad at your small dick
03-01-2011, 09:32 PM #25
Merkii
Former Staff
Originally posted by daboss
really why dont you just stfu you niggr big lipped bitch im from 7s and it told him to aim me for a reason not because i have no friends which i do i dont get why you would post that any ways you must be mad at your small dick


1. Bet you you have a small dick cos you try to say someone else does and you feel insecure about yours

2. It typicly means you have about 10 friends if you cmon saying OMG I HAVE FRIENDS everyone can tell thats a lie

3. Saying to me to GTFO when i said it DOESNT LOOK GOOD i never said anything offensive so your took a freeker at me

4. i recommend you go take a chillax pill cause you have anger issues Cool Man (aka Tustin)
03-01-2011, 09:39 PM #26
Originally posted by MerkLovesToHack View Post
1. Bet you you have a small dick cos you try to say someone else does and you feel insecure about yours

2. It typicly means you have about 10 friends if you cmon saying OMG I HAVE FRIENDS everyone can tell thats a lie

3. Saying to me to GTFO when i said it DOESNT LOOK GOOD i never said anything offensive so your took a freeker at me

4. i recommend you go take a chillax pill cause you have anger issues Cool Man (aka Tustin)

you never said anything offensive really you said i was a loner with no friends out of no were No and i never said OMG i have friends i said which i do stop trying to act like your smart kid just stfu i bet you're either in your 20s or 12 or 13 or something and dont have a life ohh ya also im not getting mad i could care less about the internet i was only mad that you would talk shit for no reason what so ever No that just proves your a bitch in real life and bullied
03-01-2011, 09:52 PM #27
xQuZe-
You talkin to me?
Originally posted by MerkLovesToHack View Post
Loner with no friends coming on to ngu looking for people to add him? doesn look good


I though you said "Boner with no friends." hahaha:pedo:
03-02-2011, 08:00 AM #28
Merkii
Former Staff
Originally posted by daboss
you never said anything offensive really you said i was a loner with no friends out of no were No and i never said OMG i have friends i said which i do stop trying to act like your smart kid just stfu i bet you're either in your 20s or 12 or 13 or something and dont have a life ohh ya also im not getting mad i could care less about the internet i was only mad that you would talk shit for no reason what so ever No that just proves your a bitch in real life and bullied


i promise you i do not get bullied i was pointing out if you post on a thread saying ADD MY AIM! it doesnt look good it looks like your sad and have to beg for someone to add you why didnt you just PM him?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo