KZMod Demo Player [beta]
Description: This plugin parse *.dem file and then create bot on server who repeats movements of the original demo.
When demo parsed and loaded, bot will automatic detect start timer position (the moment when you press the button or activate trigger(like on kz_xmas2009)), then he will repeat demo when you activate timer, or execute command "sm_playdemo".
Credits:
shavit - Bot part based on his cs:go plugin.
DemBoyz DEM Format manifest
Client Commands:
sm_loaddemo - Parsing (if not parsed already) demo info to *.nav file then loading it to the bot.
command prompt: sm_loaddemo "myawesomedemo" - without .dem or .nav extension
sm_playdemo - Bot will start repeating demo.
tpb,
say !tpb,
say /tpb - Teleport bot to nearest location to player. Thanks to — for this request.
TODO:
- Make menu to load demos
- Autoload demos from XJ
Installation
Simply unpack archive to: "KreedzClimbing/addons/sourcemod" or compile it yourself.
Known bugs:
Sometimes bot lag so hard in this case just minimize and maximize KZMod.
[blockquote]
Changelog:
11.10.2015 - 1.1 - Added tpb command to teleport bot to nearest location of player.
10.10.2015 - 1.0 - Initial release.
[/blockquote]
Download
Cool! :D
if this is what I think it is ( A ghost bot doing the WR of the map, While attempting ), this might be one of the best news I ever heard!
@morph if uts actually this. its biiiiiiiig improvement of demo player
I saw you today with a bot on a server alone, so that was the reason :D
That sounds great!!!! I'm gonna give it a try!
That's so awesome but also it's sad all the great things, plugins, ideas and kzmod generally came out so late when kreedz as entire died out and even I didn't catch it all entirely :(
but butter late than never i guess and well done for having found a way for simultaneous start bot/button press.
can you add a command/option so that you can teleport the bot closest to your location? something like /tpb -> bot teleports and then he continues his run from there.
example img: 
btw is it safe to use while recording wrs?
Originally posted by cahz0rcan you add a command/option so that you can teleport the bot closest to your location? something like /tpb -> bot teleports and then he continues his run from there.
example img:
btw is it safe to use while recording wrs?
Plugin updated for you request, about safe this or not while recording i think better ask admins, but my opinion is - its Safe because bot uses +USE and activate triggers only when checking for start position then he enter NOCLIP mode which don't affect any map objects like triggers or buttons, also i block +ATTACK/+ATTACK2 and +USE commands when start position finding is complete.
great and really interesting one..
would be cool to have it automatically load the current wr demo at the start of the map and let the bot do the wr run all the time. Also (i dont know if you already can), watching the bot as a spec would be cool too.
Another thing: How does the bot react to different courses on the same map? Is it possible to let bots doing the wr on all courses? :)
Originally posted by Z0ck3rOO7great and really interesting one..
would be cool to have it automatically load the current wr demo at the start of the map and let the bot do the wr run all the time. Also (i dont know if you already can), watching the bot as a spec would be cool too.
Another thing: How does the bot react to different courses on the same map? Is it possible to let bots doing the wr on all courses? :)
Yes you already can watch bot in spec, bot plays course that you loaded.
Auto load demo is a good thing to do but i dont have idea at this time how to unpack .rar archives :)
Originally posted by krasteri dont have idea at this time how to unpack .rar archives :)
Plugins can interact with .exe files?
If so, is easy to uncompress them with some command-line tools like UnRAR.exe (from WinRAR) using for example:
unrar.exe x "%rarPath%\demo.rar" "%outputPath%"
great job kraster, your work is highly appreciated!
about tpb command, i get an error in console and the bot does not teleport to nearest location of player.
error msg:
[blockquote]L 10/12/2015 - 17:34:58: [SM] Native "GetClientAbsOrigin" reported: Client index 0 is invalid
L 10/12/2015 - 17:34:58: [SM] Displaying call stack trace for plugin "kzmod_demoplayer.smx":
L 10/12/2015 - 17:34:58: [SM] [0] Line 81, C:\Users\garey\Desktop\kzmod_demoplayer\scripting\kzmod_demoplayer.sp::TeleportBot()
[/blockquote]
Originally posted by cahz0rabout tpb command, i get an error in console and the bot does not teleport to nearest location of player.
error msg:
[blockquote]L 10/12/2015 - 17:34:58: [SM] Native "GetClientAbsOrigin" reported: Client index 0 is invalid
L 10/12/2015 - 17:34:58: [SM] Displaying call stack trace for plugin "kzmod_demoplayer.smx":
L 10/12/2015 - 17:34:58: [SM] [0] Line 81, C:\Users\garey\Desktop\kzmod_demoplayer\scripting\kzmod_demoplayer.sp::TeleportBot()
[/blockquote]
This because LAN server, i will fix it but its works if u type in chat !tpb or in console "cmd tpb"
Originally posted by krasterThis because LAN server, i will fix it but its works if u type in chat !tpb or in console "cmd tpb"
It works! You are the man! Million thanks :D
Please log in to post replies.