KZMod Demo Player [beta]

Started by kraster
11/10/2015 00:14
Page 1 of 1
kraster11/10/2015 00:14(edited 11/10/2015 16:49)

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

buh11/10/2015 00:37

Cool! :D

Wh1te BearD^^11/10/2015 05:44

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!

Stryker11/10/2015 06:34

@morph if uts actually this. its biiiiiiiig improvement of demo player

r4diaxo11/10/2015 07:29

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.

cahz0r Tournament #311/10/2015 14:54

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: Image

btw is it safe to use while recording wrs?

kraster11/10/2015 16:54(edited 11/10/2015 16:56)

Originally posted by cahz0r
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: Image

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.

Z0ck3rOO711/10/2015 17:47

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? :)

kraster11/10/2015 18:13

Originally posted by Z0ck3rOO7
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? :)

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 :)

buh11/10/2015 19:13

Originally posted by kraster
i 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%"

jusuuh11/10/2015 22:41

great job kraster, your work is highly appreciated!

cahz0r Tournament #312/10/2015 16:42

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]

kraster12/10/2015 21:29

Originally posted by cahz0r
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]

This because LAN server, i will fix it but its works if u type in chat !tpb or in console "cmd tpb"

cahz0r Tournament #313/10/2015 16:55

Originally posted by kraster
This 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

Page 1 of 1

Please log in to post replies.