Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Paparazzi, where are you?!
Sat Jul 02 2016, 19:03 by Vc2.Admin

» Requesting lfs CrashHack 0.6b!
Mon Nov 19 2012, 22:40 by LfsKing

» FORUM NEW ADMINISTRATOR.
Sat Sep 01 2012, 23:57 by Vc2.Admin

» Funny Movies
Sun Nov 20 2011, 16:07 by Guest

» REPORTS: THINK 1ST ABOUT THIS FORUM!
Fri Sep 09 2011, 05:46 by Guest

» What Is Your Internet Speed
Thu Sep 01 2011, 05:37 by Guest

» [H+ck Stuff] Boiling Point : Road to Hell 1st table cheat!
Thu Aug 18 2011, 09:36 by Guest

» Tell me please what you think about IRC for all members clan
Fri Jul 15 2011, 04:10 by Guest

» INSIDE - List of Awards, Orders, Merits members!
Sun Jun 26 2011, 17:06 by Guest

Who is online?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest

None

[ View the whole list ]


Most users ever online was 46 on Mon Dec 05 2016, 08:10
May 2018
MonTueWedThuFriSatSun
 123456
78910111213
14151617181920
21222324252627
28293031   

Calendar Calendar


[HOW TO] Define Own Bots In VC2

Go down

[HOW TO] Define Own Bots In VC2

Post  kidde15_lmd$ on Mon Feb 14 2011, 19:48

As you know I'm still extremly active to vietcong2! I don't know if you are but I want to share my bot script.
save this file as BOT.c and use it on your map or something else:
Code:

#include <inc\Maxovo\!max_support.h>
#include <inc\Maxovo\!max_defs.h>
#include <inc\Maxovo\!max_gameplay.h>
#include "level.h"

#define PL_SIDE      SC_P_SIDE_VC //or US
#define PL_GROUP   2 //yep!
#define PL_ID      SC_P_CREATE_MEMID_AUTO

#define CLASS      CLASS_RANDOM_NORMAL //medik or kulas ^^

#define RESPAWN
#define RESPAWN_FLAGS   1      
#define RESPAWN_TIMES   0      //times?
#define RESPAWN_TIME   10.0           //take 0
#define RESPAWN_DIST   30.0   

#define INI_FILE_BODY         "cvp_nva02"
#define INI_FILE_HEAD         "hvm_002"
#define EQP_FILE_BODY         "G\\characters\\cvp_nva04\\sniper\\eqp.ini"
#define EQP_FILE_HEAD         "G\\characters\\_heads\\_eqpini\\vhg002.ini"

#define MP_SEARCH_PLAYER      10      //search you!
#define MP_SEARCH_PLAYER_DIST   50.0
#define MP_SEARCH_PLAYER_RETRY   10.0   

#define MAINTASK
#define MAINTASK_COUNT   1
#define MAINTASK_LOOPED   FALSE

#define MWP_SEARCH      30.0  //-->weapons
#define CUSTOM_WEAPONS //may work
#include <inc\Maxovo\uni_soldier.cxx>

