RCBot 2 Latest Beta, Support for CP Granary Test DLL |
RCBot 2 Latest Beta, Support for CP Granary Test DLL |
Cheeseh |
Jun 22 2009, 08:24 PM
Post
#1
|
Admin Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 |
I added support for the CP map CP_Granary (And made a waypoint)
CODE 0.43 - Provisional Support for CP Granary - Fixed a crash bug - Engineers upgrade team mates dispensers and sentries please tell me how they do, if its worth a release Download The source SVN is up to date http://sourceforge.net/scm/?type=svn&group_id=248612 |
Geralt |
Jun 23 2009, 09:34 AM
Post
#2
|
RCBot Fan Group: Waypointers Posts: 198 Joined: 6-February 09 From: Australia Member No.: 1,465 |
You can get the source code from here:
http://sourceforge.net/scm/?type=svn&group_id=248612 |
Cheeseh |
Jun 23 2009, 11:33 AM
Post
#3
|
Admin Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 |
This part is the hard-coded cp_granary script: bot_mods.cpp CODE 97 void CTeamFortress2Mod :: getNextPoints (int iPoint,int iTeam,int iMyTeam,int *iCurrentDefendArea,int *iCurrentAttackArea) 98 { 99 char *mapname = CBotGlobals::getMapName(); 100 101 int iAttackPoint; 102 103 if ( strcmp(mapname,"cp_granary") == 0 ) 104 { 105 if ( iTeam == TF2_TEAM_BLUE ) 106 { 107 iAttackPoint = iPoint + 1; 108 109 if ( iMyTeam == TF2_TEAM_BLUE ) 110 { 111 *iCurrentDefendArea = iPoint; 112 *iCurrentAttackArea = iAttackPoint; 113 } 114 else 115 { 116 *iCurrentDefendArea = iAttackPoint; 117 *iCurrentAttackArea = iPoint; 118 } 119 } 120 else 121 { 122 iAttackPoint = iPoint - 1; 123 124 if ( iMyTeam == TF2_TEAM_BLUE ) 125 { 126 *iCurrentDefendArea = iAttackPoint; 127 *iCurrentAttackArea = iPoint; 128 } 129 else 130 { 131 *iCurrentDefendArea = iPoint; 132 *iCurrentAttackArea = iAttackPoint; 133 } 134 } 135 } 136 } |
Lo-Fi Version | Time is now: 3rd October 2024 - 02:44 PM |