Commit Graph

156 Commits

Author SHA1 Message Date
Joe
7b2fb3be65 store avg/max velocity in persistent data & cpcache 2021-02-26 17:53:42 +00:00
GAMMACASE
f2e1ad9706
Delete frames from cpcache on entry deletion (#1001)
* Delete frames from cpcache on entry deletion

* Handle few more cases

* One more case
2021-01-08 06:24:59 -07:00
KiD Fearless
00029d4bc7 Merge branch 'master' into very_good_yes 2020-12-20 18:52:59 -07:00
KiD Fearless
88ede8d55c wrong team... 2020-12-20 18:52:37 -07:00
KiD Fearless
fcddaba475 Merge branch 'master' into very_good_yes 2020-12-20 18:33:29 -07:00
kidfearless
f7c878b8f1 Fix exploit allowing extra height on spawn 2020-12-20 18:29:17 -07:00
Nairda
1475e1b31f
csgo menu fix (#995)
* csgo menu fix

* Update shavit-misc.sp

* csgo menu fix

works according to GAMMACASE

* Update shavit-misc.sp

* editing shit via git website is cancer

* Update shavit-misc.sp
2020-12-06 20:16:33 -07:00
kidfearless
7c5298f721 fixup compile errors 2020-12-04 07:51:23 -07:00
kidfearless
3cd45238bc Removed shavit_getstylesettings from shavit-misc 2020-12-04 07:45:27 -07:00
Joe
a1e60b39fa
Multiple bonuses (#982)
* cleanup GetTrackName()

* a few more changes to change mod_zone_bonus & add Track_Bonus_Last

* fix undefined symbol sTrack

* fixup !bwr for multiple bonuses

* fix GetTrackName() after I broke it

* add bonus number param to help text of sm_bwr

* fix !wr after I broke it adding !bwr [bonus number]

* ignore checkpoint zones for now because nothing is ready for them

* update points for bonus #2 through #8 at same time

so instead of something like `9 (track count) * 22 (style count)` queries, it'll do `3 (main, bonus1, rest of bonuses) * 22 (style count)` queries and the rest of the bonuses on the recalc all in the same query
2020-11-30 09:40:45 -07:00
Joe
41c0486035
Allow !goto/!tpto from start/end zone (#963)
* allow !goto/!tpto from start/end zones

* also remove translation phrase for TeleportInZone
2020-11-30 09:34:39 -07:00
KiD Fearless
cbda666700 Fix Shavit_SaveCheckpoint Native 2020-11-23 15:48:49 -07:00
KiD Fearless
10ae7730de #985 fix create checkpoint list if it doesnt exist 2020-11-21 14:49:38 -07:00
KiD Fearless
b7114c2854 Add missing closing brace 2020-10-15 09:31:38 -06:00
Joe
8ca5add961
[CSS] continuously set m_flFlashDuration so the radar goes away (#964)
* continuously set m_flFlashDuration so the radar goes away

* fix formatting

Co-authored-by: KiD Fearless <kidfearless1@gmail.com>
2020-10-15 09:27:43 -06:00
Joe
f603d63e62
fix error that happens if you 'sm_tele 0' with no checkpoints (#962) 2020-10-15 08:59:12 -06:00
Joe
62c75ac242
reset stamina to 0 on restart (so scroll is less cancer) (#967)
* reset stamina to 0 on restart (so scroll is less cancer)

* fix formatting

Co-authored-by: KiD Fearless <kidfearless1@gmail.com>
2020-10-15 08:57:58 -06:00
Joe
48ddc092ea
fix using -1 for shavit_misc_persistdata (#961)
* fix using -1 for shavit_misc_persistdata

* fix formatting

Co-authored-by: KiD Fearless <kidfearless1@gmail.com>
2020-10-15 08:56:27 -06:00
Nairda
08050e23ac
cp bug fix (#951)
deadwinter says the blame is 33% him, 33% me and 34% shavit cus it's his timer
2020-08-06 16:26:46 -06:00
Nairda
533f3bccc9
Add delete checkpoint & convert checkpoints to lists (#946)
* Update shavit-misc.phrases.txt

* Update shavit-misc.sp

* remove debug lines

* Update shavit-misc.phrases.txt

* Update shavit-misc.sp

* Works.

deadwinter Today at 17:44
i fixed it myself
so
it is safe to merge now
@KiD

* Add forward for when checkpoints are deleted

* Adjust OnTeleport forward to match other checkpoint natives

* Create function for DeleteCheckpoint. Added documentation.

Co-authored-by: KiD Fearless <kidfearless1@gmail.com>
2020-08-03 17:41:52 -06:00
kidfearless
48f051f78c
Update very_good_yes from master (#932)
* Add Convar to restrict noclip in start zone

* remove unused translation file

* Require the enum struct size to be passed to natives

This should hopefully prevent Invalid memory access from plugins compiled on older version of the timer. If an enum struct is changed then plugins compiled on older version of the timer will be forced to be recompiled to match the version they are using.

* Fix save states not tracking preframes

Misc. name changes for natives. And a somehow possible exception fixed when getting a record.

* Add hitbox/center mass cvar (#930)

* Add optional cvar for player center of mass/player hitbox for touching zones

* 2.5.7a Final Changes

fix spelling mistake
add missing optional native
tabify spaces

Co-authored-by: Nairda <38843773+Nairdaa@users.noreply.github.com>
2020-07-07 17:37:17 -06:00
Nairda
f2ae4b050d
Fix hud error bug spam in server console and prespeed on replay (#918)
#BlameNairdaIfItBreaks
2020-06-05 22:00:53 -06:00
deadw1nter
91f83e2c2a
Clean up prerun code + Add prerun countdown to hud (#886)
* remove timer preframe variables

* Prerun should only record when you are in start zone

* Make clearpreframe optional

* add prerun countdown to hud
2020-04-10 09:57:21 -06:00
Nairda
986ebcd427
segmented prespeed fix (#883)
* Update shavit-misc.sp

* Update shavit-replay.sp

* Update shavit.inc

* Update shavit.inc

* Update shavit-misc.sp

* Update shavit-replay.sp
2020-04-04 11:17:31 -06:00
KiD Fearless
88ca8c8159 Implement set current checkpoint 2020-04-03 15:07:08 -06:00
KiD Fearless
1387b5451a Added more checkpoint natives and forwards 2020-04-02 21:28:26 -06:00
Nairda
85670b1e49
very big bug
at least check if it works before pulling:(
2020-04-02 03:02:02 +02:00
deadw1nter
daf2783071
Fix a bug
You still can save a segmetned checkpoint when you are dead via menu
2020-03-25 15:47:01 +08:00
KiD Fearless
3283a26d45 Added Convar_class methodmaps for timer convars 2020-01-22 17:16:37 -07:00
KiD Fearless
3d2b51a27a Supress command teleport messages 2020-01-22 14:55:36 -07:00
KiD Fearless
38a46cd5c1 Added shavit_misc_bhopsounds to block bhop sounds 2019-12-29 21:00:39 -07:00
KiD Fearless
ea00c86026 Added overflow parameter to Shavit_OnSave 2019-12-14 12:51:47 -07:00
KiD Fearless
0fd6d6507c Added Checkpoint Natives
Added 6 new natives to better interact with the checkpoint system of the timer. As well as moving the cp_cache_t into shavit.inc to allow 3rd party plugins to modify the checkpoint cache.

Update .gitignore
2019-12-06 18:22:08 -07:00
KiD Fearless
f7ae606467 Added checkpoint index to checkpoint forwards 2019-11-24 11:31:47 -07:00
strafe
e4b9d7a898 Don't override teamjoin argument when joining spectator 2019-11-04 00:01:36 +00:00
shavit
de1fa353ff Added shavit_misc_wrmessages finally. See commit description for info.
Oh, oh-oh
Oh

Yeah, I'm gonna take my horse to the old town road
I'm gonna ride 'til I can't no more
I'm gonna take my horse to the old town road
I'm gonna ride 'til I can't no more
(Kio, Kio)

I got the horses in the back
Horse tack is attached
Hat is matte black
Got the boots that's black to match
Ridin' on a horse, ha
You can whip your Porsche
I been in the valley
You ain't been up off that porch, now

Can't nobody tell me nothin'
You can't tell me nothin'
Can't nobody tell me nothin'
You can't tell me nothin'

Ridin' on a tractor
Lean all in my bladder
Cheated on my baby
You can go and ask her
My life is a movie
Bull ridin' and boobies
Cowboy hat from Gucci
Wrangler on my booty

Can't nobody tell me nothin'
You can't tell me nothin'
Can't nobody tell me nothin'
You can't tell me nothin'

Yeah, I'm gonna take my horse to the old town road
I'm gonna ride 'til I can't no more
I'm gonna take my horse to the old town road
I'm gonna ride 'til I can't no more

Hat down, cross town, livin' like a rockstar
Spent a lot of money on my brand new guitar
Baby's got a habit: diamond rings and Fendi sports bras
Ridin' down Rodeo in my Maserati sports car
Got no stress, I've been through all that
I'm like a Marlboro Man so I kick on back
Wish I could roll on back to that old town road
I wanna ride 'til I can't no more

Yeah, I'm gonna take my horse to the old town road
I'm gonna ride 'til I can't no more
I'm gonna take my horse to the old town road
I'm gonna ride 'til I can't no more

Scum Gang
2019-07-28 03:10:22 +03:00
shavit
04e5db5420 Fixed the fix for the fix of dropall errors (#807). 2019-05-30 01:50:20 +03:00
shavit
dca53d61c6 Reverted the dropall change, doesn't seem like the proper solution.
(seems like a csgo issue, let me know if anyone has a fix)
2019-05-29 09:12:54 +03:00
shavit
8cea924063 Got rid of a ResumeTimer that I don't remember why I added (#806). 2019-05-28 18:12:20 +03:00
shavit
0b4e82fae4 Fixed "weapon %d is not owned by client %d" (#807). 2019-05-28 18:02:34 +03:00
shavit
547f90ef62 Added automatic database migrations and revamped overall database structure.
Now I can push database migrations without making the plugin's users do the querying on their own.

List of migrations:
* **Converted all SteamIDs in the database from SteamID3 to Steam Account ID format. The difference is simply stripping of the [U:1: prefix and ] suffix. This change speeds up the queries and reduces the database's size by a lot.**
* Removal of `workshop/` paths from all map names in the database.
* Added index to `lastlogin` to speedup the filtering I added to rankings with `shavit_rankings_llrecalc`.
* Removed `country` from database. It was completely unnecessary.
* Converted IP addresses from plaintext to a single 4 bytes integer.
* Converted `date` of records from a string to integer.
2019-05-12 07:57:04 +03:00
shavit
24e8ba76fa Added new CS:GO radio commands to block list 2019-05-01 15:00:47 +03:00
shavit
55bd4fba1b Re-persist KZ menu after opening it manually 2019-04-18 22:30:12 +03:00
shavit
203644d1d2 Added prespeed setting 2 which also respect shavit_core_nozaxisspeed. 2019-04-17 22:57:37 +03:00
shavit
02530f5b56 Made KZ CP menu only persist until exited manually. 2019-04-15 03:43:51 +03:00
shavit
6942523464 Fixed error when using !r while dead on KZ style. 2019-04-15 03:34:15 +03:00
shavit
e298dbbc67 Fixed errors in KZ CP menu. 2019-04-15 03:33:44 +03:00
shavit
ba1dd8b256 Added warning on checkpoint clearing, and took it one item menu below 2019-04-15 03:29:06 +03:00
shavit
c61e646785 Added shavit_misc_stoptimerwarning 2019-04-14 23:25:17 +03:00
shavit
a30da28d69 Made KZ CP menu persist 2019-04-14 22:46:22 +03:00