shavitush
819eb45088
Make sm_wr a dynamic menu
...
Removes sm_wrsw, makes it easier for server owner to add new styles!
2016-04-25 07:03:58 +03:00
shavitush
4ac17f9a9b
Make style names editable from shavit.inc
...
This means you will be able to add your own styles very soon!
2016-04-25 07:03:12 +03:00
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
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
Shavitush
76abbccc09
Fixed replay bot
2015-10-07 17:25:51 +03:00
Shavitush
c50a7e3812
handle name changes correctly
2015-10-04 06:29:23 +03:00
Shavitush
7f303e3b15
reported as a fix for name changes
2015-10-03 13:41:40 +03:00
Shavitush
28382cb917
I gotta remember not everyone is using 100 tickrate 😆
2015-10-03 13:38:48 +03:00
Shavitush
b6e341da44
retardedness fix
2015-10-03 13:28:38 +03:00
Shavitush
6c6f4ff110
should make bot smoother
2015-10-03 13:24:52 +03:00
Shavitush
1872034791
Revert "Revert "add "sm_map MAP NAME"""
...
This reverts commit 29373d8b61 .
2015-10-03 13:24:03 +03:00
Shavitush
d529cad35d
add description
2015-10-03 13:23:40 +03:00
Shavitush
29373d8b61
Revert "add "sm_map MAP NAME""
...
This reverts commit 4addd4277e .
2015-10-03 13:22:12 +03:00
Shavitush
4addd4277e
add "sm_map MAP NAME"
2015-10-03 13:22:06 +03:00
Shavitush
41f8942596
remove debugging
2015-09-30 15:15:04 +03:00
Shavitush
d4b24b78f3
fix mapsleft
2015-09-30 15:14:44 +03:00
Shavitush
67f233497d
fix time shown in mapsdone
2015-09-30 08:52:15 +03:00
Shavitush
6002d27843
add sm_tpto/goto and handle cvars differently
2015-09-30 08:52:06 +03:00
Shavitush
8cfe5a99ca
after playing for a while i noticed how useless was this
2015-09-30 08:51:45 +03:00
Shavitush
70cfdef47b
Made bots not mess with triggers
2015-09-27 21:47:52 +03:00
Shavitush
89305ef835
Made bots not controllable
2015-09-27 21:18:56 +03:00
Shavitush
576a9e7035
that's what happens when you don't have a CS:S server to test it on
2015-09-27 06:20:57 +03:00
Shavitush
430738cabd
lol
2015-09-26 22:37:01 +03:00
Shavitush
363043f5aa
SHOULD fix crash on Linux
2015-09-26 22:35:01 +03:00
Shavitush
6fae079c09
add hud toggle
2015-09-22 13:33:57 +03:00
Shavitush
7b65e7e9c8
1.5b
2015-09-22 13:31:44 +03:00
Shavitush
8e3332d2ad
Fix shavit-hud not loading if shavit-replay isn't loaded
2015-09-21 22:58:13 +03:00
Shavitush
843affab8d
fix bot having the same name after changing map to one without replay data
2015-09-21 22:53:40 +03:00
Shavitush
489a6826d7
Fix compilation for the 1.7.3 SM compiler
2015-09-21 15:12:31 +03:00
Shavitush
519a647a53
Generate .nav files
2015-09-21 02:22:43 +03:00
Shavitush
193ee1e052
Replay bot + 1.4b release!
2015-09-21 02:16:44 +03:00
Shavitush
81b0bd15d3
Add cvars that prevent pausing/restarting.
...
And change the way I handle cvars
2015-09-14 18:19:12 +03:00
Shavitush
41ac0ae98f
fixed submenu time
2015-09-13 13:07:24 +03:00
Shavitush
630dd91f8a
Optimized HUD
2015-09-10 21:04:49 +03:00
Shavitush
93bfa963a1
colors fix
2015-09-09 21:17:08 +03:00
Shavitush
df59733b2f
It should look better now.
2015-09-09 12:58:15 +03:00
Shavitush
260bfce737
spacing is cool
2015-09-09 12:58:06 +03:00
Shavitush
030b58c1a8
New plugin, dynamic timelimits!
2015-09-04 14:04:11 +03:00
Shavitush
4df5f92baa
Fixed plugin, it works now ;)
2015-09-04 12:55:06 +03:00
Shavitush
4a94d9e7b2
#blameofir
2015-09-04 12:54:48 +03:00
Shavitush
22cc98f8ad
server.cfg is your best friend
2015-09-04 12:54:37 +03:00
Shavitush
f668d81c22
I need to do it more often.
2015-08-31 10:57:46 +03:00