IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Define new keys in Source code for BOTs ?, Captain, I get a problem.
Salvax
post Apr 20 2007, 03:23 AM
Post #1


Advanced Member
***

Group: Members
Posts: 75
Joined: 14-February 07
Member No.: 1,034



the keys in source code are limited (IN_JUMP , IN_DUCK etc... dry.gif ), can we define new keys for BOT to press ? and How ? THX Captain !
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Apr 20 2007, 04:43 PM
Post #2


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



QUOTE(Salvax @ Apr 20 2007, 04:23 AM) *

the keys in source code are limited (IN_JUMP , IN_DUCK etc... dry.gif ), can we define new keys for BOT to press ? and How ? THX Captain !

find where IN_DUCK , IN_JUMP etc are defined, youll find all of the available buttons in there
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Salvax
post Apr 21 2007, 02:13 AM
Post #3


Advanced Member
***

Group: Members
Posts: 75
Joined: 14-February 07
Member No.: 1,034



u mean we can modify source code to add a new KEY ?

I think buttons are defined here: hl2scr\cl_dll\in_main.cpp

CODE


kbutton_t    in_speed;
kbutton_t    in_walk;
...
..
.
kbutton_t    in_forward;
kbutton_t    in_back;
kbutton_t    in_moveleft;
kbutton_t    in_moveright;



PS:can we let bots execute some commands in console ? for example ,just like BOT talking :

CODE
say hello !


PS:I mean I have no idea about how to define new keys except IN_???? which have been already defined in_main.cpp .sad.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 21st August 2025 - 05:16 PM