Commit Graph

763 Commits

Author SHA1 Message Date
BotoX
6f21138489
menusys: add MenuShufflePerClient native ()
* Implement per-client randomized menus with MenuShufflePerClient native.

* Add MenuSetClientMapping native.

* fix remaining issues

* fix build issues from rebase

* Update MenuStyle_Base.cpp

Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com>
2020-08-06 20:31:00 -07:00
BotoX
7bab9cc344
sdkhooks: add OnEntitySpawned fwd. ()
* Add OnEntitySpawned to SDKHooks.

* nitpicking

* Add CapabilityProvider SDKHook_OnEntitySpawned

* (unrelated) nits

* nit relocation

* unqualified relocation - my mistake.

Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com>
2020-08-06 20:01:07 -07:00
Kruzya
bb25b03884
Fix parameter name in SQL_SetCharset documentation () 2020-08-03 11:22:30 +01:00
Headline
5fa25e70ad
trie: implement clone() method ()
* Add Clone() for StringMap

* Fix for std::string addition

* trie: broken return key.

* clonetrie: correct handle leakage.

Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com>
2020-07-14 20:11:23 -07:00
Impact
a065773b6d
Update OnLibraryAdded and OnLibraryRemoved docs ()
`OnLibraryAdded` and `OnLibraryRemoved` are called whether or not a optional dependency exists
2020-07-09 10:09:59 +01:00
Miikka Ylätalo
4e0ae0cb5e
Change int[] to any[] for data r/w functions () 2020-07-09 10:09:13 +01:00
Ҝℴţأķ
611bad4036
ArrayStack: add Clone method ()
* Provide ArrayStack.Clone method

* Clean definition for old syntax.

Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com>
2020-07-08 20:59:17 -07:00
nosoop
69ae224938
testing: Add stock AssertStrEq ()
* Add AssertStrEq to testing include

* Remove unnecessary last param
2020-07-08 19:18:39 -07:00
Nicholas Hastings
b364bf8b06
Merge pull request from nosoop/sf11
TF2: Add new condition from Scream Fortress XI
2020-06-29 09:01:59 -04:00
42
3164af7e34
Fix TFResourceNames using array based enum struct () 2020-06-28 01:34:59 +00:00
Deathreus
13621a1274
Add an array operations to CDataPack () 2020-05-08 15:23:48 -07:00
Vladimir
3696a4cd9e
Correct parameter detail in OnEntityDestroyed () 2020-05-08 15:08:34 -07:00
Scags
44615b7ade
Prevent uncessary re-tagging for address functions () 2020-05-08 14:54:01 -07:00
42
881cbcd45d
Add new TF2 Holiday Soldier () 2020-05-06 23:00:24 +00:00
Loïc
d42c304a55
Bump version for non-VCS builds () 2020-04-27 15:50:03 +01:00
thewavelength
25462071df
Make GetStringTableData native binary-safe ()
Replace StringToLocalUTF8 with LocalToString and memcpy to make this binary compatible and update the documentation.
2020-04-14 17:51:39 +01:00
Headline
604942f0e7
Add helper stocks for getting numerical command arguments () 2020-03-04 13:17:10 -08:00
Arthurdead
bcd5e40842
sdktools: expose additional tr sdk capabilities ()
* add the rest of the trace enumerate funcs

* fix ident
2020-02-26 16:19:55 -08:00
Arron Vinyard
a1ed47be87
IsServerProcessing: improve grammar / present|correctness. ()
Wording of comment was a bit off.
2020-02-26 15:54:19 -08:00
Ҝờţأķ
ded3867605
regex: add/document missing offset param ()
* Regex Little Changes

* Prevented to triple and double call `strlen`.
* More informative message on `if (offset >= len)`.
* Add missing parametr in navite `MatchRegex`.

* Regex Little Changes v2

* Using `strdup` instead `strcpy`.
* Replaced NULL to nullptr.
* Removed note about MatchOffset.

Co-Authored-By: Headline <headline@users.noreply.github.com>

* Removed padding.

Co-Authored-By: Headline <headline@users.noreply.github.com>

* Removed more padding.

Co-Authored-By: Headline <headline@users.noreply.github.com>

Co-authored-by: Headline <michaelwflaherty@me.com>
2020-02-26 15:52:04 -08:00
David Anderson
2b6833f65d
Merge pull request from Scags/teleport-defaulted
Add default values to TeleportEntity
2020-02-26 13:17:45 -08:00
Bara
1534f8749b
NPOTB: Clarify forward declarations in sdhooks.inc () 2020-02-08 17:35:40 -08:00
proobs
4ea85a9291 Add new CSWeaponID knives () 2020-02-08 17:28:38 -08:00
Deathreus
48ed38a8c1
Fix documentation in some DataPack methods () 2020-02-06 22:05:32 -08:00
naydef
fba71ed24d
Deprecate IsSoundPrecached ()
Fix 
2020-02-06 10:33:44 -08:00
Scags
625650c160
Add default values to TeleportEntity 2020-02-01 02:53:59 -06:00
Impact
9f4c6c61d9 Add comment about common.phrases to FindTarget ()
* Add note about common.phrases

