Files

> > CS2D > Lua Scripts > Demo-Record [1st build]
Files overviewCS2D overviewLua Scripts overview

English Demo-Record [1st build] >

5 comments10 kb, 20 Downloads

old Demo-Record [1st build]

Mora
User Off Offline

Welcome here us

This script is 1st build of my Demo-Record in cs2d. Yeah is too late and still has some unfinished things.
This script is planned to work with classic gameplay only, but since nothing is played this script is uploaded, has some additional beyond classic weapons to record(portal gun) and others. I dont want to copy much of game visual like tesla coil, flamethrower and such.

INSTALL: All You need is to place gfx/sys folders into ur cs2d main folder.
It has gfx/Mora/record/icons file
It has sys/lua/demoRecord.lua file
It has sys/lua/recordings/ path with all saved recordings
-Since it uses all only CS2D's resources is light-weight

Currently has:
∗ say
∗ silencer added
∗ silencer removed
∗ burst sound
∗ buy
∗ select
∗ portal
∗ hit (sound/blood effect)
∗ scope sound
∗ collect
∗ drop
∗ reloading animations
∗ attack
∗ spawn
∗ die
∗ saving record file

Is required to add:
More >


Probably You have seen this in the Discord server. I double it here to see what You can actually do:

Idle state:
F2 - Start Record. F4 - Play last saved file (only once after u already recorded one!)
Recording state:
F2 - Stop Record
Play state:
F3 - Pause current demo
Pause state:
F3 - Continue current demo.

Here some videos about:
https://youtu.be/7yY2-FMPnxQ

Some discord testing videos:
https://youtu.be/IFEABIQ7AsQ?si=sMUpdm2AYop3HdHt

Older tests:
https://youtu.be/y6WG7eIdq84?si=8pmUqfJm0Cp27pot

/idk if is enough to be Approved, uploading it because I have seen none even approximate to this creation. Im sure if somebody really interested in making Demo-Record or making some specific mechanics may finish it or re-write. Feel free for use as You wish and reupload better versions of.
Approved by BcY

Download Download

10 kb, 20 Downloads

Comments

5 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

Mora
User Off Offline

Is possible to record anytime and for everyone for now - Is only required at least 1 alive player exists. As You may see theres a "more" tag todo list which ig never done by me.

About bot: yeah I remember somebody suggested a bot but I'm currently not about to rewrite this everything for the bot. The script is made with a mind to copy cs2d draw mechanics to learn. Bot will be great to use them and is saving much more performance.

old

slimK
User Off Offline

And is possible to record everything in specmod or for now is just a demo recording for the player who is using?
Thats a nice alternative to have a bot just like hltv for cs official games.
I like it!

old

Mora
User Off Offline

@user slimK: This doesn't lag at all. It may lag once when you stopped recording because it creates a big file at once: minute is around 50k lines and 1500kb. Is required to make better saving system and less writing (5-th screenshot saving has a lot of player info per frame)

Probably it may lag if You recorded and played very much without server restart. There may be problem with images idk how good they removed from cs2d, especially on restart round and etc.

@user StirlizZ-Fapicon: well he actually may do that easy but I guess is much easier to do a standalone script rather than implementing it in the whole game project.

I wish bots being more controllable to use them instead of images. But forget about

old

slimK
User Off Offline

Wow, thats a banger feature for CS2D.
Btw I didn't have time to tested yet, this create any input lag or something like that?
I like it!

old

StirlizZ-Fapicon
Super User Off Offline

Wow, you did what SQ failed to implement
I like it!
To the start Previous 1 Next To the start