Commit Graph

142 Commits

Author SHA1 Message Date
shavitush
e0bbcf970b Fix shavit-zones not compiling 2016-04-25 06:42:29 +03:00
shavitush
1f3d2264e0 Make shavit-replay create a plugin config 2016-04-25 05:48:13 +03:00
shavitush
eaba734203 Add replay restart delay cvar (solves #23) 2016-04-25 05:47:23 +03:00
shavitush
cc32334100 Add min/max bounds for cvars that missed it 2016-04-25 05:46:19 +03:00
shavitush
bae583cfdd Add 3 new cvars (check commit description)
[shavit-misc]
shavit_misc_respawnonrestart: Respawn a dead player if he uses the timer
restart command?
0 - Disabled
1 - Enabled

shavit_misc_startonspawn: Restart the timer for a player after he
spawns?
0 - Disabled
1 - Enabled

[shavit-zones]
shavit_zones_teleporttostart: Teleport players to the start zone on
timer restart?
0 - Disabled
1 - Enabled
2016-04-25 05:40:08 +03:00
shavitush
9eaa2bfced Make zonehud more dynamic 2016-04-25 05:31:36 +03:00
shavitush
d5ae626498 Fix an error for CS:S 2016-04-24 04:30:57 +03:00
shavitush
8980a157c0 Fix SQL error on table creation and attempt on..
migrating EVERYthing to the transitional SM syntax
2016-04-24 01:44:56 +03:00
shavitush
3a4a805b06 shavit_core_nostaminareset ("easybhop") toggle 2016-04-24 01:09:26 +03:00
shavitush
ade75f76e9 create a placeholder as 1337 is immature 2016-04-17 06:44:25 +03:00
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