Skip to content

Conversation

@tslashd
Copy link
Member

@tslashd tslashd commented Dec 20, 2023

This PR adds 3 types of formatting in a TimeFormatStyle enum (most likely the same will go for messages types in a different enum).

  1. Compact = 0.000 and no leading 0s nor 00: (minutes, hours are shown only when needed)
  2. Full = 00:00:00.000 not hiding anything, everything is shown
  3. Verbose = 0h 0m 0s 0ms

More types can be easily added to the enum and FormatTime function.

Default type will always be Verbose unless specified differently when calling FormatTime (done like this in order not to break existing calls to it)

To-do: Store/Load player chosen style

@tslashd tslashd marked this pull request as draft December 20, 2023 15:17
@tslashd tslashd marked this pull request as ready for review December 20, 2023 15:47
@tslashd tslashd mentioned this pull request Dec 22, 2023
34 tasks
@tslashd tslashd closed this Dec 22, 2023
1zc pushed a commit that referenced this pull request Jan 24, 2024
* Test commit, fix stages

* Add files via upload

* Updated

* Delete src/bin/Debug/net7.0 directory

* .

* whoopsie?

* quick review

* Updated replay to work with bots

- Fixed bot spamming errors with the TriggerStartZone/TriggerEndZone
- Added reverse/pause replay (!rr/!rp)
Still need to fix more bots than wanted joining, and make DB queries async

* Working replays, not 100% done

* Fixed bot spawning rate, TODO:

* UPDATED: Default surf config to right configs
TODO: Add stage/bonuses/etc support when done, update bot_quota to change upon loading map time

* Bot changes name on replay loading

* Used FormatTime in necessry places.
Added cool HUD when spectating replays.
Added css_spec/css_replaybotpause/css_replaybotflip

* Fixed, error when no replay data

---------

Co-authored-by: Shachar <shachar262@gmail.com>
Co-authored-by: T <74899888+tslashd@users.noreply.github.com>


---------
Bots rely on this ws-cs2/CS2Fixes@2380ec6 
otherwise we get some wonky angles while the bot is surfing
@tslashd tslashd deleted the time-format branch December 28, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant