Commit Graph

60 Commits

Author SHA1 Message Date
David Anderson
377888276e Update to the new SourcePawn compiler.
This imports the brand new SourcePawn compiler. The new compiler is much
faster to compile and generates significantly improved code around
array generation and array access.

There are a number of compatibility changes in the new compiler. Most of
these are due to improved type checking and error detection. The full
list of notes can be found here:

https://github.com/alliedmodders/sourcepawn/blob/master/docs/upgrading-1.11.md

Additionally, .smx files generated by the new compiler will NOT load on
earlier versions of SourceMod, including earlier versions of 1.11. Old
plugins will continue to load as normal.
2023-08-30 22:08:45 +02:00
Vladimir
f4ff2ad45a Add missing return values in plugins 2021-08-21 14:11:20 -07:00
stickz
100f1e56ca
mapchooser: Add option for persistent map storage (#1183)
* Add option for persistent previous map storage

* Fix spacer

* Recall previous maps before CreateNextVote()

* Remove MAPCHOOSER_TXT define

* nits and bits

* Update mapchooser.sp

Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com>
2020-07-08 19:56:26 -07:00
stickz
287628bfee
mapchooser: Clear map history on limit change (#1197)
This commit fixes a bug where if the value of `sm_mapvote_exclude` is reduced, the change may not take effect right away.
2020-07-08 18:36:50 -07:00
stickz
68e45f3583
mapchooser: Replace existing map entry from exclusion list (#1184) 2020-02-26 15:59:35 -08:00
JoinedSenses
4f3c3175e6 Create GlobalForward & PrivateForward methodmaps (#1004) 2019-05-29 14:17:42 -07:00
TheRandomLabs
f4b9dfb2e7 Fix misspelling of "runoff" in mapchooser (#973) 2019-03-23 18:21:54 -07:00
Maxim Telezhenko
68c00b8ae7 Remove superfluous assignment after delete (#654) 2017-08-22 20:55:04 +01:00
FlaminSarge
3f21fa4b39 Update sm_map behavior to better reflect FindMap/GetMapDisplayName results (#588)
* Update sm_map to use GetMapDisplayName
Increase map name buffer sizes to PLATFORM_MAX_PATH

* Update sm_setnextmap to use ShowActivity2
2017-03-13 15:52:37 -07:00
TheCreeper
39d9f4da3f Be consistent. 2016-02-22 21:15:38 +00:00
TheCreeper
6d5dd40875 Add support for Empires to mapchooser. 2016-02-22 21:10:34 +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
8567246772 ClearArray was changed to Clear in recent SourceMod builds. 2015-01-06 10:07:15 -05:00
Ross Bemrose
f69f4eb85f Fixes to make mapchooser.inc transitional compliant. Also updated comments in mapchooser.sp to match the new mapchooser.inc signature. 2014-12-26 12:36:12 -05:00
Ross Bemrose
01f4b204c9 Added two items missed in the original conversion with the Runoff vote. 2014-12-17 16:05:14 -05: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
ccf5aa6b54 Change all view_as<>(null) back to INVALID_HANDLE for now. 2014-12-17 11:07:51 -05:00
Ross Bemrose
032dde7be9 Missed a few GetArrayCell and GetArraySizes in MapChooser. 2014-12-16 17:00:00 -05:00
Ross Bemrose
2d5b71c832 Deleted comment... checked into it and its working as intended. 2014-12-16 16:57:49 -05:00
Ross Bemrose
8272151d78 Convert the MapChooser VoteHandlers over to the new style. 2014-12-16 16:20:03 -05:00
Ross Bemrose
bc4d6b7104 Eliminate extraneous view_as calls and also update mapchooser.inc. 2014-12-16 13:53:54 -05:00
Ross Bemrose
46839b9752 Update MapChooser to use 1.7 syntax... except there's a bug you run into with Advanced Vote Callbacks. 2014-12-16 13:38:43 -05:00
David Anderson
1328984e0b Update plugins for transitional methods. 2014-12-13 13:29:15 -08:00
David Anderson
28eb663f9b Port events to transitional syntax. 2014-12-13 12:51:16 -08:00
David Anderson
c425305cde Port mapchooser. 2014-11-09 16:25:52 -08:00
David Anderson
4802d4bae2 Remove use of macros in mapchooser. 2014-11-09 12:13:52 -08:00
David Anderson
3cf9e56a19 Fix various bugs in global newdecl support. 2014-07-04 14:31:56 -07:00
Peace-Maker
32f019c70c Fix Mapchooser dying on single map rotation servers (bug 5179, r=kyles). 2014-05-13 13:44:14 -07:00
Michael McKoy
52ff6fd5f8 Fix overoptimization of nomination counts in Mapchooser (bug 5359, r=kyles). 2014-01-30 14:29:53 -07:00
Kyle Sanderson
9fe11f9c36 Fix being able to nominate same map multiple times (bug 5109, r=psychonic) 2014-01-17 23:21:16 -05:00
Nicholas Hastings
7ad43a5b11 Make sm_mapvote_runoffpercent cvar work as advertised (bug 5890, r=asherkin). 2013-08-30 14:14:59 -04:00
Peace-Maker
82e16db275 Fixed sm_cancelvote not resetting rtv state. (bug 5808, r=asherkin) 2013-08-12 00:58:43 +01:00
Nicholas Hastings
08d83eb8da Backed out changeset: 40e1814dd3d6 (bug 5484). 2013-03-19 22:08:19 -04:00
Michael McKoy
5625ad76b9 Fixed mapchooser interaction with CS:GO winlimits (bug 5484, r=psychonic). 2013-03-18 20:10:31 -04:00
Peace-Maker
ca1e9a2976 Increased map name buffer sizes in mapchooser (bug 5609, r=psychonic). 2013-03-16 23:17:22 -04:00
Matt Woodrow
3b12883a1b Added support for runoff voting in mapchooser (bug 4218, r=dvander). 2011-11-05 20:36:20 -04:00
Nicholas Hastings
325ae5e977 Added better Nuclear Dawn compatibility to base plugins (bug 5117, r=fyren). 2011-10-11 19:47:20 -04:00
Nicholas Hastings
4b5fa26cd6 Changed some instances of LogMessage to LogAction. (bug 4649, r=fyren). 2011-03-20 19:37:25 -04:00
Brett Powell
6267c17c6b Extend Nominations API (bug 4677, r=pred) 2010-11-19 17:39:53 +13:00
Fyren
4364ba46e2 Switch base plugins to APL2; disable nextmap for L4D, Dystopia, Synergy (bugs 3716, 3687, 3741; r=pred) 2009-03-18 22:10:39 -07:00
Matt Woodrow
10ba5809d2 Fixed mapchooser not checking for an existing vote with mp_fraglimit (bug 3503) 2009-02-19 20:35:41 +13:00
Matt Woodrow
759c76e188 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 21:02:01 +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
David Anderson
2534fd1ce2 Fixed reverse order of evaluation in mapchooser causing an invalid handle read (bug 3290, r=bl4nk). 2008-09-30 22:45:26 -07:00
Matt Woodrow
49d14111e2 Fixed mapchooser not starting a vote if RTV result is "Don't change" (bug 2734, r=bl4nk). 2008-09-27 21:46:07 -07:00
Matt Woodrow
05c8681336 Couple of small mapchooser tweaks
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402477
2008-08-27 01:45:10 +00:00
Matt Woodrow
bf5ee181fa Removed a few debug messages from mapchooser
--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402476
2008-08-27 01:00:01 +00:00
Matt Woodrow
094acb1039 Fixed amb1957 - Mapchooser now counts arena rounds correctly.
Fixed amb1925 - Mapchooser countly rounds incorrectly during an RTV
Fixed amb1920 - Cleared retry timer
Fixed amb1921 - Cancelling a vote now marks the vote as complete

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402475
2008-08-27 00:49:56 +00: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