int define_maintask() {
   dword   cur;

   for (cur=0; cur<MAINTASK_COUNT; cur++) CLEAR(maintask[cur]);
   cur = 0;

   sprintf(maintask[cur].name, "main_task_vc_#1");
   maintask[cur].coop_id   = 20;
   maintask[cur].flags      = SC_P_AI_MAINTASK_FL_DO_VALID_MOVEDIRECTION_TEST | SC_P_AI_MAINTASK_FL_ALLOW_MOVE_TO_NOCOVER | SC_P_AI_MAINTASK_FL_PERMANENT;
   maintask[cur].step      = 10.0;
   maintask[cur].wait      = 1.0;
   cur++;

   sprintf(maintask[cur].name, "main_task_vc_#2");
   maintask[cur].coop_id   = 21;
   maintask[cur].flags      = SC_P_AI_MAINTASK_FL_DO_VALID_MOVEDIRECTION_TEST | SC_P_AI_MAINTASK_FL_ALLOW_MOVE_TO_NOCOVER | SC_P_AI_MAINTASK_FL_PERMANENT;
   maintask[cur].step      = 10.0;
   maintask[cur].wait      = 1.0;
   cur++;

   return cur;
}
dword   gphase = 0;
BOOL callback_to_main(s_SC_Pscript_info *info) {
   switch(info->message){
//the weapon (look in gameplay.h for more information
   case SC_PLSCR_MSG_SCRIPT_INIT:
   uni_weap_count = 1;
   uni_weap[0].weap_id = WEAP_P_M1911;
      break;
   
   case SC_PLSCR_MSG_PL_RESPAWNED:
      PL_MAINTASK_disable();
      break;

   case SC_PLSCR_MSG_SCRIPT_TIMETICK:
      switch (gphase) {
      case 0:
         if (uni_gphase == 1) {
            MAX_GMP_change_skill(info->player, 0.58);
            gphase = 1;
         }
         break;

      case 1:
         break;

      }

      break;

   case SC_PLSCR_MSG_AI_MOVEAT_CALLBACK:
      break;
   }
   return TRUE;
}
post here if you have problem OR need help Very Happy
avatar
kidde15_lmd$
"Cheat, Code dealer - HT, MT"


Viestien lukumäärä : 147
Points : 916
Reputation : 217
Join date : 2010-03-27
Ikä : 25
Kommentit : Pro In
VB8 and VB10

Preferences: Virus(WDR)/Keylogger, Malaware, Rootkit, Real Pro in Linux. Have tried all distributions and make my own Desktop Remix (LINUX GREENFIRE with XFCE and GNOME), Classic CMD, P2P Knowledge, 3D structure, 3D intros, Media Rendering Specialized in Audio and Video. Computer Software and Hardware.

List of Programs I use: http://lemondogs.webs.com/Kidde15%20programs.txt

Languages:
HTML, HTML5, PHP, CSS,
J#, C#, C++ and Java (Linux Kernel)




View user profile

Back to top Go down

BOT#2

Post  kidde15_lmd$ on Mon Feb 14 2011, 19:55

Here is a simple BOT script:
Code:
// bot#2 by KIDDe15

#define GROUP 2
#define MEMBERID   0
#define RANK 1 //1,2,3,4,5 or 6
#define NAME_NR 2741 //look in INI/TXT/vc2speech.xls for ID's
#define REDEFINIFILENAME "cvp_nva04"

#define INI_FILE_BODY         "cvp_nva04" //available Objects
#define EQP_FILE_BODY         "G\\characters\\cvp_nva04\\commander\\eqp.ini" //.eqp
#define EQP_FILE_HEAD         "G\\characters\\_heads\\_eqpini\\vhg005.ini" //head OBJ

#define FORCEMAINGUN 9 //maingun! 9 = Makarov
#define STANDSTATIV "g\\anims\\script anims\\st032.stg" //How he stands
#define FACETYPE "aggresive" //unhappy or clamed (?)
#include <inc\shigor\vcsoldier.cxx>
avatar
kidde15_lmd$
"Cheat, Code dealer - HT, MT"


Viestien lukumäärä : 147
Points : 916
Reputation : 217
Join date : 2010-03-27
Ikä : 25
Kommentit : Pro In
VB8 and VB10

Preferences: Virus(WDR)/Keylogger, Malaware, Rootkit, Real Pro in Linux. Have tried all distributions and make my own Desktop Remix (LINUX GREENFIRE with XFCE and GNOME), Classic CMD, P2P Knowledge, 3D structure, 3D intros, Media Rendering Specialized in Audio and Video. Computer Software and Hardware.

List of Programs I use: http://lemondogs.webs.com/Kidde15%20programs.txt

Languages:
HTML, HTML5, PHP, CSS,
J#, C#, C++ and Java (Linux Kernel)




View user profile

Back to top Go down

Re: [HOW TO] Define Own Bots In VC2

