Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prac mode rework #43

Merged

Conversation

Kyli3Boi
Copy link
Collaborator

No description provided.

Initial work:

1. Allows recreating savelocs

Working: on stage maps, have not worked with linear maps

TODO: There is a bug when recreating saveloc after you have cleared savelocs which i have not figured out as yet
1. Fix times issues when using pause/spectate.
2. Remove some code (commented out for now) and use easier method to do this (thanks Just-Sad for pointing this out)
1. Fix bug where creating saveloc in prac returns wrong srcp time (commands.sp)
2. move float to better location (misc.sp)
3. Rework this a little for better operation as well as fix bug where no wrcp time in stage 1 after restarting map whilst you were in prac (surfzones.sp)
Just move this to here so srcptimer doesnt start if timer disabled
1. Fix issue where you couldnt start timer if restarting bonus whilst in prac
1. Add missing time to saveloc recreation
2. Fix buffersize issue for saveloc recreation
3. Add restrictions to saveloc recreation (no longer can you use command with invalid number of inputs)
1. Fix unix times in !loclist
2. Change !loclist (remove player name and add time)
3. TODO add speed into !loclist (this is very tricky, especially when it comes to players using different measures of speed, xy/xyz/z)
1. Fix issue where timer could not start after tele to stage then create saveloc then tele to saveloc then sm_rs and try start time
2. Fix issue where "StageNotRecorded" would be displayed after doing above on stage 2
1. Added print to console to display when you created saveloc
2. Change save loc recreation to less precise values which saves space and should always allow it to be inserted via chat
3. Add missing variable to recreatePlayerCheckpoint
4. Remove duplicate variable in recreatePlayerCheckpoint
5. Rename translations
Still to be tested with players but seems to work fine with bots.

1. Allow saveloc to be created from spectate.
2. Stop stage time print to chat happening in bonus when going into end zone (surfzones.sp)
3. Rename translation
1. Force GetcurrentRunTime here to fix the bug with creating a saveloc right infront of CP (showing time as 0)
addons/sourcemod/scripting/surftimer/commands.sp Outdated Show resolved Hide resolved
addons/sourcemod/scripting/surftimer/convars.sp Outdated Show resolved Hide resolved
addons/sourcemod/scripting/SurfTimer.sp Outdated Show resolved Hide resolved
addons/sourcemod/scripting/surftimer/sql.sp Outdated Show resolved Hide resolved
Copy link
Owner

@qawery-just-sad qawery-just-sad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@qawery-just-sad qawery-just-sad merged commit 6948a5d into qawery-just-sad:alternate-universe May 26, 2021
@Kyli3Boi Kyli3Boi deleted the Prac-Mode-Rework branch September 28, 2021 20:09
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.

2 participants