Commit Graph

132 Commits

Author SHA1 Message Date
shavitush
ab86bfab37 Stop crashing if maps/base.nav doesn't exist
(don't cause the server to go into an endless map loading loop if
maps/base.nav doesn't exist)
2016-04-16 22:40:56 +03:00
shavitush
c397abb7da Fix formatting issue for sm_autobhop 2016-04-13 01:03:05 +03:00
shavitush
7dd5f6db5e attempt to fix rot_ang not being created at first time 2016-04-10 23:08:52 +03:00
shavitush
54e15f4799 Code cleanup 2016-04-06 22:38:24 +03:00
shavitush
429c161d81 Fix issue that could cause the mapzones table to not create 2016-04-04 22:47:58 +03:00
shavitush
f937cb56ed Fix shavit-zones not working. Can't believe no one else reported it.. 2016-04-02 01:43:00 +03:00
shavitush
6298f3ad53 Reverse order of Shavit_GetDB and SetSQLPrefix 2016-04-02 01:42:38 +03:00
shavitush
5aae6851c7 !R (note: capitalized) now restarts the timer. 2016-03-26 22:55:20 +03:00
shavitush
3f8b3c297a Added shavit_wr_recordlimit and removed some extra useless lines 2016-03-26 22:54:57 +03:00
shavitush
884bbc55af Rewrite UpdateWRCache and add Shavit_GetWRRecordID() 2016-03-26 22:20:18 +03:00
shavitush
3f446e246d Optimize copying of strings and fix table prefixes for mapzones 2016-03-26 20:53:04 +03:00
shavitush
ed1e7801a5 Fix sm_zonehud being set to random people 2016-03-22 18:44:43 +02:00
shavitush
ef4c865584 Update todo 2016-03-22 18:44:02 +02:00
shavitush
184a0b14da Fix bots spinning endlessly.
Oh god, if anyone wants to rewrite this code with backwards
compatibility it would be cool.
2016-03-11 17:47:38 +02:00
shavitush
1cdbd85d5a Fix formatting issue 2016-03-09 21:47:22 +02:00
shavitush
7be1c9417e Migrate every menu to the new syntax. 2016-03-07 18:17:21 +02:00
shavitush
08c6dac1f3 Add table prefix (shavit_core_sqlprefix) 2016-03-07 17:58:49 +02:00
shavitush
4b599462f4 Fix chat colors for Counter-Strike: Source.
Also added `Shavit_PrintToChat()` and `Shavit_PrintToChatAll()`
2016-03-07 17:29:36 +02:00
shavitush
e04243592d Started using Atom - let it auto indent everything. 2016-03-07 16:14:21 +02:00
shavitush
a750f21a99 Add shavit_misc_respawnonteam and hook team changes. 2016-03-03 15:54:49 +02:00
shavitush
d712e4b055 Bug fixes and minor improvements. 2016-03-03 15:54:33 +02:00
shavitush
6842649db5 Make sm_hide not show other players than the one you're spectating. 2016-02-27 12:05:08 +02:00
Shavitush
c10be6c69a Make one function that displays a WR menu, this allows me to work on custom styles in the near future!
Also, show your rank in the map (if it's top50, that's the best I could
pull with just one query and without caching too much stuff) and number
of records.
TODO: Remove sm_wrsw and make sm_wr one menu with all difficulties.
TODO: Add style configuration through mysql (`style` table) and allow it
to be custom with many options.
TODO: Add a cvar that limits the amount of records in the WR menu.
2016-02-16 16:48:57 +02:00
Shavitush
2e7413f42e hotfix, forgot to add some stuff to the commit 2016-02-10 14:24:33 +02:00
Shavitush
e8936b810e Added a cvar that increases the interval between drawing of zones; should reduce lag with many players in the server.
Extra: Made cvars use the new syntax.
Fixed the bug where teleportation into the start zone would get you
stuck in a wall by making the Z axis the same as the start zone's bottom
layer.
2016-02-10 10:10:56 +02:00
Shavitush
46184c31e3 fix hud not breaking lines in CS:S 2015-11-26 12:00:51 +02:00
Shavitush
1ff5634f96 Fix for the HUD being glitchy and unreadable in CS:S. 2015-11-26 02:30:15 +02:00
Shavitush
b385f688d1 Show the target's player name in the mapsleft/done menu. 2015-11-07 02:39:48 +02:00
Shavitush
b4a8c0b44c Reverting the whole name change hook, as it failed. 2015-11-05 17:23:08 +02:00
Shavitush
9344b0626e Fix error on first table creation 2015-11-05 17:00:08 +02:00
Shavitush
1771b6a6c2 I really gotta test stuff before releasing.. 2015-11-05 16:59:42 +02:00
Shavitush
b5e2a0a60d hotfix 2015-11-05 12:47:04 +02:00
Shavitush
b1d40f19de Don't show name changes for bots, except for new WRs. 2015-11-05 12:44:06 +02:00
Shavitush
d6192cbe79 Add the possibility of rotating mapzones. Thanks @ofir753 ❤️ 2015-10-31 01:09:57 +02:00
Shavitush
6a0d395f3a add "hide team changes" 2015-10-29 21:48:13 +02:00
Shavitush
01972e7135 fix for bots being kicked and bots without weapons 2015-10-27 20:49:07 +02:00
Shavitush
edeede8eeb temporary fix for name change spam (won't work with more than 2 styles) 2015-10-24 18:36:52 +03:00
Shavitush
edc79c41a0 fix 2 bots on the same client index 2015-10-24 15:20:32 +03:00
Shavitush
b56d284143 Bots can now reach the end zone now 2015-10-24 14:36:00 +03:00
Shavitush
96c896dcfd Add "sm_zonehud" toggle. TODO: Make an actual "sm_hud" menu and save settings to DB 2015-10-23 19:56:13 +03:00
Shavitush
51d184335a SHOULD fix replay bots that suddenly stop 2015-10-23 19:55:52 +03:00
Shavitush
63c682b8c3 Fix bots changing their names a lot
Use https://forums.alliedmods.net/showthread.php?t=270336 if you want
another fix
2015-10-19 22:43:45 +03:00
Shavitush
879da18843 fixed an error spam when in end zone 2015-10-19 22:35:19 +03:00
Shavitush
e875708746 fix HUD not working 2015-10-19 13:28:43 +03:00
Shavitush
77cd69264d let's not create html mess with css 2015-10-17 20:23:13 +03:00
Shavitush
4be2711278 added cool text gradient when inside start/end zone 2015-10-16 14:08:13 +03:00
Shavitush
0e9f373940 make the replay bots highest in the scoreboard 2015-10-16 13:40:23 +03:00
Shavitush
fe590b7eac yeah 2015-10-15 17:52:54 +03:00
Shavitush
97c818a18d fixed error 2015-10-15 17:23:59 +03:00
Nomy
3c4fda927d hud mudule causes error on cs:s
L 10/15/2015 - 13:39:16: [SM] Native "ConVar.SetBool" reported: Invalid convar handle 0 (error 4)
L 10/15/2015 - 13:39:16: [SM] Displaying call stack trace for plugin "shavit-hud.smx":
L 10/15/2015 - 13:39:16: [SM]   [0]  Line 103, shavit-hud.sp::OnConfigsExecuted()
2015-10-15 13:52:06 +01:00