Post  Vieraili on Sun Feb 20 2011, 23:13

ty kiddie +100 Smile nice found that help a lot who's trying to mod the scripts. btw this is in c++ and for my surprise is really simple just define the vars :p really interesting. i'm now active in kknd krossfire old strategy game. a pic:


Vieraili
Guest


Back to top Go down

Re: [HOW TO] Define Own Bots In VC2

Post  kidde15_lmd$ on Mon Feb 21 2011, 12:40

[quote="Paparazzi Cool"]ty kiddie +100 Smile nice found that help a lot who's trying to mod the scripts. btw this is in c++ and for my surprise is really simple just define the vars :p really interesting. i'm now active in kknd krossfire old strategy game. a pic:

hohohoh!!! m88!! ty!
well, this script is vars and define and so on so that's why it's simple (there are more "Define" in the engine)
I see you run that game over Wine, very nice!
What Linux do you run?
If you are good in Linux maybe you can help me programming some things that I need! Or you still programming?
avatar
kidde15_lmd$
"Cheat, Code dealer - HT, MT"


Viestien lukumäärä : 147
Points : 916
Reputation : 217
Join date : 2010-03-27
Ikä : 25
Kommentit : Pro In
VB8 and VB10

Preferences: Virus(WDR)/Keylogger, Malaware, Rootkit, Real Pro in Linux. Have tried all distributions and make my own Desktop Remix (LINUX GREENFIRE with XFCE and GNOME), Classic CMD, P2P Knowledge, 3D structure, 3D intros, Media Rendering Specialized in Audio and Video. Computer Software and Hardware.

List of Programs I use: http://lemondogs.webs.com/Kidde15%20programs.txt

Languages:
HTML, HTML5, PHP, CSS,
J#, C#, C++ and Java (Linux Kernel)




View user profile

Back to top Go down

Re: [HOW TO] Define Own Bots In VC2

Post  Vieraili on Tue Feb 22 2011, 02:26

im working on a project too like own operative system for a proper computer like multimedia. i use c, c++, vb6 and some html, css. linux i use ubuntu.

Vieraili
Guest


Back to top Go down

Re: [HOW TO] Define Own Bots In VC2

Post  kidde15_lmd$ on Sat Feb 26 2011, 13:36

Paparazzi Cool wrote:im working on a project too like own operative system for a proper computer like multimedia. i use c, c++, vb6 and some html, css. linux i use ubuntu.

whooooaaaa!!! OWN OPERATING SYSTEM!! It takes several years to learn those Linux SDK! Or you'r good at it?
avatar
kidde15_lmd$
"Cheat, Code dealer - HT, MT"


Viestien lukumäärä : 147
Points : 916
Reputation : 217
Join date : 2010-03-27
Ikä : 25
Kommentit : Pro In
VB8 and VB10

Preferences: Virus(WDR)/Keylogger, Malaware, Rootkit, Real Pro in Linux. Have tried all distributions and make my own Desktop Remix (LINUX GREENFIRE with XFCE and GNOME), Classic CMD, P2P Knowledge, 3D structure, 3D intros, Media Rendering Specialized in Audio and Video. Computer Software and Hardware.

List of Programs I use: http://lemondogs.webs.com/Kidde15%20programs.txt

Languages:
HTML, HTML5, PHP, CSS,
J#, C#, C++ and Java (Linux Kernel)




View user profile

Back to top Go down

Re: [HOW TO] Define Own Bots In VC2

Post  Vieraili on Sun Feb 27 2011, 00:12

actually never tried but as it coded in c it will not be so difficult to program but btw need to learn some of commands and try examples to get used to. This pc multimedia is based on windows xp because i don't have much time to make all own operative system (as i working in this project alone) by using unix. As it is a project ppl wont copy cause i'm using Microsoft they got own copy right's so ppl won't be able to stole my project and used to commercial proposes. that's it :p

Vieraili
Guest


Back to top Go down

Re: [HOW TO] Define Own Bots In VC2

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum