Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2013
835
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.13 KB | None | 0 0
  1. Back last year, I always wanted wanted bots on MW2, I did some research and found out there was some bots! After hours of play, I got bored because they lacked some things. So i decided I'll look into the code, not knowing any C or GSC code, I started to learn. Finally after one year of hobby coding, I decided to release it into this.
  2.  
  3. [img]http://i42.tinypic.com/f57gnk.gif[/img]
  4.  
  5. [youtube]rltqkEFY4a4[/youtube]
  6. [youtube]NLjSmBPyxDQ[/youtube]
  7.  
  8. [b][size=150]Features:[/size][/b]
  9. Adds AI Bots to matches.
  10. !![i]Bots can move around the maps. (all stock, a few custom maps)[/i]
  11. !![i]Bots play all gamemodes and cap flags and plant, etc. (all stock and hidden modes)[/i]
  12. !![i]Bots use all killstreaks. Including AC130 and chopper gunner. Bots choose 3 streaks and use them when earned.[/i]
  13. !![i]Bots can destroy enemy equipment.[/i]
  14. !![i]Bots can steal and capture care packages.[/i]
  15. !![i]Bots could watch a killcam and react to it.[/i]
  16. !![i]Custom bot class loadouts. Can change all bots to snipe mode, knife mode, etc.[/i]
  17. !![i]Bots are assigned a difficulty level, each are different, but can be changed.[/i]
  18. !![i]Bots respond to player's camping location, shooting from location, etc.[/i]
  19. !![i]Bots destroy killstreaks and use stingers.[/i]
  20. !![i]Bots talk and can change the rate they talk.[/i]
  21. !![i]Bots use grenades and other equipment as well as weapon attachments (noobtube).[/i]
  22. !![i]Bots move their legs (and trip claymores (devwalk)).[/i]
  23. !![i]Bots use all primaries, all secondaries (except javelin) and switch between them.[/i]
  24. !![i]Bots use all perks and deathstreaks, the perks actually do something to the bot as well.[/i]
  25. !![i]Bots remember their class loadout and killstreak loadout generated.[/i]
  26. !![i]Easy to merge mods with the mod. Edits minimal stock .gsc's and doesn't edit _rank.gsc.[/i]
  27. !![i]Everything is customizable, ideal for servers. Can customize how many people/bots on a team, how many hard/medium/easy bots on a team, Can disable bots using streaks, explosive weapons, knifing, etc.[/i]
  28.  
  29. [b][size=150]Installation (client):[/size][/b]
  30. [code]1. Locate your MW2 Folder (the folder you located when installing IW4M).
  31. 2. Find your 'mods' folder (if none, create one).
  32. 3. Create a folder in 'mods' called 'bots'.
  33. 4. Download the latest version .iwd file (found below) and save it to the 'bots' folder. (IW4M client\mods\bots\z_svr_bots.iwd)
  34. 5. Play IW4M and go to 'MODS' and double click 'BOTS' from the menu, wait for it to restart.
  35. 6. Go to private match and start a game. (to open the menu, press your actionslot1 button, default '5')[/code]
  36.  
  37. [b][size=150]Installation (server):[/size][/b]
  38. [code]1. Use this to setup your server initially: http://fourdeltaone.net/forum/viewtopic.php?f=7&t=2151
  39. 2. Now download the .iwd file to "IW4M server\mods\bots\z_svr_bots.iwd".
  40. 3. Use "+set fs_game "mods/bots"" for your server parameters.
  41. 4. Now you look at the dvar documentation list for customizing the bots to your likings.
  42. You can use http://pastebin.com/0bdCQjKd and add it to your server.cfg.[/code]
  43.  
  44. [b][size=150]Modding within the mod documentation:[/size][/b]
  45. [code]This mod edits all of the stock map and some custom map .gsc files to add the waypoints. (maps\mp\"map".gsc)
  46.  
  47. If the mod changes everyone's weapon loadout or perks then set svr_bots_mod_switch, svr_bots_mod_weap and svr_bots_mod_perk to 1. As well within the mod, find where switchtoweapon is and add setspawnweapon with the same call and arguments.[/code]
  48.  
  49. [b][size=150]Bot DVAR list documentation:[/size][/b]
  50. [code]svr_bots (0 to 18) - number of bots to add to game, resets to 0 once bots are added no need to edit this
  51. svr_bots_fill (0 to 18) - amount of players to have ingame
  52. svr_bots_kick (0 to 1) - if to kick bots if svr_bots_fill is exceeded
  53. svr_bots_fill_mode (0 to 1) - bots and players add up if 0, bots add up if 1
  54. svr_bots_reset (0 to 1) - resets the bots if 1, once resetted it goes to 0 no need to edit this
  55. svr_bots_skill (0 to 8) - bot difficulty, 0 is random (affected at reset), 1 is easy and up to 7 is hard, 8 is custom
  56. svr_bots_team (axis, allies, autoassign, custom) - is team for bots to spawn on (affected at reset)
  57. svr_bots_team_force (0 to 1) - forces the bot on team
  58. svr_bots_team_mode (0 to 1) - if team is custom, the amount of players on team is added up as everyone = 0, or just bots on 1.
  59. svr_bots_team_amount (0 to 9) - is if svr_bots_team is custom then amount of bots or players depending on svr_bots_fill_mode on axis team, remainder is put on allies ignores svr_bots_team_force
  60. svr_bots_skill_hard_axis (0 to 9) - is if svr_bots_skill is 8 then amount of hard bots on team axis is
  61. svr_bots_skill_hard_allies (0 to 9) - is if svr_bots_skill is 8 then amount of hard bots on team allies is
  62. svr_bots_skill_medium_axis (0 to 9) - is if svr_bots_skill is 8 then amount of medium bots on team axis is
  63. svr_bots_skill_medium_allies (0 to 9) - is if svr_bots_skill is 8 then amount of medium bots on team allies is
  64. svr_bots_custom (0, tube, snipe, default, knife, nade, akimbo) - is bots custom load out of perks and weapons
  65. svr_bots_talk (0 to 1) - is bots toggle of talking
  66. svr_bots_talk_rate (0.01 to 10) - the scale of how often the bots will talk
  67. svr_bots_nuke (0 to 1) - is bots toggle of using nukes
  68. svr_bots_destroyEq (0 to 1) - is bots toggle of attacking equipment
  69. svr_bots_streak (0 to 1) - is bots toggle of killstreaks
  70. svr_bots_killstreak (legacy, custom, random) - is bots killstreak mode. legacy is old mode, other two are new
  71. svr_bots_deathstreaks (0 to 1) - is bots toggle of deathstreaks
  72. svr_bots_move (0 to 1) - is bots toggle of moving
  73. svr_bots_secondary (0 to 1) - is bots toggle of using secondaries
  74. svr_bots_laststand (0 to 1) - is bots toggle of using laststand as a perk
  75. svr_bots_attack (0 to 1) - is bots toggle of attacking
  76. svr_bots_dostuck (0 to 1) - is bots toggle of antistuck
  77. svr_bots_doobj (0 to 1) - is bots toggle of playing objective
  78. svr_bots_takecare (0 to 1) - is bots toggle of taking care packages
  79. svr_bots_aim (0 to 1) - is bots toggle of aiming
  80. svr_bots_riot (0 to 1) - is bots toggle of having a riot shield
  81. svr_bots_tube (0 to 1) - is bots toggle of using explosive weaponry
  82. svr_bots_nade (0 to 1) - is bots toggle of grenadier
  83. svr_bots_ammo (0 to 1) - is bots toggle of ammo for dev walk
  84. svr_bots_snipe (0 to 1) - is bots toggle of using snipers
  85. svr_bots_knife (0 to 1) - is bots toggle of knifing
  86. svr_bots_antifly (0 to 1) - is bots toggle antiflying
  87. svr_bots_outofmyway (0 to 1) - is bots toggle of moving out of the way if player is near
  88. svr_bots_classmem (0 to 1) - is bots toggle of remembering their class loadout
  89. svr_bots_changeclass (0 to 1) - is if svr_bots_classmem is 1 then bots have random chance of changing class
  90. svr_bots_watch (0 to 1) - is bots toggle of chance of watching killcams
  91. svr_bots_dev_walk (0 to 3) - is experimental fix for bots not sliding
  92. svr_bots_tdks (0 to 1) - is toggle of bots taking down kill streaks
  93.  
  94. Below cannot be edited by the menu:
  95. svr_bots_mod_switch (0 to 1) - mod support, ignores switching of weapons etc.
  96. svr_bots_mod_weap (0 to 1) - mod support, ignores setting of bot weapons
  97. svr_bots_mod_perk (0 to 1) - mod support, ignores setting of bot perks
  98. svr_bots_target (isSubStr a player name) - is bots target to kill, could be a cheater or for fun, set it to "" for off
  99. svr_bots_host (isSubStr a player name) - is player's name to open the menu, unneeded if not server based
  100. svr_bots_menu (0 to 1) - is if menu is enabled, 0 is no, 1 is yes
  101. [/code]
  102.  
  103. [size=150][b]Possible bugs:[/b][/size]
  104. [code]Q: My game runs slower!
  105. A: The bots require some extra thinking for the computer.
  106.  
  107. Q: Bots sometimes fly, go through walls and go to places where they are not to be!
  108. A: Its how the waypoint walking system works.
  109.  
  110. Q: They have a Javelin randomly!
  111. A: Its an attempt of getting the bots to stop flying.
  112.  
  113. Q :Bots only use one weapon when akimbo'd.
  114. A: Not fixable yet.
  115.  
  116. Q: Bots never ADS.
  117. A: Not fixable yet.
  118.  
  119. If any bugs found not here, post it!
  120. [/code]
  121.  
  122. [b][size=150]Possible future things:[/size][/b]
  123. [code]- Try improving bot walk animation (I'll need some help STILL)[/code]
  124.  
  125. [b][size=150]Changelog:[/size][/b]
  126. [code]Changes from Bot Warfare v0.4d_03 (07/06/2013):
  127. Menu is now dynamic. It now shows the dvar values.
  128. Menu is smoother.
  129. Added that menu can now edit svr_bots_target.
  130. Added that menu can now dump the bot dvars to games_mp.log.
  131. Fixed up some killstreak spam.
  132. Improved bots accuracy.
  133. Improved performance and bot team determination.
  134. Added toggle of bots ammo and snipers.
  135.  
  136. Changes from Bot Warfare v0.4d_02 (07/06/2013):
  137. Bots can now attack C4s and claymores, use svr_bots_destroyEq.
  138. Bots now react to being shot at.
  139. Minor improvements.
  140.  
  141. Changes from Bot Warfare v0.4d_01 (07/04/2013):
  142. Improved how bots attack sentries.
  143. Bots now go to the care package that is the best.
  144.  
  145. Changes from Bot Warfare v0.4d (07/03/2013):
  146. Added 3 more dvars. svr_bots_doobj svr_bots_dostuck and svr_bots_takecare.
  147. Bots can take care packages.
  148. Bots can now take out sentry guns.
  149.  
  150. Changes from Bot Warfare v0.4c_01 (06/30/2013):
  151. Redid Derail waypoints and Carnival.
  152. Fixed bots who are vengeful and not moving after finding their target.
  153. Improved menu.
  154. Improved stuck.
  155. Bots who are not on hardest with a sniper are more accurate.
  156. Split svr_bots_fill_mode for teams into svr_bots_team_mode.
  157. Improved antifly and is togglable with svr_bots_antifly.
  158.  
  159. Changes from Bot Warfare v0.4c (06/29/2013):
  160. Added a dvar to toggle bots aiming.
  161. Updated svr_bots_attack.
  162. Fixed bots getting stuck.
  163. Redid menu. Thanks Salvation for the sexy base!
  164. Redid Highrise waypoints.
  165.  
  166. Changes from Bot Warfare v0.4b_01 (06/25/2013):
  167. Updated waypoints on terminal and fuel. These maps will use less CPU.
  168. Bots using one man army can no longer have two weapons.
  169. Improved performance.
  170. Updated how bots are resetted.
  171.  
  172. Changes from Bot Warfare v0.4b (06/24/2013):
  173. The mod doesn't use _damage.gsc, sd.gsc or _helicopter.gsc anymore!
  174. Added search and destroy multibomb support.
  175. Fixed bots trying to use other killstreaks while in controlled streaks.
  176. Fixed menu opening in multiround gametypes.
  177.  
  178. Changes from Bot Warfare v0.4a_03 (06/23/2013):
  179. Improved bot aiming.
  180. Changed how bots use care packages streaks. (fixing the spam again)
  181. Improved bots getting stuck.
  182. Bots can grenade better now.
  183. Bots use Javelins to stop them from flying. Making bots will stop reloading randomly now.
  184.  
  185. Changes from Bot Warfare v0.4a_02 (06/22/2013):
  186. Fixed the announcer spamming "care packages".
  187. Improved performance.
  188. Improved bots getting stuck.
  189. Improved bots with care packages and stinger usage.
  190. Nerfed bots using OMA.
  191. Updated bot class loadout.
  192.  
  193. Changes from Bot Warfare v0.4a_01 (06/18/2013):
  194. Readded dev_walk.
  195. Bots using stingers now deploy the killstreak's flares if any.
  196.  
  197. Changes from Bot Warfare v0.4a (06/15/2013):
  198. Removed dev walk.
  199. Added using animations to move bots their legs. (indev)
  200. Added a custom map waypoints.
  201.  
  202. Changes from Bot Warfare v0.3_05 (06/09/2013):
  203. Added cod4 map waypoints from PezBots.
  204. Bots now go to players and bots if they have uav, no counter uav and no coldblooded.
  205. Bots no longer have infinite ammo in dev walk mode.
  206. Readded an old version of dev walk.
  207.  
  208. Changes from Bot Warfare v0.3_04 (05/25/2013):
  209. General performance improved.
  210. Changed how the menu is opened.
  211.  
  212. Changes from Bot Warfare v0.3_03 (05/25/2013):
  213. Changed that bots will kill them self with stingers less often.
  214. Bots can use blast shield.
  215.  
  216. Changes from Bot Warfare v0.3_02 (05/25/2013):
  217. Fixes to bots using Shotgun Attachments, didn't know it was AR_shotgun_attach_mp and not shotgun_AR_mp.
  218. Updated how bots take down aircraft with stingers. They will stop moving when looking at the aircraft and they will not look up in buildings anymore.
  219. Update bot talk. (thanks apdonato!)
  220.  
  221. Changes from Bot Warfare v0.3_01 (05/24/2013):
  222. Bots can use weapon attachments (tubes and shotgun).
  223. Updated how bots grenade.
  224. Bots can use stingers.
  225. Bots take down AC130s and UAVs.
  226.  
  227. Changes from Bot Warfare v0.3 (05/22/2013):
  228. Thanks to apdonato's RSE direct development!
  229. Improved bots not sliding (in dev). (thanks apdonato)
  230. Bots can now take down air support. (thanks apdonato)
  231. New DVARs, svr_bots_tdks and svr_bots_dev_walk.
  232. Bots use sentry guns, care packages and emergency air drops. (thanks apdonato)
  233. Improved mod support.
  234. Improved so last stand stuff, shotguns stuff, and perk stuff, and other bot related things.
  235. Fixed invasion map lag.
  236.  
  237. Changes from Bot Warfare v0.2_01 (05/10/2013):
  238. Fixed up some killstreak problems. Such as harrier's interface will mess up the bots.
  239. Bots in AC130s and chopper gunners will ignore players with Cold Blooded.
  240. Fixed a SMALL bot talk typo.
  241. Bots difficulty now change their degrees they can detect an enemy.
  242. Improved CPU usage.
  243.  
  244. Changes from Bot Warfare v0.2 (05/05/2013):
  245. Added a new killstreak system for the bots, they now select 3 streaks and use them.
  246. Can now disable riotshields and bot tubers.
  247. Updated AC130, pred, class loadouts.
  248. Various small fixes.
  249.  
  250. Changes from Bot Warfare v0.1x_01 (04/27/2013):
  251. More updates and fixes to bot talking.
  252. Fixes to Veh_Unlink - Player not in vehicle.
  253.  
  254. Changes from Bot Warfare v0.1x (04/23/2013):
  255. Fixed bots thinking they have every perk.
  256. Easy bots are now even easier and stupid. They will not chase the player down or notice the player shooting.
  257. Added custom amount of bots on a certain team.
  258. Added bots have a chance to change their class.
  259. Improved some CPU usage.
  260. Added forcing bots autoassign.
  261. Updated some bots talking.
  262.  
  263. Changes from Bot Warfare v0.1f_01 (03/24/2013):
  264. Fixed deathstreaks up.
  265. Fixed bots using primaries in laststand, they thought they had final stand when they really didn't.
  266. Added peacekeeper to bot loadouts.
  267. Added akimbo to bot loadouts.
  268. Updated how the anti stuck works.
  269. Bots will have a chance to prone while using chopper or ac130.
  270. Added that if the waypoints.type is "prone", the bots will go prone.
  271.  
  272. Changes from Bot Warfare v0.1f (03/22/2013):
  273. Added bots using akimbo!(they will only use one gun though ): )
  274. Changed how bots will choose the riot shield.
  275. Fixed shooting the right gun when akimbo'd will have the bot ignore the gun fire.
  276. Fixed some text spam.
  277. Added some support to changing the bots speed with h4xx0rz lobbies.
  278. Added new custom mode, Akimbo Battles.
  279.  
  280. Changes from Bot Warfare v0.1e (02/17/2013):
  281. Added svr_bots_talk_rate, it is how often the bots talk.
  282. Added some more mod support.
  283. Added some support with testclients_domove as 1. //an attempt to have the bots not "sliding" on the floor
  284. Updated deathstreaks and waypoints.
  285.  
  286. Changes from Bot Warfare v0.1d (02/09/2013):
  287. Externalized Nuketown waypoints, no longer will conflict with Nuketown mods such as sprinklers or end game nuke thing. (add them yourselves)
  288. Tweaked bots in their killstreak spam.
  289. Tweaked bots in their difficulty.
  290. Fixes for bomb objectives.
  291.  
  292. Changes from Bot Warfare v0.1c (02/07/2013):
  293. Added Nuketown waypoints. Thanks yolarrydabomb!
  294.  
  295. Changes from Bot Warfare v0.1b (02/05/2013):
  296. Added svr_bots_team_force, forces the bot on the team.
  297. Added svr_bots_fill_mode, toggles if svr_bots_fill affects players or bots.
  298. Fixed harder bots having a choppy autoaim.
  299. Small fixes involving modding, difficulty and resetting bots.
  300.  
  301. Changes from RSEv10 to Bot Warfare v0.1a (02/02/2013):
  302. This mod can be server hosted and will no longer have a memory leak like before, it was caused when bots were kicked for players to play and threads didn't endon disconnect.
  303. Modding support in a mod! Only edits minimal stock .gsc files and doesn't edit _rank.gsc!
  304. Bots no longer have infinite ammo and will reload, switch to secondaries, more grenadier options, and many other tweaks.
  305. Bot killstreaks improved. They use chopper gunner again, but not as OP as in RSEv7.
  306. Bots use all perks and the perks actually do something to the bots! Lightweight and marathon make them go faster, etc.
  307. Bots use deathstreaks... ):
  308. Can use DVARs to toggle many options!
  309. Bots play demolition! As well with the bots playing the objective more.
  310. Many bot difficulty improvements, easy bots are easy and hard bots are not fun. Can set every bot to have a random difficulty, or customize their difficulty level.
  311. A new menu, very lazy made, but you can edit nearly everything bot based. (i don't like menus personally)
  312. So many new things that I forgot. Been about a year of working on this mod by learning and working on it for fun.
  313. [/code]
  314.  
  315. [size=150][b]Credits:[/b][/size]
  316. [code]tinkie101 - for creating the base retarded smart enemies mod
  317.  
  318. Salvation - for the menu base used in the mod
  319.  
  320. yolarrydabomb - for fixing the "Hunk_UserAlloc: out of memory for 'Scr_BeginLoadScripts'" error and adding some of the custom map waypoints
  321.  
  322. apdonato - for his further RSE development
  323.  
  324. FourDeltaOne Team or former AlterIWNet Team - for making IW4 better
  325. [/code]
  326.  
  327. Original Retarded Smart Enemies forum post: [url]http://fourdeltaone.net/forum/viewtopic.php?f=17&t=2716[/url]
  328. Ability's Waypoint mod: [url]https://dl.dropbox.com/u/24492437/IW4/waypoints.iwd[/url]
  329. apdonato's RSE mod: [url]http://fourdeltaone.net/forum/viewtopic.php?f=17&t=35142[/url]
  330.  
  331. Feel free to; post this mod on other sites, host it on servers, mod it and merge mods with it. Just give credit where is due!
  332.  
  333. If you have any suggestions, bug reports or offer any help, please post it!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement