Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Run this command
#1

Hello, I have a problem. I create bots but they fly, I think it comes from this order. If someone could make me walk? Pls


Quote:ClampToGround()
{
self endon("bot_death");
self endon("crate_gone");

while(1)
{
trace = bulletTrace(self.origin + (0,0,50), self.origin + (0,0,-40), false, self);
if(isdefined(trace["entity"]) && isDefined(trace["entity"].targetname) && trace["entity"].targetname == "bot")
trace = bulletTrace(self.origin + (0,0,50), self.origin + (0,0,-40), false, trace["entity"]);

self.origin = (trace["position"]);
self.currentsurface = trace["surfacetype"];
if(self.currentsurface == "none")
self.currentsurface = "default";

wait .5;
}
}
Reply

#2
Code:
ClampToGround()
{
self endon("bot_death");
self endon("crate_gone");

while(1)
{
trace = bulletTrace(self.origin + (0,0,50), self.origin + (0,0,-40), false, self);
if(isdefined(trace["entity"]) && isDefined(trace["entity"].targetname) && trace["entity"].targetname == "bot")
trace = bulletTrace(self.origin + (0,0,50), self.origin + (0,0,-40), false, trace["entity"]);

self.origin = (trace["position"]);
self.currentsurface = trace["surfacetype"];
if(self.currentsurface == "none") <------------- remove this line mabey souldnt work but mabey it does
self.currentsurface = "default";

wait .5; <-------- and change this to wait 0.5; mabey
}
}
I like turtles
[Image: thumb-275x274-design-609.png]

Reply

#3
change .5 to .05

if you are still using my mw2 move function from AI Zombies....well this will not work out that well
[Image: b_560_95_1.png]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help auto command Dynasty 6 4,028 08-26-2013, 16:05
Last Post: hillbilly
  !come command Dr3am95 12 7,067 02-12-2013, 12:08
Last Post: SgtLegend
  whats the command to get string length pedjas 4 2,846 01-20-2013, 18:30
Last Post: pedjas
  [Request] Team change by admin command. Dumas 10 8,341 11-29-2012, 21:38
Last Post: 99IRock
Question Help kick command still need help koro35 3 3,073 11-27-2012, 22:45
Last Post: koro35
  [Help] How to hide a command? korsika 4 3,838 10-27-2012, 23:30
Last Post: korsika
  server command problem anedaktos 3 2,835 08-05-2012, 12:14
Last Post: hillbilly
  [Tutorial] Making command-line application Arteq 9 5,123 04-17-2012, 13:35
Last Post: OrangePL
  [Request] !killall or !respawn all command? choppson 4 2,715 03-10-2012, 20:51
Last Post: JariZ
  [Request] Admin Chat command changing Map and Mod DeMenTor 6 3,604 03-03-2012, 06:52
Last Post: Yurio

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.