[go: up one dir, main page]

Skip to content

Commit

Permalink
Merge pull request #8 from tslashd/personal-best
Browse files Browse the repository at this point in the history
[RM] Save/load times
  • Loading branch information
Liam authored Jan 24, 2024
2 parents 6ee1d3d + 69ee108 commit 01ce3f9
Show file tree
Hide file tree
Showing 28 changed files with 1,954 additions and 129 deletions.
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

0 comments on commit 01ce3f9

Please sign in to comment.