Commit Graph

22 Commits

Author SHA1 Message Date
Vladimir
f4ff2ad45a Add missing return values in plugins 2021-08-21 14:11:20 -07:00
Kyle Sanderson
d0bf26135c
Collection of plugin cleanups (#777)
* Fix rockthevote not clearing g_Voted on fakeclients.

* remove g_RTVAllowed in rockthevote as it's unused.

* Fix basebans using the wrong forward for configs.

* Prevent sm_addban from banning an immune steam adminid.

* Sprinkle in IsChatTrigger checks to plugins with plaintext chat hooks.

* fixup g_Voted[client] in OnClientDisconnect
2018-07-12 11:16:18 -07:00
theSaint92
9d932b47fd rockthevote.sp - RoundToFloor() -> RoundToCeil() (#590)
The reason of update is described here https://forums.alliedmods.net/showthread.php?p=2499471
2017-02-28 23:05:00 +00:00
Ross Bemrose
10a95cfdce Add new function: GetMapDisplayName.
This function will resolve the name of a map using FindMap, then (if applicable), will turn a workshop map name into a nicely formatted name.

Currently only TF2 and CS:GO Map Workshops are supported.  More can be added at a later date.

This function returns false if a map was not found, but true in any other instance even if FindMap could not resolve the map name.

This patch also updates the following core plugins to use this GetMapDisplayName:

BaseTriggers
BaseVotes
MapChooser
NextMap
Nominations
RandomCycle
RockTheVote
2015-09-15 16:16:58 -04:00
Ross Bemrose
ba0bf5668d One minor issue left from the merge 2015-06-04 21:42:25 -04:00
Ross Bemrose
338b4ed5d9 Merge remote-tracking branch 'remotes/origin/master' into mapchooser-updates
Conflicts:
	plugins/nominations.sp
	plugins/rockthevote.sp
2015-06-04 21:39:04 -04:00
Ryan Stecker
8bc3d5d93c Fix more buffer sizes for map names. 2015-06-04 18:32:49 -05:00
Nicholas Hastings
9e0dbfcf68 Fix inconsistencies with buffer sizes for player names.
Found any I could not using MAX_NAME_LENGTH and changed them to use it. I think that we should
increase MAX_NAME_LENGTH to 128 for CS:GO at some point as that's what it uses internally.
(Presumably to get the client's full multibyte name from Steam without truncation mid-codepoint which
can happen in other games. Steam's max is 32 characters if I remember correctly, but allows multibyte chars).
2015-06-03 22:40:43 -04:00
Ross Bemrose
1b79252947 Update NextMap, Nominations, RandomCycle, and RockTheVote with newer MethodMap stuff 2014-12-16 14:16:06 -05:00
David Anderson
86d4cdc0c4 Port rockthevote. 2014-11-09 16:10:25 -08:00
SystematicMania
a8ff00bc34 Switch more base plugins to OnClientSayCommand from say hooks (bug 5986, r=psychonic).
--HG--
extra : rebase_source : 7ff7d92f9d060ac69d0652d643f08e7d81946e49
2014-03-25 11:57:00 -04:00
Erik Minekus
f56cc43331 Fixed sm_rtv printing "unknown command" (bug 4730, r=psychonic). 2010-12-04 15:28:15 -05:00
Matt Woodrow
4228642b53 Rockthevote 'already voted' message now displays RTV progress (bug 4011, r=Fyren) 2009-09-17 18:55:40 +12:00
Matt Woodrow
7b8cd751e1 I should get more sleep. 2008-10-19 17:44:19 +13:00
Matt Woodrow
849c4a70ae And again with the build breaking.. 2008-10-19 17:37:21 +13:00
Matt Woodrow
4e88a5a431 Updated rockthevote to use new OnClientConnected forward (bug 3311) 2008-10-19 16:18:22 +13:00
Matt Woodrow
4a1c565b62 Updated rockthevote to use new MaxClients variable 2008-10-15 20:42:47 +13:00
Matt Woodrow
eee77228e6 amb1919 - HasEndOfMapVote finished should be separate from determining if the vote will run at all.
amb1915 - Mapchooser should disable round end changes if forced to change early.
amb1901 - Timer errors with mapchooser

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402439
2008-08-08 00:06:14 +00:00
Matt Woodrow
dad66c9204 Nextmap command (basetriggers.sp) will now show 'Pending Vote' if mapchooser is running, and the vote has not yet occured.
Few cvar description changes in rockthevote.sp

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402423
2008-07-17 07:47:11 +00:00
Matt Woodrow
c75d607a00 - Added ForceChangeLevel and Map History to nextmap api
- Changed base plugins to use new api
- Added sm_maphistory command to nextmap.sp

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402413
2008-07-13 05:13:37 +00:00
Matt Woodrow
4106620928 New mapchooser, rockthevote and nominations plugins finally ready. Removed the existing mapmanager stuff.
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402313
2008-07-01 01:18:52 +00:00
Scott Ehlert
251cced1f8 Spring Cleaning, Part Ichi (1)
Various minor things done to project files
Updated sample extension project file and updated makefile to the new unified version (more changes likely on the way)
Updated regex project file and makefile

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401971
2008-03-30 07:00:22 +00:00