Commit Graph

1079 Commits

Author SHA1 Message Date
Asher Baker
caf0914289
Remove MAPLIST_FLAG_NO_DEFAULT misuses (#870)
These two base plugins are using the MAPLIST_FLAG_NO_DEFAULT when they shouldn't, which causes much user (and SM developer) confusion as it is completely counter to the documentation.
2018-08-19 12:41:53 +01:00
SlidyBat
144fb907f1 Add new Traceray natives (#754) 2018-08-13 23:02:12 +01:00
peace-maker
7e3b1c395b Mark new methodmap natives as optional (#867)
The `TopMenu` methodmap natives weren't marked as optional if the extension was optional like the other normal natives.

The `Regex` natives weren't marked as optional at all before if the regex extension was included optionally.

This makes the error message cleaner in case topmenus aren't loaded.
```
adminmenu.smx (Admin Menu): Required extension "TopMenus" file("topmenus.ext") not running
basebans.smx (Basic Ban Commands): Native "TopMenu.Display" was not found
```
2018-08-06 20:11:01 +01:00
ddhoward
beaf812909 Deprecate FormatUserLogText (#856)
Allow client index 0, too. (Console)
2018-07-31 19:19:18 -07:00
Michael Flaherty
7068c3e865
Fix LogStackTrace Anomaly (#863) 2018-07-31 04:17:36 -07:00
hydrogen-mvm
d14c94c353 Add missing return value documentation (#854) 2018-07-26 18:33:22 -07:00
Michael Flaherty
11abe77eed
Allow any returns in native callbacks (#857) 2018-07-25 21:46:44 -07:00
Michael Flaherty
32d12ea4a6 Preserve old DataPack behavior when overwriting data (#848)
* Match old DataPack behavior when overwriting data

* Make RemoveItem more flexible

* Ditch implied RemoveItem behavior & asher fixes

* KyleS nits - but fixed before he says them

* Add back implicit behavior

* Update CDataPack.cpp

Committing to the spec.

* Update CDataPack.h

* fixup removing last item if explicitly requested

* Fix logic for accepting pack pos, rather than index

* Fixup IsReadable

* headache is over now
2018-07-14 17:00:17 -07:00
komashchenko
52cdbb4fc1 Fix sm_help erroring out if invoked during the connection process (#723)
* Fix "Exception reported: Client 12 is not in game"

* Fix

* Update adminhelp.sp
2018-07-12 11:18:57 -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
Michael Flaherty
28f1ea82b6 Add base CommandIterator implementation (#819)
* Add base CommandIterator implementation

* Add check for invalid pos & finalize pr
2018-07-10 17:39:31 -04:00
Alfred Llagas
daee19d502 Changed "entiy" to "entity" in IsEntNetworkable (#847)
* Changed "entiy" to "entity" in IsEntNetworkable

* Update entity.inc
2018-07-08 11:11:35 -04:00
Mattia
70145dfd74 Make SQL_QuoteString deprecated (#792)
* Make SQL_QuoteString deprecated

* Fix message
2018-07-08 11:06:06 -04:00
Michael Flaherty
c09b32010f Add Profiler methodmap (#814)
* Add profiler methodmap

* No tag mismatches here

thanks pm

* Lets fix some documentation while we're here.

* Use proper methodmap documentation style

Across sm we use `//` for methodmap docs, so lets just keep this consistent
2018-07-08 11:05:29 -04:00
Mattia
85a1d3e78a "sound" folder instead "sounds" (#790)
The folder is actually "sound" and not "sounds"
2018-07-08 11:04:20 -04:00
Ruben Gonzalez
d430bd2f5c
Fix CompileRegex not actually setting a valid error code. (#775)
Fix CompileRegex not actually setting a valid error code.
2018-05-28 13:59:43 -04:00
RumbleFrog
7f552e4d75 Deprecate GetMaxClients (#818) 2018-05-23 12:58:36 +01:00
404
7e080d259e Update helpers.inc (#805)
Update GetClientAuthString to GetClientAuthId
2018-04-28 11:18:12 +01:00
Hexah
6c7e29cbdb Documentation fixes from methodmap implementation (#788)
* There is no "menu" param

* No "menu" param on GetTitle()

* Misspell "Replies"
2018-03-25 12:58:11 -07:00
Nicholas Hastings
0a91b1f5b1 Increase MAX_NAME_LENGTH to match CS:GO MAX_PLAYER_NAME_LENGTH. 2018-02-25 10:51:18 -05:00
Nicholas Hastings
a17b47a2dc Add Protobuf.HasField native. 2018-02-25 10:49:37 -05:00
Michael Flaherty
2a8c390498 Un-const string retrievals (#769) 2018-02-20 18:38:17 +00:00
Ruben Gonzalez
5ac3390656
Add new regex natives. (#767)
Add new regex natives to get multiple/all matches.
2018-02-15 15:31:24 -05:00
Michael Flaherty
64a6972757 Fix description for CharToLower and CharToUpper v2 (#750) 2018-02-02 23:30:12 +00:00
StrangeThings
1293d15f72 Remove the @brief tag in sdktools_hooks.inc (#759) 2018-02-02 23:28:20 +00:00
Michael Flaherty
12fca79006 Prevent use of primitive float operation functions (#763)
Apparently people use the float natives for actual float arithmetic; they're not really intended to be used directly.

* Prevent use of primitive float operation functions
* Deprecate float operation functs
* Alias Float natives to internal names
* Add clarifying note
* Remove use of internal FloatDiv native
2018-02-02 23:27:38 +00:00
peace-maker
a8080c0bbb Fix description of nominations convars (#758) 2018-01-27 12:00:04 +00:00
JRiipinen
8c61fdc99d Add more TF2 specific DMG_ definitions (#756)
* Add more TF2 DMG_ definitions

* Guard them all

* Inline doccomments
2018-01-26 14:06:54 +00:00
Nicholas Hastings
9374620b8b
Add RemoveEntity native. (bug 5714) (#745) 2018-01-07 13:52:36 -05:00
Alex
6b257de75a Add internationalization to basechat and fix CS:GO colours (#674)
* Added translation more to basechat

Also fixed colors, because it didn't work without `\x01` at begin of string.

* Fixed cs:go colors, thanks Bara20

* Added 'space' at the start of string.

* Added check for Engine_CSGO, to remove offset on other games

* forgot one row
2017-12-30 12:25:32 -08:00
Michael Flaherty
64ab3a08b5 Add missing const to usermessage function parameters (#735) 2017-12-14 11:27:07 +00:00
Michael Flaherty
a5583882f4 fix bad english 🍋 (#724) 2017-12-03 11:37:50 +00:00
Michael Flaherty
d685f30847 Add Translation Natives (#669)
* Add Translation Natives

See #626

* Fix vocab errors
* Better description
* Bump ITranslator Version
* Implement KyleS' Review Requests
* Improve documentation
2017-11-20 21:24:01 -08:00
Michael Flaherty
43cdf20fd3 Add FrameIterator to SourceMod (#716).
* Create FrameIterator type
This commit adds the FrameIterator type to core sm along with a few
methods around getting the information for each frame.

* Fix incorrect documentation
[skip ci]
* Implement KyleS's Changes
* A nit
2017-11-16 18:55:37 -08:00
Ruben Gonzalez
7507672895
Merge pull request #701 from alliedmodders/csgo-hashmap
CStrike extension changes for CS:GO
2017-11-03 19:48:55 -04:00
Nicholas Hastings
95afe72307
Separate out DOI build. (#718) 2017-11-03 15:45:16 -04:00
Michael Flaherty
404e96ad45 Add KeyValues.ExportToString (#706) 2017-10-28 12:47:00 +01:00
Ruben Gonzalez
b6a2f72e95
Merge branch 'master' into csgo-hashmap 2017-10-27 18:57:28 -04:00
Asher Baker
4bab834716
Merge pull request #672 from peace-maker/null_natives_fixed
Add natives to check for NULL_VECTOR and NULL_STRING
2017-10-27 20:03:09 +01:00
Nicholas Hastings
8f6f881937 Update tf2 stun and death flags. 2017-10-27 08:03:39 -04:00
JRiipinen
8807939a14 Update TF2_IsPlayerInCondition (#712)
* Update TF2_IsPlayerInCondition

* Update conditions too
2017-10-27 07:02:38 -04:00
Nicholas Hastings
23a1c5f952 Tyop fix. 2017-10-22 09:32:02 -04:00
Nicholas Hastings
5aaea4c2c5 Update TF2 enums. 2017-10-22 08:52:02 -04:00
Andrew
f67e4ce610 Making rename's LogAction message consistent... (#696)
with the other plugin's messages.
2017-09-26 20:22:38 -04:00
Andrew
f289799c57 Making gravity's LogAction message consistent... (#695)
with the other plugin's messages.
2017-09-26 20:22:30 -04:00
Andrew
aac279322b Making blind's LogAction message consistent... (#697)
with the other plugin's messages.
2017-09-26 20:22:02 -04:00
Andrew
54565c92f7 Add target arg to LogAction in basechat sm_psay. (#690) 2017-09-23 10:45:41 -07:00
Ruben Gonzalez
8c8af88cee Add additional native, fix include file. 2017-09-19 12:37:11 -04:00
Ruben Gonzalez
8a36d0486b Add enum value for max regular items. 2017-09-10 10:16:23 -04:00
Ruben Gonzalez
1f3b14367d Add new native to get enum value based on item definition index. 2017-09-09 23:27:32 -04:00
Ruben Gonzalez
b68405b651 Fix cstrike include file. 2017-09-03 19:30:06 -04:00
Ruben Gonzalez
453e9da7c5 Intial CS:Go changes and slight changes for CS:S WeaponID related function. 2017-09-03 09:19:12 -04:00
Peace-Maker
41a9889cdd Add Call_PushNullVector and Call_PushNullString
Be able to push NULL_[VECTOR|STRING] to a forward or direct function call.
The callee can check the parameter using the IsNullVector/IsNullString natives.
2017-08-25 23:23:24 +02:00
Peace-Maker
3de269946c Add IsNativeParamNullVector and IsNativeParamNullString natives
Lets plugins check if some other plugin passed NULL_VECTOR or
NULL_STRING to a native in the native callback.
2017-08-25 23:23:07 +02:00
Peace-Maker
9fa4ed8bac Add IsNullVector and IsNullString natives
Let plugins check if a string or vector passed to a function is their
NULL_VECTOR or NULL_STRING.
2017-08-25 23:22:39 +02:00
Timocop
ea6cf26929 Ignore vote actions if target is no longer available (#649) 2017-08-22 20:56:12 +01:00
Maxim Telezhenko
68c00b8ae7 Remove superfluous assignment after delete (#654) 2017-08-22 20:55:04 +01:00
Asher Baker
01c6bb8c6f Add an explanatory note to GetSteamAccountID 2017-08-12 13:04:26 +01:00
Asher Baker
11aab699a5 Revert "Add natives to check for NULL_VECTOR and NULL_STRING" 2017-08-04 00:44:47 +01:00
Asher Baker
e4047c3f87 Merge pull request #606 from peace-maker/null_natives
Add natives to check for NULL_VECTOR and NULL_STRING
2017-07-25 19:19:26 +01:00
Arthurdead
44c744b8fd Add native to get gpGlobals->frametime (#629) 2017-06-26 11:18:12 +01:00
Duko
27b4f9538a Disable nextmap on Alien Swarm: Reactive Drop.
Bug: Disconnects players on changelevel
https://steamcommunity.com/app/563560/discussions/2/135509124600714346/
2017-05-20 07:23:27 -04:00
peace-maker
1351df4260 Add OnPlayerRunCmdPost forward (#591)
* Add OnPlayerRunCmdPost forward

Allow plugins to catch the values that are actually used by the game
after some eventual changes by other plugins.

* Add |const| qualifier to arrays in OnPlayerRunCmdPost forward
2017-05-09 15:16:05 +01:00
Peace-Maker
de42dfc783 Add Call_PushNullVector and Call_PushNullString
Be able to push NULL_[VECTOR|STRING] to a forward or direct function call.
The callee can check the parameter using the IsNullVector/IsNullString natives.
2017-05-04 22:56:31 -06:00
peace-maker
ed42d2feea Add missing parameter to DataPack.IsReadable (#603) 2017-04-30 13:49:18 -04:00
Mohammad Ghasembeigi
c0ec537f29 Fix typo in file.inc include (#602) 2017-04-28 06:47:09 -04:00
Michael Flaherty
a36dafb906 Add PrintToConsoleAll (#601) 2017-04-18 07:29:47 -04: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
Peace-Maker
b67da15b5b Add IsNativeParamNullVector and IsNativeParamNullString natives
Lets plugins check if some other plugin passed NULL_VECTOR or
NULL_STRING to a native in the native callback.
2017-03-03 11:47:03 -07:00
Peace-Maker
c1888c2d05 Add IsNullVector and IsNullString natives
Let plugins check if a string or vector passed to a function is their
NULL_VECTOR or NULL_STRING.
2017-03-03 11:45:39 -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
Benoist3012
08238a8036 Add FireEntityOutput native. (#587)
* AcceptEntityOutput native

* define fix

* MSVC fix and renamed native

* Added requested changes.

* tab/space fix
2017-02-15 19:29:43 -05:00
peace-maker
86363dd3ec Add ADT array blocksize getter (#578)
Add GetArrayBlockSize and GetStackBlockSize and equivalent properties to
the methodmaps to get the blocksize the array or stack was created with.

Useful when getting array handles from other plugins you didn't create
yourself.
2017-02-09 19:26:14 +00:00
Nicholas Hastings
af9852a68f Add support for getting and setting output variables with Get/SetEntProp*. 2017-02-07 07:52:00 -05:00
Nicholas Hastings
c7f413f1b0 Sanitize servercfgfile and lservercfgfile values with sm_cvar (bug 6579). 2017-01-20 15:29:25 -05:00
iNilo
02fcf37088 Use method-map .Style instead of GetMaxPageItems. (sm_msay patch) (#569) 2016-12-12 10:18:59 -05:00
iNilo
ec455394b4 Change sm_msay behavior to use GetMaxPageItems instead of hardcoded values (#568)
* Fix for CS:GO not showing the sm_msay exit button

Fix for CS:GO not showing the sm_msay exit button

![mSayPanel.CurrentKey = 9](http://i.imgur.com/t8079No.png)

![mSayPanel.CurrentKey = 10](http://i.imgur.com/qxgVoUM.png)

* Someone ate the semicolon

Made a new one

* Uses gamedata to determine the exit button

Uses gamedata to determine the exit button

* GetMenuStyle -> GetPanelStyle
2016-12-12 08:57:29 -05:00
ErikMinekus
19db7aef46 Fixed description for CharToLower and CharToUpper (#564) 2016-12-04 09:08:13 -05:00
Wliu
6a4500733d Add spacing to compile.sh (#53) 2016-10-24 14:50:24 +01:00
Luki
482a2f2eb5 Add AutoExecConfig native call to basevotes.sp (#535) 2016-10-14 13:17:23 -07:00
Luki
e74b5807a9 Add AutoExecConfig native call to basevotes.sp (#534)
Basevotes convars are missing from sourcemod.cfg and there is no config file for this, so I added AutoExecConfig.
2016-10-14 13:16:45 -07:00
Nicholas Hastings
72ddd865d1 Add note about uninitialized data in ArrayList.Resize / ResizeArray. 2016-10-11 13:45:36 -04:00
»SoD« XeroX
227e324aa9 Fixed wrong return type in UserMessageToBfRead (#546)
Fixed wrong return type in UserMessageToBfRead
2016-10-06 13:55:27 +01:00
Nicholas Hastings
cff585f2a1 Fixed doc on RadToDeg. 2016-10-04 12:42:22 -04:00
Nicholas Hastings
098a693c1a Fixed return doc on CharToLower, CharToUpper. 2016-10-03 19:35:49 -04:00
Asher Baker
47dd2870d9 Merge pull request #476 from alliedmodders/query-format
Implement an auto-escaping Format native for SQL query construction
2016-10-03 16:20:01 +01:00
iNilo
f70a3ea297 Typo in OnRemoveBan documentation (#542)
Fix typo in OnRemoveBan documentation
2016-09-17 17:23:59 +01:00
Ross Bemrose
988d023e89 Fix /nominations returning Plugin_Continue (#532) 2016-07-31 13:16:38 -04:00
David Anderson
adba0560d7 Fix syntax for SourcePawn update. 2016-07-09 12:24:18 -07:00
Nicholas Hastings
cb7eeef014 Remove TFHoliday_SpyVsEngyWar - no longer exists. 2016-07-08 15:44:49 -04:00
Luki
023a3ca056 Change behaviour for mass renaming (#521)
Append number instead of randomizing when renaming multiple players.

Before the change:
sm_rename @all "Random Name" - this would rename everyone but the names would be randomized (random characters and numbers)

After the change:
sm_rename @all "Random Name" - this would rename everyone to: Random Name 1, Random Name 2, Random Name 3 ...  etc.

Description:
sm_rename can only rename 1 player at a time, when you specify a name. If you use this command on multiple players (like sm_rename @bots "A random bot"), their names get randomized(just like when you dont specify a name). So I propose this change, so you can rename multiple people.

PS:The funny thing is that there was a comment in the code about not wanting everyone to have a same name, but sm_rename doesnt a have check for this so you could use sm_rename to rename everyone, one by one, using the same name.
2016-06-20 13:24:36 +01:00
Nicholas Hastings
4eb1e8a4b0 Fix float unary minus operator not functioning properly after PR #510. 2016-06-09 21:36:46 -04:00
ErikMinekus
b9f7f20046 Fixed return doc spacing for GetGameFolderName (#515) 2016-05-31 07:34:54 -04:00
Nicholas Hastings
9b3b2eb23e Fix comment and reduce branching in TF2_IsPlayerInCondition. 2016-05-21 12:55:47 -04:00
Nicholas Hastings
e127a55b0a Clarified func doc for some edict/entity funcs. 2016-05-21 12:53:55 -04:00
ErikMinekus
542bb59978 Update large includes for transitional syntax #2 (#511) 2016-05-21 09:16:49 -04:00
ErikMinekus
f91d659c6f Update large includes for transitional syntax #1 (#510) 2016-05-21 08:52:43 -04:00
ErikMinekus
7451257578 Update small includes for transitional syntax (#509) 2016-05-20 15:56:21 -04:00
Nicholas Hastings
20c9815619 Add support for sending gameevent to specific client. (#505) 2016-05-12 22:15:23 -04:00
ErikMinekus
6d9f46e983 Update fun plugins for transitional syntax (#508) 2016-05-11 10:56:12 -04:00
ErikMinekus
d9fb0ba64e Update base plugins for transitional syntax (#507) 2016-05-11 10:44:58 -04:00
ErikMinekus
e8734ccf28 Update small plugins for transitional syntax (#506) 2016-05-11 09:32:34 -04:00
ErikMinekus
fb2117137e Update basebans and SQL admins plugins for transitional syntax (#484) 2016-04-27 09:34:22 -04:00
Maxim Telezhenko
730a9a4a40 Transitional Syntax for reservedslots.sp (#501) 2016-04-26 23:19:53 -04:00
Nicholas Hastings
40f2512317 Remove support for Source 1 Dota 2. (#496) 2016-04-26 23:18:47 -04:00
FlaminSarge
6dc602ad7c Update TFCond and tf2_stocks enums (#499)
* Update tf2_stocks DmgCustom and TFWeapon defines

* Update tf2 TFCond defines
2016-04-26 23:18:34 -04:00
Nicholas Hastings
ed46ca3328 Add support for retrieving game server Steam Id (bug 6404). (#495) 2016-04-26 23:17:08 -04:00
akowald
283bdad552 Makes sending the change the default behavior with the GameRules_Set* natives. 2016-03-25 00:43:39 -04:00
iNilo
11253eae1c GetClientSerial does not have @error documentation
Native "GetClientSerial" reported: Client index 0 is invalid
2016-02-25 15:06:23 +01: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
Asher Baker
b239430247 Merge pull request #458 from stickz/patch-5
Move repeated code in reserved slots plugin to a helper function
2016-02-15 17:11:39 +00:00
Asher Baker
700ec92a9a Implement an auto-escaping Format native for SQL query construction 2016-02-15 15:05:16 +00:00
Benoist3012
5703c323d6 Update tf2.inc 2016-02-06 15:27:09 +01:00
Benoist3012
40434f54aa Update tf2.inc 2016-02-06 13:35:37 +01:00
Peace-Maker
1c0a5b0420 Change Panel.DrawItem return tag to |int| (bug 6463) 2016-01-22 18:30:32 +01:00
Sean Lewis
52c7ef0f6f Update sourcepawn testing include to new syntax. 2016-01-06 18:35:16 -06:00
Peace-Maker
d3cc797f0f Add missing |bool| return tag to RemoveFromTrie native 2016-01-05 16:52:30 +01:00
Kristian Klausen
4cba1925fd Allow plugins to suppress entity outputs (fix 5515). 2015-12-30 17:51:57 +01:00
Nicholas Hastings
7fbcb81916 Merge pull request #456 from alliedmodders/canbeautobalanced
Add support for hooking CanBeAutobalanced to SDKHooks.
2015-12-29 15:56:24 -05:00
stickz
75484c02a0 Add CheckHiddenSlots() Function 2015-11-27 12:51:38 -05:00
Nicholas Hastings
818e1e4e18 Add support for hooking CanBeAutobalanced to SDKHooks. 2015-11-26 10:35:00 -05:00
Nicholas Hastings
126ce99cd9 Resize clients array in newest NormalSHook prototype to MAXPLAYERS.
The old version of the newer one is left as a third typeset member to not break
compilation for users opting into it on dev branch. Both typeset members with
old array size are however marked as deprecated, since they can be missing
a client.
2015-11-26 09:43:08 -05:00
Nicholas Hastings
0d787e24ce Converted NormalSHook to typeset and added old prototype.
New prototype was added in PR #247
2015-11-25 17:25:35 -05:00
Asher Baker
ef147860c2 Fix GetEntSendPropOffs returning 0 for missing props when actual=false
Issue introduced in #439.
2015-11-21 01:46:35 +00:00
Ross Bemrose
c8caf7c860 Update FindMap testsuite plugin.
Update GetMapDisplayNAme to use platform separator on CSGO
2015-11-06 02:38:59 -05:00
Asher Baker
c6323512ef Deprecate FindSendPropOffs and FindDataMapOffs, add HasEntProp. 2015-11-04 20:26:55 +00:00
David Anderson
cb3f6df111 Require that no plugin code be live when any plugin unloads. 2015-10-31 19:38:30 -07:00
Asher Baker
4346e963e5 Correct spelling in API documentation. 2015-10-30 12:26:34 +00:00
David Anderson
d0dda098a2 Merge pull request #429 from powerlord/sqltxn-dbresultset
Allow SQLTxnSuccess to use DBResultSet[] in addition to Handle[]
2015-10-22 23:40:28 -07:00
Nicholas Hastings
366c3c0e16 Merge pull request #425 from WildCard65/WildCard65-FixedDBI.inc
Fixed DBResultSet.IsFieldNull
2015-10-13 15:12:18 -04:00
Ross Bemrose
a4b45aea9b Allow SQLTxnSuccess to use DBResultSet[] in addition to Handle[] 2015-10-13 14:50:59 -04:00
Nicholas Hastings
fa65b62a04 Merge pull request #428 from FlaminSarge/tf_mannpower_conds
Update TFCond enum
2015-10-10 14:15:48 -04:00
FlaminSarge
e585e34670 Update TFCond enum 2015-10-10 02:27:08 -07:00
Ross Bemrose
f4adf33b4e Renumber holidays
Add CommunityUpdate holiday
2015-10-07 09:40:06 -04:00
WildCard65
8627fe1fa8 Fixed DBResultSet.IsFieldNull 2015-09-30 08:38:14 -04:00
Nicholas Hastings
c982cc9991 Merge pull request #354 from powerlord/findmap-plugins
GetMapDisplayName and associated core plugin changes.
2015-09-17 11:17:40 -04:00
Ruben Gonzalez
6aa776eab7 Add comments to VIP RoundEnd reasons. Fix typo. 2015-09-16 19:21:21 -04:00
Ruben Gonzalez
c86a6abdc5 Add shim for TerminateRound for CS:GO 2015-09-16 19:03:40 -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
Kyle Sanderson
274e7bd329 Add FileTransfer Hooks to SDKTools (r=Drifter). 2015-09-12 13:01:33 -07:00
Kyle Sanderson
f59df243ea Change FindMap to take a const char* for searching instead of char*. 2015-09-10 11:47:46 -07:00
Kyle Sanderson
d85568b54b Merge pull request #321 from Bara20/getentityrendercolor
Add GetEntityRenderColor stock.
2015-09-08 16:22:16 -07:00
Sebastian K
e030bb4451 Add define included 2015-08-19 20:27:33 +02:00
David Anderson
246c32a202 Update SourcePawn and AMTL. 2015-08-13 22:08:47 -07:00
David Anderson
bcfef75c5d Update regex and datapack includes to not use binding syntax. 2015-08-12 11:52:57 -07:00
Ryan Stecker
86b04e36b5 Clarify the Get/SetPackPosition documentation. 2015-07-20 15:03:57 -05:00
Ryan Stecker
33d13ff81c Hide datapack positions behind an opaque handle. 2015-07-20 15:03:04 -05:00
Nicholas Hastings
e7aa159896 Clarify doc regarding KV handle. 2015-07-12 19:21:28 -04:00
Nicholas Hastings
c85cc5cbf7 Add support for listening to, blocking, changing, and faking ClientCommandKeyValues. 2015-07-12 13:14:46 -04:00
Nicholas Hastings
e0a83ff7b2 Add support for setting string_t values with SetEntPropString.
Adds new AllowPooledString func to CHalfLife2 to allocate a string in the game's string pool.
Also fixes SetEntPropString using incorrect offset for nested sendprops.
2015-07-02 14:47:31 -04:00
Nicholas Hastings
60ac7e23d0 Updated FindMap function doc. 2015-06-27 20:04:20 -04:00
Nicholas Hastings
f107ff9cd2 Expose FindMap/ResolveFuzzyMapName to plugins. 2015-06-27 13:10:47 -04:00
Nicholas Hastings
d0574dbe28 Merge pull request #226 from powerlord/mapchooser-updates
More New API changes for MapChooser, Nominations, RockTheVote, RandomCycle, and NextMap.
2015-06-12 14:58:12 -04:00
Nicholas Hastings
13ecd11543 Merge pull request #344 from alliedmodders/update-convar-flags
Update ConVar flags in console.inc.
2015-06-07 11:18:27 -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
74802ce96e Minor indent fix. 2015-06-04 17:07:25 -04:00
Nicholas Hastings
952ee53383 Converted back to defines. Added deprecation notices on FCVAR_PLUGIN and FCVAR_LAUNCHERONLY. 2015-06-04 06:48:01 -04:00
Nicholas Hastings
1804dce9d9 More small convar flag inc changes:
* Re-added FCVAR_PLUGIN (shimmed to 0) and FCVAR_LAUNCHER with deprecation notes.
* Changed defines to const ints.
* Updated comments to use our newer, single-line comment style for cleanliness.
2015-06-03 23:38:31 -04:00
Nicholas Hastings
4231adaedf Update ConVar flags in console.inc.
The existing list was from the original engine, not even being accurate for EP1.
Flags that were never used and have since been removed from headers were removed.
Flags that were removed, but were used at one time co-exist with new flags that took over their value where applicable.
Flags that only exist on some engine versions are noted as such in the comment.
2015-06-03 23:06:26 -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
Nicholas Hastings
9f8a40f482 Merge pull request #337 from alliedmodders/earlier-maxclients
Populate MaxClients before OnPluginStart is called.
2015-05-20 06:48:08 -04:00
Nicholas Hastings
fc2fe79fe7 Fix regression in admin-sql-threaded when porting to transitional syntax. 2015-05-18 10:15:17 -04:00
Nicholas Hastings
cb4b710885 Removed comment regarding MaxClients not being available in OnPluginStart. 2015-05-18 09:11:57 -04:00
Nicholas Hastings
fda0978225 Merge pull request #338 from alliedmodders/nuke-address-minvalid
Remove Address_MinimumValid entry from sp incs
2015-05-12 13:05:31 -04:00
Nicholas Hastings
51344262c6 Merge pull request #333 from TheMadSword/IncreasedPrintToBufferSize
Increased PrintToChat, PrintCenter & PrintHint w/ "all" version, buffer sizes from 192 to 254.
2015-05-12 09:23:25 -04:00
Nicholas Hastings
5574acda3d Remove Address_MinimumValid entry from sp incs
We have this defined in core for error checking, but it's useless in sp since unsigned comparisons are not supported.
2015-05-12 06:35:48 -04:00
TheMadSword
6686badc93 Increased PrintHint and PrintCenter buffer 2015-05-09 09:22:07 -04:00
TheMadSword
f57dbeb60f Increased PrintToChat & PrintToChatAll buffer size from 192 to 254; works in CSS/CSGO; dunno for the rest 2015-05-07 09:38:25 -04:00
Nicholas Hastings
909598920b Disable nextmap on Black Mesa for now. (Doesn't ship with mapcycle.txt). 2015-05-06 22:01:57 -04:00
Nicholas Hastings
64f9aedebc Add basic support for Black Mesa.
(Basically a copy of SDK 2013's support, but against BMS SDK).
2015-05-06 21:12:13 -04:00
Bara
1748a411e1 Added GetEntityRenderColor 2015-04-04 01:38:30 +02:00
Kyle Sanderson
7a8bf78f39 Merge pull request #229 from powerlord/menuactions_all_warning_fix
Stop MENU_ACTIONS_ALL from tossing warnings with #pragma newdecls required
2015-04-01 19:39:52 -07:00
Nicholas Hastings
7268987461 Merge pull request #301 from alliedmodders/get-team-entity
Add GetTeamEntity native to SDKTools.
2015-04-01 22:30:18 -04:00
Nicholas Hastings
91302da050 Merge pull request #313 from alliedmodders/set-client-name
Add SetClientName native.
2015-04-01 22:29:44 -04:00
Ruben Gonzalez
35e4374e2e Fix not being able to block CS_OnCSWeaponDrop and clarify include file. 2015-03-27 19:54:42 -04:00
Nicholas Hastings
53f9bb0402 Add missing SetClientName description in function doc. 2015-03-22 18:56:02 -04:00
Nicholas Hastings
e62654acba Change sm_rename to use new SetClientName native. 2015-03-22 12:15:30 -07:00
Nicholas Hastings
7d795b523e Add SetClientName native. 2015-03-22 12:15:08 -07:00
Nicholas Hastings
ae8efdddcb Add GetTeamEntity native to SDKTools. 2015-03-10 07:27:43 -07:00
David Anderson
72475d6770 Merge pull request #295 from DoctorMcKay/fix-doc
Moved note about releasing resources from OnPluginStart to OnPluginEnd
2015-03-08 00:10:13 -08:00
WildCard65
a730cfe9b5 Fixed regex.inc 2015-03-07 08:07:11 -05:00
Alexander Corn
c9b6b7b212 Moved note about releasing resources from OnPluginStart to OnPluginEnd 2015-03-06 15:25:39 -05:00
Nicholas Hastings
d72a9150a1 Merge pull request #294 from alliedmodders/explicit-ret-types
Add explicit return types to forwards missing them (r=dvander).
2015-03-06 15:19:37 -05:00
Nicholas Hastings
bfaedba9ed Merge pull request #287 from peace-maker/tempent_range
Add TE_SendToAllInRange (r=psychonic).
2015-03-06 15:19:24 -05:00
Nicholas Hastings
adbdcd6b1d Add explicit return types to forwards missing them. 2015-03-06 10:18:09 -08:00
David Anderson
7c775aee2e Merge pull request #288 from klausenbusk/patch-1
Updated KillTimer documentation to reflect "Invalid handles" = runtime error.
2015-03-06 01:52:32 -08:00
InstantMuffin
98cbef547a Update functions.inc 2015-03-05 21:03:46 +01:00
InstantMuffin
3f2ad5ccb0 Documentation oddities for Call_PushStringEx
See changes for details, should be obvious. What also strikes me as odd is that there is only one cpflag atm. Has this always been the case? Will there be more in the future? Or why is this designed to be a flagstring?
2015-03-05 20:47:05 +01:00
Nicholas Hastings
6f8ffd55a7 Merge pull request #263 from alliedmodders/admins-trans
Update admins.inc with methodmaps, newdecls (r=dvander, asherkin).
2015-03-05 14:32:15 -05:00
Nicholas Hastings
c39565ddb1 Fix spacing. 2015-03-05 10:56:54 -08:00
Nicholas Hastings
70390ff1f7 Purge Purge. 2015-03-05 10:56:36 -08:00
Kristian Klausen
924b7621ac Updated KillTimer documentation.. 2015-03-05 17:15:54 +01:00
Peace-Maker
b53947ccc3 Add TE_SendToAllInRange
Add helper stock to mimic PVS and PAS recipient filters for tempents in
the SDK.
2015-03-03 17:22:01 +01:00
Asher Baker
6572989993 Merge pull request #213 from splewis/find-array-nonzero-blocks
Add block parameter to FindValueInArray native.
2015-02-24 22:37:49 +00:00
Wliu
20b5f76572 🎨 Change to TF2_ChangeClientTeam 2015-02-22 20:20:45 -05:00
Wliu
f772c88eed Whoops. 2015-02-20 21:26:34 -05:00