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, 02:29 PM #2
If you change the attack dvar they can still kill people Winky Winky

The following user thanked x_DaftVader_x for this useful post:

Jannis96
03-03-2011, 02:34 PM #3
xQuZe-
You talkin to me?
Originally posted by ..V.. View Post
If you change the attack dvar they can still kill people Winky Winky


Added it Smile
03-03-2011, 03:58 PM #4
malanof5
Error… Cat invasion!
Nice now has anyone made a jumping bot???
03-03-2011, 04:07 PM #5
Blackstorm
Veni. Vidi. Vici.
This is pretty easy to do, but good job, btw give credit to TheUnkn0wn for the model manipulation script.

The following user thanked Blackstorm for this useful post:

x_DaftVader_x
03-03-2011, 04:11 PM #6
The InvadeR
Who’s Jim Erased?
Originally posted by xQuZe
First of all.
All credits go to You must login or register to view this content.
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:
Credits to Derektrotter for this list.


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


How do we make a sex doll on any map or a vending machine?
03-03-2011, 04:13 PM #7
malanof5
Error… Cat invasion!
Originally posted by NaThR View Post
How do we make a sex doll on any map or a vending machine?



Oh on ANY map oh thats not possible sorry for the miss reading.
03-03-2011, 04:14 PM #8
xQuZe-
You talkin to me?
Originally posted by NaThR View Post
How do we make a sex doll on any map or a vending machine?


We can't lol.

---------- Post added at 05:14 PM ---------- Previous post was at 05:14 PM ----------

Originally posted by .Blackstorm View Post
This is pretty easy to do, but good job, btw give credit to TheUnkn0wn for the model manipulation script.


Thx, added.
03-03-2011, 04:16 PM #9
malanof5
Error… Cat invasion!
Now what about a bot drop that spawns diff type's of models?
03-03-2011, 04:20 PM #10
The InvadeR
Who’s Jim Erased?
Originally posted by xQuZe
We can't lol.

---------- Post added at 05:14 PM ---------- Previous post was at 05:14 PM ----------



Thx, added.


V had sex dolls on afghan , are they already allowed on there

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo