Post: [Tutorial] How to make walking models.
03-03-2011, 01:51 PM #1
xQuZe-
You talkin to me?
(adsbygoogle = window.adsbygoogle || []).push({}); First of all.
Credits go to
You must login or register to view this content.
TheUnkn0wn for the model manipulation script.
Derektrotter for the model list.
I took his code for this tutorial.
Don't flame. I'm trying to help people.


[ame="https://www.youtube.com/watch?v=puCZGwxrW3E"]https://www.youtube.com/watch?v=puCZGwxrW3E[/ame]

Okay this is pretty easy lol.
Here is the code:
    DaftBots()
{
/*Created By x_DaftVader_x*/ self endon("death");
self endon("disconnect");
self setClientDvar("testClients_doMove","1");
self setClientDvar("testClients_doAttack","0");
self hide();
self thread BotEscort();
wait 2;
}
WalkingModel(Model,Distance,YOffset)
{
doll=spawn("script_model",self.origin);
doll setModel(Model);
doll Solid();
self thread FlyMove(doll,YOffset);
}
FlyMove(FlyModel,YOffset)
{
self endon("disconnect");
self endon("death");
for(;Winky Winky
{
if(isDefined(FlyModel))
{
FlyModel RotateTo(self getPlayerAngles(),0.1);
wait 0.05;
FlyModel MoveTo(self.origin+(0,0,YOffset),0.1);
wait 0.05;
}
else
{
break;
}
}
}
BotEscort()
{
self endon("disconnect");
level.botorigin2=self.origin+(0,-100,0);
for(;Winky Winky
{
self thread MyBot(1);
wait 1;
}
}
MyBot(bodyguards)
{
myteam=self.team;
for(i = 0;i < bodyguards;i++)
{
ent[i] = addtestclient();
if (!isdefined(ent[i]))
{
wait 0.11;
continue;
}
ent[i].pers["isBot"] = true;
ent[i] thread botspawn(myteam);
wait 0.1;
}
}
botspawn(myteam)
{
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.05;
self notify("menuresponse", "changeclass", "class" + randomInt( 5 ));
self waittill( "spawned_player" );
self setOrigin(level.botorigin2);
[COLOR="Red"]self hide();
wait 1;
self thread WalkingModel("ma_flatscreen_tv_on_wallmount_02_static",200,10);[/COLOR]
}


Let's take a look at the last part:
    self hide();
wait 1;
self thread WalkingModel([COLOR="red"]"ma_flatscreen_tv_on_wallmount_02_static"[/COLOR],200,10);


Self hide() Makes it so you don't see the bot.
But we want to attach a model to the bot.
As you can see it now spawns walking tv's lol.
You must login or register to view this content.

We can change this to anything..

    self thread WalkingModel([COLOR="Red"]"chicken_black_white"[/COLOR],200,10);

Now it spawn's walking chicken's
Here is a list with models sorted by map:


You must login or register to view this content.

And:
Originally posted by ..V.. View Post
If you change the attack dvar they can still kill people Winky Winky


So just change
    self setClientDvar("testClients_doAttack","0");

to
    self setClientDvar("testClients_doAttack","1");

To make the bots shooting and killing Happy
(adsbygoogle = window.adsbygoogle || []).push({});

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

Jannis96, Kameo, xT4sSin
03-03-2011, 04:21 PM #11
malanof5
Error… Cat invasion!
Originally posted by NaThR View Post
V had sex dolls on afghan , are they already allowed on there



Yh in one area in that map is one somewhere I forgot where tho.
03-03-2011, 04:21 PM #12
xQuZe-
You talkin to me?
Originally posted by NaThR View Post
V had sex dolls on afghan , are they already allowed on there


Yup afghan & terminal only. Check the model list.
03-03-2011, 04:25 PM #13
Originally posted by xQuZe
First of all.
Credits go to
You must login or register to view this content.
TheUnkn0wn for the model manipulation script.
Derektrotter for the model list.
I took his code for this tutorial.
Don't flame. I'm trying to help people.


You must login or register to view this content.

Okay this is pretty easy lol.
Here is the code:
    DaftBots()
{
/*Created By x_DaftVader_x*/ self endon("death");
self endon("disconnect");
self setClientDvar("testClients_doMove","1");
self setClientDvar("testClients_doAttack","0");
self hide();
self thread BotEscort();
wait 2;
}
WalkingModel(Model,Distance,YOffset)
{
doll=spawn("script_model",self.origin);
doll setModel(Model);
doll Solid();
self thread FlyMove(doll,YOffset);
}
FlyMove(FlyModel,YOffset)
{
self endon("disconnect");
self endon("death");
for(;Winky Winky
{
if(isDefined(FlyModel))
{
FlyModel RotateTo(self getPlayerAngles(),0.1);
wait 0.05;
FlyModel MoveTo(self.origin+(0,0,YOffset),0.1);
wait 0.05;
}
else
{
break;
}
}
}
BotEscort()
{
self endon("disconnect");
level.botorigin2=self.origin+(0,-100,0);
for(;Winky Winky
{
self thread MyBot(1);
wait 1;
}
}
MyBot(bodyguards)
{
myteam=self.team;
for(i = 0;i < bodyguards;i++)
{
ent[i] = addtestclient();
if (!isdefined(ent[i]))
{
wait 0.11;
continue;
}
ent[i].pers["isBot"] = true;
ent[i] thread botspawn(myteam);
wait 0.1;
}
}
botspawn(myteam)
{
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.05;
self notify("menuresponse", "changeclass", "class" + randomInt( 5 ));
self waittill( "spawned_player" );
self setOrigin(level.botorigin2);
[COLOR="Red"]self hide();
wait 1;
self thread WalkingModel("ma_flatscreen_tv_on_wallmount_02_static",200,10);[/COLOR]
}


Let's take a look at the last part:
    self hide();
wait 1;
self thread WalkingModel([COLOR="red"]"ma_flatscreen_tv_on_wallmount_02_static"[/COLOR],200,10);


Self hide() Makes it so you don't see the bot.
But we want to attach a model to the bot.
As you can see it now spawns walking tv's lol.
You must login or register to view this content.

We can change this to anything..

    self thread WalkingModel([COLOR="Red"]"chicken_black_white"[/COLOR],200,10);

Now it spawn's walking chicken's
Here is a list with models sorted by map:


You must login or register to view this content.

And:


So just change
    self setClientDvar("testClients_doAttack","0");

to
    self setClientDvar("testClients_doAttack","1");

To make the bots shooting and killing Happy


Funny , Thank You ! Happy
03-03-2011, 05:39 PM #14
Beta-
< ^ > < ^ >
Nasty Yet Cool :y: Nice Job
03-03-2011, 06:27 PM #15
Originally posted by malanof5 View Post
Now what about a bot drop that spawns diff type's of models?


You have everything you need to make that now. Just think about it...

The following user thanked x_DaftVader_x for this useful post:

Blackstorm
03-03-2011, 08:39 PM #16
UrsusTheGrizzly
Do a barrel roll!
Originally posted by xQuZe
First of all.
Credits go to
You must login or register to view this content.
TheUnkn0wn for the model manipulation script.
Derektrotter for the model list.
I took his code for this tutorial.
Don't flame. I'm trying to help people.


You must login or register to view this content.

Okay this is pretty easy lol.
Here is the code:
    DaftBots()
{
/*Created By x_DaftVader_x*/ self endon("death");
self endon("disconnect");
self setClientDvar("testClients_doMove","1");
self setClientDvar("testClients_doAttack","0");
self hide();
self thread BotEscort();
wait 2;
}
WalkingModel(Model,Distance,YOffset)
{
doll=spawn("script_model",self.origin);
doll setModel(Model);
doll Solid();
self thread FlyMove(doll,YOffset);
}
FlyMove(FlyModel,YOffset)
{
self endon("disconnect");
self endon("death");
for(;Winky Winky
{
if(isDefined(FlyModel))
{
FlyModel RotateTo(self getPlayerAngles(),0.1);
wait 0.05;
FlyModel MoveTo(self.origin+(0,0,YOffset),0.1);
wait 0.05;
}
else
{
break;
}
}
}
BotEscort()
{
self endon("disconnect");
level.botorigin2=self.origin+(0,-100,0);
for(;Winky Winky
{
self thread MyBot(1);
wait 1;
}
}
MyBot(bodyguards)
{
myteam=self.team;
for(i = 0;i < bodyguards;i++)
{
ent[i] = addtestclient();
if (!isdefined(ent[i]))
{
wait 0.11;
continue;
}
ent[i].pers["isBot"] = true;
ent[i] thread botspawn(myteam);
wait 0.1;
}
}
botspawn(myteam)
{
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.05;
self notify("menuresponse", "changeclass", "class" + randomInt( 5 ));
self waittill( "spawned_player" );
self setOrigin(level.botorigin2);
[COLOR="Red"]self hide();
wait 1;
self thread WalkingModel("ma_flatscreen_tv_on_wallmount_02_static",200,10);[/COLOR]
}


Let's take a look at the last part:
    self hide();
wait 1;
self thread WalkingModel([COLOR="red"]"ma_flatscreen_tv_on_wallmount_02_static"[/COLOR],200,10);


Self hide() Makes it so you don't see the bot.
But we want to attach a model to the bot.
As you can see it now spawns walking tv's lol.
You must login or register to view this content.

We can change this to anything..

    self thread WalkingModel([COLOR="Red"]"chicken_black_white"[/COLOR],200,10);

Now it spawn's walking chicken's
Here is a list with models sorted by map:


You must login or register to view this content.

And:


So just change
    self setClientDvar("testClients_doAttack","0");

to
    self setClientDvar("testClients_doAttack","1");

To make the bots shooting and killing Happy


nice, will try it out
03-03-2011, 08:59 PM #17
this was already posted alot of times lol xD
03-03-2011, 09:32 PM #18
Merkii
Former Staff
Originally posted by Rogelio702 View Post
this was already posted alot of times lol xD


NO IT WAS NOT!
He made a tut ...V... Made a code and released it GET YOUR FACTS RIGHT OR GTFO

The following user thanked Merkii for this useful post:

xQuZe-

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo