okies....now i forgot what the command was....

New Member
Joined
Jan 27, 2003
Messages
918
Best answers
0
for flying,in C++

I need it for bots I'm trying to code,but you already know how sucky I am at coding,just ask Me(as in Me the =official= bot coder and not me)

I really suck at coding,and I suggested teaching programming in my school,and I don't know w00t will happen next

just hope it's just the command 'fly' though

EDIT: AGGHH!!And I thought this was supposed to go into coding,but noooo,I believe it should go to Help instead,but do what you see fit mods
 
Senior Member
✔️ HL Verified
Joined
Jan 7, 2003
Messages
859
Best answers
0
Well its a bot coding :)

Anyway to fly for your bots you should have sumtin like this:

if (pEdict->v.gravity > 0.1) // when the bot isn't flying...
{
pEdict->v.button |= IN_JUMP; // optional: let the bot first
// jumpt before he fly's

FakeClientCommand(pEdict,"togglefly",NULL,NULL); // fly..
}

Just put that in your botthink function somewhere(guess you also use botmans template)
 
New Member
Joined
Jan 27, 2003
Messages
918
Best answers
0
hehe yes I did,and tahnx :)

I'm definitely clueless to coding bots so I just edit a bit here,and edit a bit there,and....well you already know how I work

I guess botman was doing the same thing when he started coding eh?

EDIT : eh....now how do I add weapons again?
Maybe edit bot_weapons.h ^^'
 
Senior Member
✔️ HL Verified
Joined
Jan 7, 2003
Messages
859
Best answers
0
hmm don't you have a messenger like msn or sumtin maybe thats handier :)
 

Users who are viewing this thread

Top Bottom