Coder Social home page Coder Social logo

ineedbots / iw5_bot_warfare Goto Github PK

View Code? Open in Web Editor NEW
106.0 20.0 30.0 20.53 MB

The Bot Warfare mod for MW3

Home Page: https://www.moddb.com/mods/bot-warfare

GSC 99.99% Batchfile 0.01%
game bot games ai bots gaming mw3 cod multiplayer mod gameserver modification gsc callofduty iw5 plutoniumiw5 modernwarfare3 call-of-duty plutonium

iw5_bot_warfare's Introduction

GitHub Logo

IW5 Bot Warfare

Bot Warfare is a GSC mod for the PlutoniumIW5 project.

It aims to add playable AI to the multiplayer games of Modern Warfare 3.

You can find the ModDB release post here.

Contents

Features

  • A Waypoint Editor for creating and modifying bot's waypoints of traversing the map. Have a look at Using the Waypoint editor.

  • A clean and nice menu, you can edit every bot DVAR within in-game.

  • Everything can be customized, ideal for both personal use and dedicated servers. Have a look at Documentation to see whats possible!

  • This mod does not edit ANY stock .gsc files, meaning EVERY other mod is compatible with this mod. Mod doesn't add anything unnecessary, what you see is what you get.

  • Adds AI clients to multiplayer games to simulate playing real players. (essentially Combat Training for MW3)

    • Bots move around the maps with native engine input. (all normal maps, most to all custom maps)
    • Bots press all the buttons with native engine input (ads, sprint, jump, etc)
    • Bots play all gamemodes/objectives, they capture flags, plant, defuse bombs, etc. (all gamemodes modes)
    • Bots use all killstreaks. Including AC130 and osprey gunner, etc.
    • Bots target killstreaks, use stingers and other weapons to take out all killstreaks. (even sentry guns)
    • Bots can capture and steal care packages.
    • Bots target equipment, and can even camp TIs.
    • Bots can camp randomly or when about to use the laptop.
    • Bots can follow others on own will.
    • Bots have smooth and realistic aim.
    • Bots respond smartly to their surroundings, they will go to you if you shoot, uav, etc.
    • Bots use all deathstreaks, perks and weapons. (including javelin)
    • Bots difficulty level can be customized and are accurate. (hard is hard, easy is easy, etc.)
    • Bots each all have different classes, traits, and difficulty and remember it all.
    • Bots switch from between primaries and secondaries.
    • Bots can grenade, place claymores and TIs, they even use grenades and tubes in preset map locations.
    • Bots use grenade launchers and shotgun attachments.
    • Bots can melee people and sentry guns.
    • Bots can run!
    • Bots can climb ladders!
    • Bots jump shot and drop shot.
    • Bots detect smoke grenades, stun grenades, flashed and airstrike slows.
    • Bots will remember their class, killstreak, skill and traits, even on multiround based gametypes.
    • Bots can throwback grenades.
    • ... And pretty much everything you expect a Combat Training bot to have

Installation

  1. Make sure that PlutoniumIW5 is installed, updated and working properly.
  2. Extract all the files from the Bot Warfare release archive you downloaded to anywhere on your computer.
  3. Run the 'install.bat'. This copies the mod to your PlutoniumIW5 storage folder.
  4. The mod is now installed, now run your game.
  5. The mod should be loaded! Now go start a map and play!

Documentation

Menu Usage

  • You can open the menu by pressing the Action Slot 1 key (default 'N', nightvision key).

  • You can navigate the options by pressing your movement keys (default WASD), and you can select options by pressing your jump key (default SPACE).

  • Pressing the menu button again closes menus.

DVARs

Dvar Description Default Value
bots_main Enable this mod. 1
bots_main_firstIsHost The first player to connect will be given host. 0
bots_main_GUIDs A comma separated list of GUIDs of players who will be given host.
bots_main_waitForHostTime How many seconds to wait for the host player to connect before adding bots to the match. 10
bots_main_menu Enable the in-game menu for hosts. 1
bots_main_debug Enable the in-game waypoint editor at start of the game, or enable bot event prints.
  • 0 - disable
  • 1 - for just debug events
  • 2 - for every event
    0
    bots_main_kickBotsAtEnd Kick the bots at the end of a match. 0
    bots_main_chat The rate bots will chat at, set to 0 to disable. 1.0
    bots_manage_add Amount of bots to add to the game, once bots are added, resets back to 0. 0
    bots_manage_fill Amount of players/bots (look at bots_manage_fill_mode) to maintain in the match. 0
    bots_manage_fill_mode bots_manage_fill players/bots counting method.
    • 0 - counts both players and bots.
    • 1 - only counts bots.
    • 2 - exactly 0 but auto adjusts bots_manage_fill to map.
    • 3 - exactly 1 but auto adjusts bots_manage_fill to map.
    • 4 - bots are used for balancing teams.
    • 5 - exactly 4 but auto adjusts bots_manage_fill to map.
    0
    bots_manage_fill_watchplayers Bots will not be added until one player is in the game 0
    bots_manage_fill_kick If the amount of players/bots in the match exceeds bots_manage_fill, kick bots until no longer exceeds. 0
    bots_manage_fill_spec If when counting players for bots_manage_fill should include spectators. 1
    bots_team One of autoassign, allies, axis, spectator, or custom. What team the bots should be on. autoassign
    bots_team_amount When bots_team is set to custom. The amount of bots to be placed on the axis team. The remainder will be placed on the allies team. 0
    bots_team_force If the server should force bots' teams according to the bots_team value. When bots_team is autoassign, unbalanced teams will be balanced. This dvar is ignored when bots_team is custom. 0
    bots_team_mode When bots_team_force is 1 and bots_team is autoassign, players/bots counting method.
    • 0 - counts both players and bots.
    • 1 - only counts bots
    0
    bots_skill Bots' difficulty.
    • 0 - Random difficulty for each bot.
    • 1 - Easiest difficulty for all bots.
    • 2 to 6 - Between easy and hard difficulty for all bots.
    • 7 - The hardest difficulty for all bots.
    • 8 - custom (look at the bots_skill_<team>_<difficulty> dvars)
    • 9 - Every difficulty parameter is randomized
    0
    bots_skill_axis_hard When bots_skill is set to 8, the amount of hard difficulty bots to set on the axis team. 0
    bots_skill_axis_med When bots_skill is set to 8, the amount of medium difficulty bots to set on the axis team. The remaining bots on the team will be set to easy difficulty. 0
    bots_skill_allies_hard When bots_skill is set to 8, the amount of hard difficulty bots to set on the allies team. 0
    bots_skill_allies_med When bots_skill is set to 8, the amount of medium difficulty bots to set on the allies team. The remaining bots on the team will be set to easy difficulty. 0
    bots_skill_min The minimum difficulty level for the bots. 1
    bots_skill_max The maximum difficulty level for the bots. 7
    bots_loadout_reasonable If the bots should filter bad performing create-a-class selections. 0
    bots_loadout_allow_op If the bots should be able to use overpowered and annoying create-a-class selections. 1
    bots_loadout_rank What rank to set the bots.
    • -1 - Average of all players in the match.
    • 0 - All random.
    • 1 or higher - Sets the bots' rank to this.
    -1
    bots_loadout_prestige What prestige to set the bots.
    • -1 - Same as host player in the match.
    • -2 - All random.
    • 0 or higher - Sets the bots' prestige to this.
    -1
    bots_play_move If the bots can move. 1
    bots_play_knife If the bots can knife. 1
    bots_play_fire If the bots can fire. 1
    bots_play_nade If the bots can grenade. 1
    bots_play_take_carepackages If the bots can take carepackages. 1
    bots_play_obj If the bots can play the objective. 1
    bots_play_camp If the bots can camp. 1
    bots_play_jumpdrop If the bots can jump/drop shot. 1
    bots_play_target_other If the bots can target other entities other than players. 1
    bots_play_killstreak If the bots can call in killstreaks. 1
    bots_play_ads If the bots can aim down sights. 1
    bots_play_aim If the bots can aim. 1

    Changelog

    • v2.3.0

      • Fixed bots aiming in ac130/chopper being broken at times
      • Bots properly use pred missiles
      • Smoothed bot aim at range
      • Fixed bots_manage_fill_spec players being counted with bots_manage_fill_mode 1 (bot only)
      • Added bots_manage_fill_watchplayers dvar
      • Bots hop off turrets if they get stuck on one
      • Fixed script variable leak with opening and closing the in-game menu
    • v2.2.0

      • Bots can now melee lunge
      • Fixed some chat related script runtime errors
      • Fix bots possibly being stuck in sab
      • Major cleanup
    • v2.1.0

      • Initial release (sync'd versions with other Bot Warfares)

    Credits

    Waypoint Creators

    Feel free to use code, host on other sites, host on servers, mod it and merge mods with it, just give credit where credit is due! -INeedGames/INeedBot(s) @ [email protected]

    iw5_bot_warfare's People

    Contributors

    aesirix avatar doa3 avatar fragsareus avatar garythenotrashcougar avatar ghostwulf avatar ineedbots avatar leruty avatar resxt avatar super23 avatar

    Stargazers

     avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

    Watchers

     avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

    iw5_bot_warfare's Issues

    Numbers flying out of the sides of teammates and enemies when shooting them

    Whenever i shoot an enemy or teammate by accident, a bunch of numbers fly out of the sides of them, its really annoying. Last update did not have this problem. Is there any way to fix this? I prefer the original style where the number pops out after you kill them, not a bunch of numbers flying out of the sides every time they are shot.

    I don't know how to install it

    I don't understand English very well and I don't really understand the installation tutorial, can someone explain it to me more simply? I have the MW3 from plutonium. Thanks

    Can't load waypoints in waypoint editor

    Waypoint editor not loading saved waypoints, possibly due to incorrect file pathing in load_waypoints function?

    I wanted to try & fix some of the waypoints where bots are getting stuck on respawn.
    Seems the bots tend to go for the nearest waypoint when spawning, which sometimes is not accessible. Not sure if there is a way to highlight spawn locations within the editor in order to create appropriate waypoints or maybe you posses the skills to write a function that does such a thing?

    My waypoints for DLC maps fixed + Foundation and Erosion

    I have fixed major waypoint flaws on Piazza. Removed some waypoints in the spawn areas (let me know if that´s generally a good thing, imo yes). Foundation and Erosion can be played now. Bots can´t get up the ladder near the "Delta" spawn on Foundation though and I don´t know what´s wrong, so if someone can look into it, I would appreciate it. Also not many special waypoints on most maps
    waypoints.zip
    _bot_utility.zip

    Hard bots too hard and med bots too easy

    It's not a big problem after all but, I think it should be perfect to set hard bot as the same reflexes and game sense but decreasing the headshot aimbot a bit, is it possible to set hard bots to hit only bodyshoots??

    [Feature Request] Standard IW5 support

    I'm sure you were expecting this request. But will this work with "standard" versions of the game, like the steam or the Project Nova mod or does this mod depend on Plutonium for its calls?

    Bots acting strange.

    For some reason, the bots during a match on either side of a team (during any mode). Will run/walk into a wall and jump repeatedly non-stop. (And become easy targets for other players/bots). On a few different maps like terminal, decommission, and possibly other maps as well.

    Am I the only one noticing this?

    Screenshot (17)
    Screenshot (21)
    Screenshot (24)
    Screenshot (25)

    Option to Disable mod features

    For instance:
    When the player has the scavenger perk, the grenades are resupplied, I wish I could disable the option.
    When the player obtains a specialist, whatever weapon it is, it adds the accessory to hold the breath, also having the option to disable.

    bots are so op from long distances

    Bots are so OP from long distance, can you nerf them by a little? Because it's impossible to win a gunfight against bots from long distances, onetime a bot killed me with a headshot from the end of the map with mp-9 can you imagine MP-9!!! no way.

    Set bots difficulty level according to number of players

    If you could establish a variable to set the level of difficulty of the bots according to the number of players, for example:
    From 1 to 3 Players - Bot level in easy,
    From 4 to 7 Players - Bot level medium,
    8 to 9 Players - Hard bot level,

    Is there a way to save settings?

    Hi,

    Inputting commands in all the times i launch the game can be quite irritating. I was wondering if there was a simpler way to save stuff and make them auto-load when we boot it up.

    Bots getting stuck occasionally where they didn't before

    I believe this may have something to do with a recent plutonium update. I haven't played this in a while, but there wasn't any issues with bots getting stuck last time I played (not sure how long ago but probably 1-2 months ago). I didn't initially update the mod when I started playing again but when I did, it was still happening. Maps have waypoints & they don't lead through objects the bots are getting stuck on.

    possible bug?

    so i was playing team Defender and noticed that the gamemode functions in the same way as team deathmatch. holding the flag does nothing and only kills count towards the game score.

    just letting you know

    Crash when trying to add bots on server

    Hello, I managed to play with bots warfare in private match but I'd like to install it on my private dedicated server.

    Bots warfare is installed in my game files (%appdata local%).
    I have a running server where I can connect but I don't have any mod installed yet.
    How can I install the mod in the server ? because when I try to type bots_manage_add 10 it just crashes (so I guess there's something missing in the installation of the server because it works when I'm in private match).

    Thank you for your help

    Bots do not respect Infected Mode.

    Tried it in "Infected" Game mode and added the bots to the survivors. there everything is going well. The problem occurs when a bot is infected, it appears with a weapon, when in the game mode classes the infected do not have weapons, they only have a knife. The point is that they do not respect the predefined classes of the game mode.

    Implementing some random factors (Proning at Flag and Bomb Spots, shooting down killstreaks)

    If possible without the use of waypoints, bots could decide by some random chance to prone while capturing enemy flags (and eventually planting and defusing bombs). Or let them look or spin around

    Second thing is about the bots shooting down killstreaks too fast. I´m suggesting a random (or fixed for each difficulty level) value (like elapsed time or after the x time of dying to the killstreak)

    Out of Memory Error

    It seems in the load_waypoints function, having too many cases in the switch statement may be causing an out of memory error. I was creating waypoints for maps that don't have any yet & started getting this error on the loading screen on certain maps. Removing some of the cases seems to fix this or change which maps produce the error. Doesn't appear to be a syntax error so maybe a stack space or memory space issue with the application. Might need some refactoring.

    New script update exp bug

    hey there, downloaded your new script update. Theres an issue with scoring and exp (causing -50 score and not gaining exp). Possible fix or revert to previous version?

    Bot chatter is very rough at the moment

    The chat lines seem to be ripped directly from older IW4x Bot Warfare versions, so I'm seeing instances of bots using internal weapon/map names [E.G: mp_paris is messed up / I love my iw5_type95]
    If bots_main_chat is set high enough, bots will sometimes make the same contextual remarks more than once.
    E.G: "wh CrazyCSIW6", immediately followed up by "Wow, I'm reporting you", etc.

    Also, bots refer to MOABs as nukes still as the chat lines are straight from IW4x Bot Warfare

    Just a few ideas/questions

    In team defender would there be a way to make the bot holding the flag to run away from enemies? As someone who used to play it relentlessly it would be more accurate for the bot to run, or camp more with the flag.

    Also when you say “ Bots each all have different classes, traits, and difficulty and remember it all.” Is that based on a per match basis?

    And lastly is there anyway to tie a difficulty to specific bot name? For example, like normal cod a good player will typically be known in each match based on name, is there anyway I could make it to where specific bot names are tied to a difficulty?

    just suggestions and asking for some insight, sorry if this way too much, regardless your work has made mw3 bring back my entire teen years :) thank you.

    Can't change map

    When creating a new private match, i cant change the map to any other than seatown.

    Game Crash After Match

    I'm using the Steam version of MW3 with Plutonium. When a match ends with bots, it goes back to the main menu, then when I go back to Private Match, the game crashes

    My waypoints for DLC maps

    I´m not sure if they´re any good (I´m quite skeptical). Aside from the normal waypoints, just a few with different stances on Liberation, Overwatch and Black Box, Only Piazza and Sanctuary have some additional grenade, noobtube and claymore waypoints currently. They´re all flag and bomb modes proof
    waypoints.zip

    Here is the _bot_utility file
    _bot_utility.zip

    Not a problem, just a question: How to make bots dropshot more often?

    I'm aware of the bot_script folder, I just don't know wich variable affects dropshooting, is it one of these?

    		self.pers["bots"]["behavior"]["strafe"] = 50;
    		self.pers["bots"]["behavior"]["nade"] = 45;
    		self.pers["bots"]["behavior"]["sprint"] = 65;
    		self.pers["bots"]["behavior"]["camp"] = 5;
    		self.pers["bots"]["behavior"]["follow"] = 5;
    		self.pers["bots"]["behavior"]["crouch"] = 10;
    		self.pers["bots"]["behavior"]["switch"] = 2;
    		self.pers["bots"]["behavior"]["class"] = 2;
    		self.pers["bots"]["behavior"]["jump"] = 75;
    

    Easy setting up a unbalanced match (3 vs 6 for example)

    Sry to put it here but I don´t really understand how to make a match 3 vs 6 (me with 2 bots vs 6 bots in the other team). I know how to do it in TDM but not in the side switching modes like in Domination because there the bots join my team after half-time. Would like to get a fourth menu tab for presets. Or add simple "Add x bots to allies / axis", "Remove x bots of allies /axis" options, so adjusting the amount doesn´t take a while. Currently it´s quite complex to get something else than balanced teams.

    Weapon recoil doesn't affect bots

    When bots fire weapons, their recoil doesn't have any affect on the bots' aim. This gives them an unfair advantage over human players and makes their fighting ability very overpowered, allowing them to fire 100% accurate bursts from high-recoil weapons such as LMGs.

    Questions about the mod

    First of all i'd like to say thank you very much for doing this job, it's been a blast to play it, seriously thank you very much.

    I wanted to know if there is a way to disable the splash damage data in your hud (those numbers you get when you hit a bot)?

    And is it possible to put more than 9 bots in just one side? I was looking forward to make like a 7x11 (me included), but as soon the enem team gets 9 bots it gets stuck and can't complete the team.

    Issues with bomb interactions

    In my experience, these bots work really well outside of 1 issue, which is that they don't properly interact with the bomb in demolition. They do go after the bomb, but after interacting with it to plant or defuse for half a second, they just stop and take their gun back out. I'm not sure if its something on my end with installation or an issue with the bots.

    Heres a video of me watching the bots around the bomb - https://www.youtube.com/watch?v=xaFfog02hio

    Pathing Maps

    Before this gets looked at as a major issue, I want to state now that it is not. It's just me being confused about something. I have had trouble figuring out how to get the pathing gsc files to work after I have pathed out a map. I saved the pathing, located it, and even tried to transfer the pathing points in the document to my MW3/Raw/maps/mp/bots/waypoints as a new GSC file. However, I can not get the debugger to load the paths no matter what I try. Is there any way I could ask someone to demonstrate the full process of having paths saved, loaded, and working? I feel like I may be missing some small steps. Thanks!

    Not an Issue just a question: How to change loadouts for bots?

    Hi,

    To start, I just want to say that I really appreciate the effort you have all put into these bot mods. They are fantastic.

    I am playing around with the mods for my custom server, and I have not had much luck finding out how to set the loadouts for the bots. I am trying to create a snipers only bot lobby and am having some difficulty. Is there a way to filter the weapons that a bot chooses for a loadout? Or is there a way to force a bot to choose the default loadouts/ follow the restrictions of the custom game mode.

    Any help would be appreciated.

    Thankyou!

    Is there a way to load the game with the fs_game DVAR already set to "mods/bots"?

    Is there a way to load the game with the fs_game DVAR already set to "mods/bots" instead of launching the game first, hitting the ~ key and setting it manually to set fs_game mods/bots? I have tried to launch the iw5mp.exe by setting +seta fs_game "mods/bots" but it does not take effect after the game has been launched. I have also tried to set it in the player config file but the setting is removed every time the game is launched and overwritten with the default setting.

    Private Match issue.

    When pressing the "Game Summary" button after playing a Private Match, Plutonium crashes. This is a fixable problem?

    scavenger perk broken?

    when i equip the non pro version of scavenger i get the benifit of scavenger pro without having it unlocked. just wondering if this is a problem with bot warfare or with plutonim itself.

    DLC WAYPOINTS PROGRESS

    Thank you everyone for your hard work and dedication to bring muchly anticipated Bot support for MW3!
    My hope is to start a discussion regarding plans and progress posts for DLC Map Support for contributors.

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. 📊📈🎉

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google ❤️ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.