Commit Graph

239 Commits

Author SHA1 Message Date
rtldg
6bd7b0af0e infinite ammo things 2021-04-06 18:34:11 +00:00
rtldg
b821844a4c remove redundant pause eye-angles since it's already done in shavit-core 2021-04-06 16:30:16 +00:00
GAMMACASE
85ef97122c
Fix incorrect memory allocation for segmented checkpoints (#1040)
* Fix incorrect allocation for a new cp

* fine
2021-04-06 10:51:31 +00:00
rtldg
6229900baf now all radars are gone forever and dynamic replay bots will no longer show the radar (WHY DO THEY ANYWAY???) 2021-04-05 19:48:51 +00:00
rtldg
6113b0c3dc checkpoint code churn 2021-04-05 18:03:19 +00:00
rtldg
9db01e2eb5 stop spawning in the ground / hook CGameRules::IsSpawnPointValid() 2021-04-04 15:07:27 +00:00
rtldg
1531d65f3c csgo teammenu selecting same team didn't close the menu 2021-04-04 11:41:59 +00:00
rtldg
2d5aec9a3e change RemoveAllWeapons() a bit 2021-04-04 09:07:45 +00:00
rtldg
3a24c6a955 thing to delete savestate if changing style (spec->change style->respawn as old style) 2021-04-02 06:21:30 +00:00
rtldg
3a84ae091a remove some TODOs 2021-04-01 15:46:20 +00:00
Nairda
cd8bbdf850
update menu drawing time (#1036)
* Update shavit-rankings.sp

* Update shavit-rankings.sp

* Update shavit-hud.sp

* Update shavit-core.sp

* Update shavit-misc.sp

* Update shavit-replay.sp

* Update shavit-stats.sp
2021-04-01 13:44:10 +00:00
rtldg
14e9bf27c3 some maybe working eventqueuefix anti-basevelocity-from-startzone fix 2021-03-29 18:36:40 +00:00
rtldg
9c54cd733c maybe working eventqueuefix segmented checkpoint integration 2021-03-29 17:18:26 +00:00
rtldg
78ecccf7c4 change some cvar defaults 2021-03-23 10:14:34 +00:00
rtldg
6386577ef4 fix team select menu needing to be closed twice 2021-03-23 05:52:26 +00:00
rtldg
87c74d329a remove some errors and warnings 2021-03-23 03:15:41 +00:00
rtldg
4084f8deee hopefully work around non-ingame clients that might be passed to NormalSHook's 2021-03-20 04:15:03 +00:00
rtldg
4d91c49d60 add sm_toggleadverts for someone special 2021-03-19 07:51:36 +00:00
rtldg
9e43f67fc3 add looping, dynamic, and prop replay bots
changed natives:
Shavit_OnReplayStart, Shavit_OnReplayEnd, Shavit_GetReplayBotFirstFrame, Shavit_GetReplayBotIndex,
Shavit_GetReplayBotCurrentFrame, Shavit_GetReplayTime, Shavit_GetReplayStatus, Shavit_StartReplay

added natives:
Shavit_IsReplayEntity

thanks carnifex for telling me how to make replay props
2021-03-19 03:03:24 +00:00
rtldg
bf7f68faec change all menus to display for at least 5 minutes 2021-03-14 00:03:10 +00:00
rtldg
4350ca0994 fix segmented checkpoints practice bug (#1023) 2021-03-08 22:30:40 +00:00
KiD Fearless
1f81b4116e lowercase Timer variable name 2021-03-07 12:06:20 -07:00
KiD Fearless
70ae9bc4cb Add shavit_misc_prespeed 5 for 2d velocity limit. 2021-03-07 12:05:13 -07:00
Joe
99ac213a2e
Merge pull request #1022 from GAMMACASE/restart_warn_on_seg_removed
Remove restart warning for a segmented style
2021-03-07 03:31:47 +00:00
Joe
a78d797d42
use existing CanSegment(client) 2021-03-07 03:29:18 +00:00
rtldg
65f58219bd misc changes & stockify GetSpectatorTarget 2021-03-07 03:25:56 +00:00
GAMMACASE
0d3dd2bf2e Removed restart warning for a segmented style 2021-03-07 05:58:38 +03:00
rtldg
720ddeed1d add Shavit_GetPlainChatrank. add {cr} to shavit_misc_clantag 2021-03-02 22:05:03 +00:00
rtldg
41f62f0a8f add the steamid to cpcache so segmented checkpoints don't keep starting in practice mode 2021-03-02 18:56:13 +00:00
rtldg
a186e25b4e save cps on disconnect. fix ->spec->rejoin->lose pos. merged savestate stuff into persistent_data_t stuff 2021-03-02 18:17:10 +00:00
rtldg
14741a66c1 this stuff is stored in the timer_snapshot_t 2021-03-02 02:37:25 +00:00
Joe
a6ff5dd94c
Avg and max velocity (#1017)
Adds Shavit_GetAvgVelocity(), Shavit_GetMaxVelocity(), Shavit_SetAvgVelocity(), Shavit_SetMaxVelocity().
Adds `float avgvel, float maxvel` to Shavit_OnWorldRecord, Shavit_OnFinish_Post, Shavit_OnFinish, Shavit_OnWorstRecord.
Adds avg/max velocity to cp_cache_t and timer_snapshot_t
Prints avg/max velocity to run-finish message.
2021-02-27 18:33:07 +00:00
Joe
7b2fb3be65 store avg/max velocity in persistent data & cpcache 2021-02-26 17:53:42 +00:00
Joe
df8b64d1b3
add Shavit_GetTimesTeleported() (#1012)
* add Shavit_GetTimesTeleported()

* add Shavit_GetTimesTeleported() to the optional native section

* Use ++ instead of += 1

Co-authored-by: KiD Fearless <kidfearless1@gmail.com>
2021-02-21 17:26:30 -07: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
shavit
ea670471d4 Added pause button to KZ checkpoint menu 2019-04-14 22:45:20 +03:00
shavit
d4e09db495
matched code styling 2019-03-29 15:26:02 +03:00
Sachin
d6641f9ee6
Fixes error: Client 3 not in game 2019-03-29 17:47:11 +05:30
shavit
3e8df4214b Fixed a game breaking exploit with persisted data. 2019-03-29 08:40:07 +03:00
shavit
39572abfd9 Added persisting timer data (#757). 2019-03-27 19:50:03 +02:00
shavit
4d2308ef1f Fixed shavit-misc not respecting mp_humanteam properly (#716). 2019-03-26 02:47:23 +02:00
shavit
f2c3517943 Added "shavit_misc_hidechatcmds" (#650). 2019-03-25 14:50:35 +02:00
shavit
7365cbcb53 Added "kzcheckpoints" mode (#759). 2019-03-25 02:48:50 +02:00
shavit
655d41ef41 Fixed bug that allowed teleporting to deleted checkpoints. 2019-03-25 02:20:29 +02:00
shavit
5ec325aa35 Added checkpoint forwards (#759). 2019-03-25 02:19:35 +02:00
shavit
96e856fe29 When !replay fails, display menu will display at the same item. (#763) 2019-03-24 22:37:00 +02:00
KiD Fearless
ef8af7807d Add topleft hud and clantag forwards 2019-03-08 18:08:02 -07:00
shavit
feec3f0a2f Removed debug message 2019-02-25 00:19:29 +02:00
shavit
dd8e5a76dd Fixed improper targetname/classname set for CP (#700). 2019-02-22 21:42:18 +02:00
shavit
875d71be3e Added {rank} to scoreboard clan tag (#702). 2019-02-22 17:51:59 +02:00
shavit
5be987828b Fixed checkpoints exploit and CP menu bug. 2019-02-22 17:24:20 +02:00
strafe
683e75c474 Remove semicolon after closing brace on enum structs
https://github.com/alliedmodders/sourcepawn/pull/319
2019-02-21 23:32:15 +00:00