* Update helpers.inc

Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com>
2020-01-14 15:00:27 -08:00
Erik Minekus
664b352559 Fix Documentation Typo in functions.inc () 2020-01-12 12:23:08 -08:00
Einyux
2a9deb6a64 Add missing const to origin parameters () 2019-11-13 00:33:00 -08:00
42
351e406f85 Fix ArrayStack.Pop documentation () 2019-11-13 00:26:36 -08:00
hydrogen-mvm
9e39f18230 Fix OpenFile files.inc example ()
"rb" = binary file for *reading* (not writing, that would be "wb").
2019-11-11 16:24:12 -08:00
Bara
23e1c0b71e Add slot define for healthshot/shield and tablet () 2019-11-04 12:36:17 +00:00
Bara
273f058da9 Add classic knife to CSWeaponID () 2019-10-31 13:50:29 -07:00
Headline
c6f751bb67
Return DBDriver instead of Handle in DBI () 2019-10-31 01:53:50 -07:00
nosoop
06d327e76c Reverted addition of TF_CUSTOM_GENERIC_BOMB 2019-10-16 17:10:57 -07:00
nosoop
2e28b036f8 Add new condition and custom damage type from Scream Fortress XI 2019-10-16 00:13:41 -07:00
Einyux
e02e6bcb4f Add TR_GetHitBoxIndex() native ()
Fixes 
2019-09-17 21:24:36 +01:00
42
207584818f Add RequestFrameCallback optional data param () 2019-09-02 14:00:22 -07:00
RumbleFrog
ab5f00b65b Correct FrameIterator retval regression () 2019-08-26 19:26:51 -07:00
hydrogen-mvm
22635d8d35 Add File.Flush methodmap ()
This allows us to do FileHandle.Flush() instead of FlushFile(FileHandle) and maintain consistency in always using methodmaps for file I/O operations.
2019-07-31 22:18:07 +00:00
hydrogen-mvm
fb9b284bcf Correct malformed Regex documentation () 2019-07-31 10:48:46 -07:00
42
199802150b Update TF2_IgnitePlayer to support setting duration of fire ()
Related to 
2019-07-05 22:37:25 +01:00
Batfoxkid
cf0a49881e TFCond Descriptions ()
This is mainly for API (https://sm.alliedmods.net/new-api/tf2/TFCond) to show description of the condition.
2019-06-01 15:43:06 +01:00
JoinedSenses
527a998740 Fix whitespace regression from () 2019-05-30 20:11:43 -07:00
JoinedSenses
352f078b07 Add Cookie methodmap () 2019-05-30 18:27:14 -07:00
JoinedSenses
4f3c3175e6 Create GlobalForward & PrivateForward methodmaps () 2019-05-29 14:17:42 -07:00
JoinedSenses
81dc80fbd1 Correct Plugin API Documentation Formatting () 2019-05-28 18:38:58 -07:00
Bara
9c55eed549 Add Shield and Bumpmine to cstrike.inc () 2019-05-24 06:03:42 -07:00
JoinedSenses
2e72fc115d Fix malformed documentation indentation in Array.FindValue ()
Modified indention for uniformity
2019-05-09 16:56:17 -07:00
JoinedSenses
26462f2848 Add Sort and SortCustom to ArrayList methodmap () 2019-05-09 18:44:31 +01:00
iNilo
e1648ba8f9 Add missing semicolon to profiler.inc () 2019-05-03 02:11:03 -07:00
404UNF
ae00144e84 Add new custom kill identifier for TF2 () 2019-04-22 22:53:31 +01:00
Playa
59baaf1123 Fix param order in CancelClientMenu documentation () 2019-04-22 20:33:27 +01:00
komashchenko
8031e42bda pb: Add natives to work with 64 bit values ()
* Add natives to work with 64 bit Protobuf values

* Fix linux build

* FIX alignment requirements

* FIX alignment requirements V2

* Remove legacy API

* Inattention
2019-03-04 09:06:43 -08:00
Bara
d105ce778d
Add missing semicolon
Otherwise you'll get this error:
regex.inc(182) : error 001: expected token: ";", but found "<newline>"

[Example with latest sourcemod (1.10.6383) version](https://travis-ci.org/Bara/TroubleinTerroristTown/jobs/495529570#L640)
2019-02-19 17:21:17 +01:00
Ross Bemrose
45fb26d282 Change MultiTargetFilter to a typeset that allows ArrayList as its second argument. () 2019-02-03 13:27:26 -08:00
Bara
3e454db2d8 Add snowball to CSWeaponID () 2019-01-05 14:56:07 -05:00
OkyHp
b88e0d7875 Add getter for Event.BroadcastDisabled ()
In a pre-hook, the hook param is not reliable if multiple plugins have hooked the same event.
2019-01-03 19:42:42 +00:00
Nick Hastings
821251b176 Fix BfRead.BytesLeft not being able to be optional. (fixes ). 2019-01-01 15:34:26 -05:00
Deathreus
1b3599c189 Bump non-critical versioning to 1.10 () 2018-12-27 21:02:14 -05:00
Ruben Gonzalez
dd61223c0b Add new CSGO weapon id's/itemdefs. () 2018-12-12 11:35:36 -08:00
peace-maker
1b795a70b0 Add GameData methodmap () 2018-10-11 20:27:56 -07:00
Asher Baker
b5320a4f8a
Add a note about FormatTime platform dependence ()
This has been another constant source of confusion since the C99 ones were added to the strftime documentation we link.

It'd be nice to have a consistent implementation inside SM in the future.
2018-10-11 11:07:07 +01:00
SlidyBat
3add38f665 Add additional TraceRay natives ()
* More TR natives

* Fix small typo

* Fix another typo

* Fix TR_AllSolid description

* Change Disp to Displacement

* Reorder params in TR_GetSurfaceName

* Fix TR_GetSurfaceName

* Another fix for TR_GetSurfaceName -_-

* Change if block to switch

* Make handle first param in TR_GetSurfaceName

* Reorder TR_GetStartPosition params

* Make TranslatePartitionFlags static

* Change tabs used for formatting to spaces

* Change inline comment style to be consistent with rest of file
2018-10-07 14:15:54 -07:00
Michael Flaherty
990a02dbe0
Fix grammar error in File docs () 2018-09-22 12:27:05 -07:00
Ruben Gonzalez
75193e9ee9
Add new weapons to CSWeaponID enum. () 2018-09-12 10:13:39 -04:00
Maxim Telezhenko
398522712e Add missing MarkNativeAsOptional for SetAuthIdCookie native () 2018-09-01 00:19:48 +01:00
SlidyBat
144fb907f1 Add new Traceray natives () 2018-08-13 23:02:12 +01:00
peace-maker
7e3b1c395b Mark new methodmap natives as optional ()
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 ()
Allow client index 0, too. (Console)
2018-07-31 19:19:18 -07:00
Michael Flaherty
7068c3e865
Fix LogStackTrace Anomaly () 2018-07-31 04:17:36 -07:00
hydrogen-mvm
d14c94c353 Add missing return value documentation () 2018-07-26 18:33:22 -07:00
Michael Flaherty
11abe77eed
Allow any returns in native callbacks () 2018-07-25 21:46:44 -07:00
Michael Flaherty
32d12ea4a6 Preserve old DataPack behavior when overwriting data ()
* 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
Michael Flaherty
28f1ea82b6 Add base CommandIterator implementation ()
* 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 ()
* Changed "entiy" to "entity" in IsEntNetworkable

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

* Fix message
2018-07-08 11:06:06 -04:00
Michael Flaherty
c09b32010f Add Profiler methodmap ()
* 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" ()
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. ()
Fix CompileRegex not actually setting a valid error code.
2018-05-28 13:59:43 -04:00
RumbleFrog
7f552e4d75 Deprecate GetMaxClients () 2018-05-23 12:58:36 +01:00
404
7e080d259e Update helpers.inc ()
Update GetClientAuthString to GetClientAuthId
2018-04-28 11:18:12 +01:00
Hexah
6c7e29cbdb Documentation fixes from methodmap implementation ()
* 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 () 2018-02-20 18:38:17 +00:00
Ruben Gonzalez
5ac3390656
Add new regex natives. ()
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 () 2018-02-02 23:30:12 +00:00
StrangeThings
1293d15f72 Remove the @brief tag in sdktools_hooks.inc () 2018-02-02 23:28:20 +00:00
Michael Flaherty
12fca79006 Prevent use of primitive float operation functions ()
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
JRiipinen
8c61fdc99d Add more TF2 specific DMG_ definitions ()
* 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) () 2018-01-07 13:52:36 -05:00
Michael Flaherty
64ab3a08b5 Add missing const to usermessage function parameters () 2017-12-14 11:27:07 +00:00
Michael Flaherty
a5583882f4 fix bad english 🍋 () 2017-12-03 11:37:50 +00:00
Michael Flaherty
d685f30847 Add Translation Natives ()
* Add Translation Natives

See 

* 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 ().
* 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 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. () 2017-11-03 15:45:16 -04:00
Michael Flaherty
404e96ad45 Add KeyValues.ExportToString () 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