Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
7929056
update time formatting - support hours
tslashd Dec 18, 2023
cb1a50d
Revert "update time formatting - support hours"
tslashd Dec 18, 2023
ad56633
time formatting - support hours
tslashd Dec 18, 2023
20b84a5
pre speed for stages
tslashd Dec 18, 2023
1d89780
color country
tslashd Dec 18, 2023
4faf972
CP prints - mostly hardcoded - store cps for run
tslashd Dec 18, 2023
31b062c
3 types of time formatting
tslashd Dec 20, 2023
1f8946e
forgot leading 0s for compact type
tslashd Dec 20, 2023
f6a5989
Merge branch 'chat-and-hud-messages' into time-format
tslashd Dec 20, 2023
37a07ea
Revert "Merge branch 'chat-and-hud-messages' into time-format"
tslashd Dec 20, 2023
e68c66a
.
tslashd Dec 20, 2023
e8036ec
write and read PB runs
tslashd Dec 20, 2023
7f6a4fc
CPs and PBs;new db schema
tslashd Dec 22, 2023
e338ba4
use DisplayCheckpointMessages
tslashd Dec 22, 2023
08f0ced
no warnings
tslashd Dec 22, 2023
a97c339
show Prespeed for stages
tslashd Dec 22, 2023
b04fc58
Checkpoint is now a Dictionary
tslashd Dec 22, 2023
16a8fc9
CurrentRunCheckpoints is now a Dictionary
tslashd Dec 22, 2023
66567d5
--build tasks for vscode
tslashd Dec 22, 2023
09dea3f
move CP saving to SaveCurrentRunCheckpoints
tslashd Dec 22, 2023
a090ebf
new CurrentRun class
tslashd Dec 23, 2023
ef15fb6
print 1st completion message to all and beating PB as well
tslashd Dec 23, 2023
5e7edff
add SaveMapTime;utilize CurrentRun class a bit more
tslashd Dec 23, 2023
69fd48b
don't forget to clear dictionaries
tslashd Dec 23, 2023
d164a5a
delete some comments
tslashd Dec 23, 2023
9a50ac3
comments
tslashd Dec 23, 2023
06fbab9
get and show player rank
tslashd Dec 23, 2023
4453a44
get total completions and wr for map (not displaying yet)
tslashd Dec 23, 2023
8cd9008
reload stats on maptime save;comments
tslashd Dec 23, 2023
1980ad2
-.-
tslashd Dec 23, 2023
bcbec71
comments;move stuff around
tslashd Dec 23, 2023
98c82b6
fix time saving
tslashd Dec 23, 2023
d99413a
spec mode error fix
tslashd Dec 23, 2023
da28151
wrong regex used for CP number;add onendtouch cp zones
tslashd Dec 24, 2023
8b6b2e6
don't re-load data in SaveMapTime yet
tslashd Dec 24, 2023
dc3d293
total comps;total completions;reload map data;throw error
tslashd Dec 25, 2023
b5064cf
get map wr id;no `speed` for cp object;
tslashd Dec 25, 2023
62251f9
get/write/update stages and bonuses for map in DB
tslashd Dec 26, 2023
ea37f83
hook cp zones;wrong cp regex;messages
tslashd Dec 26, 2023
03447cb
onmapend
tslashd Dec 26, 2023
61edcf2
neater velocity calc
tslashd Jan 2, 2024
ec76b0a
disable speed check
tslashd Jan 2, 2024
0ee2e1c
unnest CheckpointObject
tslashd Jan 2, 2024
e246414
Some edits relevant to upstream draft PR (#3)
1zc Jan 4, 2024
3784678
parameterless PersonalBest;Checkpoint inherits PersonalBest
tslashd Jan 4, 2024
8bc3f66
move Checkpoint methods
tslashd Jan 4, 2024
d3c0b2e
More edits to the PR: https://github.com/CS2Surf/Timer/pull/8 (#4)
1zc Jan 9, 2024
020d535
load and compare with WR times;fix cp attempts
tslashd Jan 9, 2024
535672a
update readme
tslashd Jan 9, 2024
dee850c
some dynamic `style`
tslashd Jan 9, 2024
1a6f249
^
tslashd Jan 9, 2024
21161ce
readme
tslashd Jan 9, 2024
4fe1c9e
Replay bot (#7)
shacharrr Jan 16, 2024
4faa2b5
replay bot name
tslashd Jan 16, 2024
d978813
more readable queries;formatting
tslashd Jan 16, 2024
c6cacf2
Fixing every error I find in the replays + adding saveloc and stage/b…
shacharrr Jan 22, 2024
69ee108
ig we zooming slower
tslashd Jan 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
*.vs
*.vscode
*.vscode/*
!.vscode/tasks.json
*.idea
src/bin/Debug/*
src/bin/Release/*
src/obj/*
src/SurfTimer.csproj
27 changes: 27 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build-debug",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/src/SurfTimer.csproj",
"/property:Configuration=Debug"
],
"problemMatcher": "$msCompile"
},
{
"label": "build-release",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/src/SurfTimer.csproj",
"/property:Configuration=Release"
],
"problemMatcher": "$msCompile"
}
]
}
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Bold & Italics = being worked on.
- [ ] Zoning
- [X] Start/End trigger touch hooks
- [X] Load zone information automatically from standardised triggers: https://github.com/CS2Surf/Timer/wiki/CS2-Surf-Mapping
- [ ] _**Support for stages (`/rs`, teleporting with `/s`)**_
- [X] _**Support for stages (`/rs`, teleporting with `/s`)**_
- [ ] _**Support for bonuses (`/rs`, teleporting with `/b #`)**_
- [ ] _**Start/End touch hooks implemented for all zones**_
- [ ] Surf configs
Expand All @@ -28,20 +28,21 @@ Bold & Italics = being worked on.
- [X] Base timer class implementation
- [X] Base timer HUD implementation
- [X] Prespeed measurement and display
- [ ] Save/load times
- [ ] **_Save/load map personal bests_**
- [ ] **_Save/load map checkpoints_**
- [X] Save/load times
- [X] **_Save/load map personal bests_**
- [X] **_Save/load map checkpoints_**
- [ ] **_Save/load bonus personal bests_**
- [ ] **_Save/load stage personal bests_**
- [ ] Practice Mode implementation
- [ ] Announce records to Discord
- [ ] Stretch goal: sub-tick timing
- [ ] Player Data
- [X] Base player class
- [ ] Player stat classes
- [ ] **_Player stat classes_**
- [ ] Profile implementation (DB)
- [ ] Points/Skill Groups (DB)
- [ ] Player settings (DB)
- [ ] Run replays
- [X] Run replays
- [X] Saveloc/Tele
- [ ] Style implementation (SW, HSW, BW)
- [ ] Paint (?)
16 changes: 13 additions & 3 deletions cfg/SurfTimer/server_settings.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ sv_full_alltalk 1

// Movement Settings
sv_airaccelerate 150
// sv_airaccelerate 2000
sv_gravity 800
sv_friction 5.2
sv_maxspeed 350
Expand All @@ -26,6 +27,16 @@ sv_enablebunnyhopping 1
sv_autobunnyhopping 1
sv_staminajumpcost 0
sv_staminalandcost 0
sv_timebetweenducks 0

// Some replay bot shit (took so fucking long to debug)
// bot_quota 1 No need for this, because the server handles it
bot_quota_mode "normal"
bot_join_after_player 1
bot_join_team CT
bot_zombie 1
bot_stop 1
bot_freeze 1

// Player Settings
mp_spectators_max 64
Expand All @@ -36,8 +47,8 @@ mp_respawn_on_death_ct 1
mp_respawn_on_death_t 1
mp_ct_default_secondary weapon_usp_silencer
mp_t_default_secondary weapon_usp_silencer
mp_autoteambalance 0
mp_limitteams 0
mp_autoteambalance 0
mp_playercashawards 0
mp_teamcashawards 0
mp_death_drop_c4 1
Expand All @@ -63,8 +74,7 @@ mp_freezetime 0
mp_team_intro_time 0
mp_warmup_end
mp_warmuptime 0
bot_quota 0
sv_holiday_mode 0
sv_party_mode 0

sv_cheats 0
sv_cheats 0
5 changes: 4 additions & 1 deletion src/ST-Commands/MapCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ public void MapTier(CCSPlayerController? player, CommandInfo command)
if (player == null)
return;

player.PrintToChat($"{PluginPrefix} {CurrentMap.Name} - {ChatColors.Green}Tier {CurrentMap.Tier}{ChatColors.Default} - {ChatColors.Yellow}{CurrentMap.Stages} Stages{ChatColors.Default}");
if (CurrentMap.Stages > 1)
player.PrintToChat($"{PluginPrefix} {CurrentMap.Name} - {ChatColors.Green}Tier {CurrentMap.Tier}{ChatColors.Default} - Staged {ChatColors.Yellow}{CurrentMap.Stages} Stages{ChatColors.Default}");
else
player.PrintToChat($"{PluginPrefix} {CurrentMap.Name} - {ChatColors.Green}Tier {CurrentMap.Tier}{ChatColors.Default} - Linear {ChatColors.Yellow}{CurrentMap.Checkpoints} Checkpoints{ChatColors.Default}");
return;
}

Expand Down
Loading