Raised This Month: $202 Target: $400
 50% 

[CS:S/CS:GO] Bot Mimic - Record your movements (Version 2.1 updated 02.10.2014)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Plugin ID:
2483
Plugin Version:
2.1
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    4 
    Plugin Description:
    Record your movements and have bots playing it back
    Old 08-07-2011 , 19:12   [CS:S/CS:GO] Bot Mimic - Record your movements (Version 2.1 updated 02.10.2014)
    Reply With Quote #1

    Bot Mimic 2

    Inspired by sega74rus' Skill AWP script, this plugin will let you record your movements and have bots replay it.

    This plugin is on github: https://github.com/peace-maker/botmimic

    This is primarily for clans to show their tactics or setting up bots to do movements, they'd never do themselves.
    Imagine you're recording yourself jumping past the double doors at dust2 several times and spawn some CT bots doing the same. You're able to improve your awp skills as T now, trying to hit those fast jumpers through the double doors. sega74rus created a video (using his plugin).

    It's pretty awesome to see a bot bunnyhopping.. (or this)

    Details
    The recordings are saved per map in sourcemod/data/botmimic/%CATEGORY%/map_name/%SUBDIR%/%TIMESTAMP%.rec
    The subdirectory can be omitted, the default category is "default". The menu plugin doesn't use any subdirectories, they are to be used by other plugins recording players using the provided natives to organize their data.

    Usage
    All you have to do is type /mimic in chat to open the menu and start to record. All* movements you're performing from now on are stored. When you're done, use the menu or type /stoprecord to stop recording. You can also pause and resume recording if you need a short break.
    Now you're able to select an existing bot or add a new bot to mimic your recorded movements.

    To organize your records, you can create categories and record replays into them. If you don't choose a category from the menu, they'll be stored in the "default" category.

    You can save bookmarks while recording (sm_savebookmark) and jump to them while a player is playing back the record easily through the menu.

    * silencers, weapon firemodes and reloadings aren't saved yet. Also health, armor and ammo aren't, since it's primarily for movement capturing! Bots are given a new weapon with default ammo when switching to it the first time during record.

    The botmimic core plugin doesn't do anything by itself, but provides the interface for other plugins to manage replays and handles the recording logic.
    The botmimic_menu plugin provides the admin menu integration and admin commands described above.
    The botmimic_training plugin is an example to add visual output when hitting replaying bots.

    Optional DHooks dependency
    Bot Mimic uses DHooks to hook Teleport on clients. This allows for recording any teleportation triggered by the map or any other way, which is useful for e.g. bhop maps, where you're teleported somewhere, when you hit the ground.
    To avoid strange behaviour I really recommend to install DHooks, it's not required though.

    Commands
    As already mentioned there are 2 admin commands in the botmimic_menu plugin (config flag):
    • sm_mimic - Opens the bot mimic menu
    • sm_stoprecord - Stops your current record
    • sm_savebookmark - Saves a bookmark with the given name in the record the target records. Usage: sm_savebookmark <name|steamid|#userid> <bookmark name>
    ConVars
    • sm_botmimic_version - ...
    • sm_botmimic_snapshotinterval - Save the position of clients every x ticks. This is to avoid bots getting stuck in walls during a long playback and lots of jumps. (Default: 10000)
    • sm_botmimic_respawnondeath - Respawn the bot when he dies during playback? (Default: 1)
    • botmimic_training plugin:
      • sm_botmimic_showdamage - Show damage and hitgroup when hitting a mimicing bot? (Default: 1)
      • sm_botmimic_playhitsound - Play a sound when hitting a mimicing bot? (Default: 1)
    API
    Spoiler


    Requirements
    • To run the plugin:
      • SDK Hooks (old thread, included in SourceMod 1.5+)
      • Optionally (recommened): DHooks
    • To compile the plugin (for developers):

    Installation
    Just drag&drop the botmimic.smx and botmimic_menu.smx into the plugins folder of your sourcemod install. If you want to use the training features, copy the botmimic_training.smx too.

    Known issues
    Bots get out of sync with the original movement when the recording player did a lot of duck-jumps. The bot will jump a little bit lower which might cause him to get stuck on edges and just randomly replay movement in the wrong place of the map. Try setting sm_botmimic_snapshotinterval to something lower like 1000 or 500. This won't fix broken already recorded replays, but help recover in future recordings.
    You can use this script to debug the record files.

    Changelog
    Spoiler



    Credits

    The plugin was entirely rewritten in version 2.0. Demos recorded with Bot Mimic 1 aren't compatible with the new version! The plugin is using a binary file format now instead of an ascii based one. This reduces file size drastically!
    There is currently no way to convert old records to the new format.
    Attached Files
    File Type: zip botmimic2_1.zip (78.5 KB, 1254 views)
    __________________

    Last edited by Peace-Maker; 07-09-2015 at 11:44. Reason: Updated to 2.1
    Peace-Maker is offline
    Seta00
    The Seta00 user has crashed.
    Join Date: Jan 2010
    Location: Brazil
    Old 08-07-2011 , 19:16   Re: [CS:S] Bot Mimic - Record your movements (Version 1.0)
    Reply With Quote #2

    Impressive! Glad to see you made it
    Seta00 is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 08-08-2011 , 02:15   Re: [CS:S] Bot Mimic - Record your movements (Version 1.0)
    Reply With Quote #3

    pretty impressive
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    Despirator
    Senior Member
    Join Date: Jun 2011
    Location: Kazakhstan ->Shymkent
    Old 08-08-2011 , 06:15   Re: [CS:S] Bot Mimic - Record your movements (Version 1.0)
    Reply With Quote #4

    I like it, it's funny
    Despirator is offline
    Fearts
    ferts of daeth
    Join Date: Oct 2008
    Old 08-08-2011 , 16:34   Re: [CS:S] Bot Mimic - Record your movements (Version 1.0)
    Reply With Quote #5

    Epic
    __________________
    Fearts is offline
    Peace-Maker
    SourceMod Plugin Approver
    Join Date: Aug 2008
    Location: Germany
    Old 08-08-2011 , 17:08   Re: [CS:S] Bot Mimic - Record your movements (Version 1.0)
    Reply With Quote #6

    I'm looking forward to a bunnyhop server with a tutorial bot, showing how to do it
    __________________
    Peace-Maker is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 08-08-2011 , 17:18   Re: [CS:S] Bot Mimic - Record your movements (Version 1.0)
    Reply With Quote #7

    Bunny hopping is easy (apparently) All you do is bounce around the game like a twat and talk shit & make stupid noises like a prat until everyone votebans you.
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    KyleS
    SourceMod Plugin Approver
    Join Date: Jul 2009
    Location: Segmentation Fault.
    Old 08-10-2011 , 06:42   Re: [CS:S] Bot Mimic - Record your movements (Version 1.0)
    Reply With Quote #8

    Just tested it with a couple others. Very cool! Could you add command load support? ie sm_startmimic <bot team> <recording name>
    KyleS is offline
    Fearts
    ferts of daeth
    Join Date: Oct 2008
    Old 08-11-2011 , 19:47   Re: [CS:S] Bot Mimic - Record your movements (Version 1.0)
    Reply With Quote #9

    Would be cool if we could rename the records. Also, if you added a option where if X players are on the server it spawns bot doing X trick (multi bot doing different tricks could be added). That way players could practice killing pre-motion bots while they wait for more players.
    __________________

    Last edited by Fearts; 08-11-2011 at 19:49.
    Fearts is offline
    FaTony
    BANNED
    Join Date: Aug 2008
    Old 08-21-2011 , 18:12   Re: [CS:S] Bot Mimic - Record your movements (Version 1.0)
    Reply With Quote #10

    I had the same idea about 2 years ago, also wanted to record entities and other stuff for machinimas, then throw some nonlinear editing gui, link it to server and we got a basic clone of Source Filmmaker done.
    FaTony is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 15:46.


    Powered by vBulletin®
    Copyright ©2000 - 2017, vBulletin Solutions, Inc.
    Theme made by Freecode