Commit Graph

25 Commits

Author SHA1 Message Date
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
peace-maker
a8080c0bbb Fix description of nominations convars (#758) 2018-01-27 12:00:04 +00:00
Ross Bemrose
988d023e89 Fix /nominations returning Plugin_Continue (#532) 2016-07-31 13:16:38 -04: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
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
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
Nicholas Hastings
5139eef183 Fix buffer sizes used for map names (64 -> MAX_PATH).
As more games are now supporting maps nested in subfolders or in folders outside of the maps folder,
we need to account for the full path that the game uses to refer to the map for compatibility. Many other
places for fixed for this already after CS:GO added Steam Workshop support for maps.
2015-06-03 22:28:58 -04:00
Ross Bemrose
f40bfbf762 Updated nextmap.inc. Also fixed copyright years and added missing copyright header to mapchooser.inc (all .inc files use the same copyright header, so...) 2014-12-17 11:53:02 -05:00
Ross Bemrose
1b79252947 Update NextMap, Nominations, RandomCycle, and RockTheVote with newer MethodMap stuff 2014-12-16 14:16:06 -05:00
David Anderson
1328984e0b Update plugins for transitional methods. 2014-12-13 13:29:15 -08:00
David Anderson
cb4fdf1aa9 Update plugins for new syntax. 2014-11-30 18:57:38 -08:00
David Anderson
59fbeb4f2c Port nominations. 2014-11-09 16:11:36 -08:00
David Anderson
ff31d8df49 Update nominations.sp and improve compiler error messaging. 2014-07-06 23:59:15 -07:00
David Anderson
a7de88dd42 Port nominations.sp to the transitional syntax and API. 2014-07-05 14:00:52 -07: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
Kyle Sanderson
7e2afacf34 Fix broken translating in some plugins and natives (bug 5612, r=psychonic). 2013-08-25 10:15:35 -04:00
Erik Minekus
322a4ed05d Fixed bug in nominations that could cause "Unknown command" error (bug 4797, r=psychonic). 2011-01-16 20:00:44 -05:00
Fyren
0cef3fbf27 Fix leak in nominations plugin (bug 4104, r=pred) 2009-11-18 15:44:51 -08:00
Matt Woodrow
ed75da0f85 Reworked unavailable nominations showing in the menu (bug 3269)
Fixed a non-const String in mapchooser.inc
2008-10-09 14:24:30 +13:00
Matt Woodrow
7009e755fe Backed out changeset: 44b02986c01b
Damn you tortoisehg
2008-10-09 13:33:47 +13:00
Matt Woodrow
bba2cfc6f7 Structs now builds for the old engine (bug 3286) 2008-10-09 13:24:44 +13:00
Matt Woodrow
db5a0be4ca Backed out changeset: 19331eae67ad 2008-10-08 20:59:56 +13:00
Matt Woodrow
29e57e77f7 Maps nominated by owner=0 should not be replaced. Fixes sm_nominate_addmap only allowing a single map to be added (bug 3272) 2008-10-08 20:58:25 +13:00
Matt Woodrow
c67a3cd749 Nominations not blocking current map and excluded maps when used from console.
Removed error causing debug stuff from mapchooser.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402343
2008-07-04 22:54:14 +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