Ruben Gonzalez
40356fc9db
Address issue #737
2017-12-30 14:08:56 -05:00
Ruben Gonzalez
c87afde1bd
Add optional extensions not found to sm exts list in a seperate list.
2017-11-30 14:21:19 -05:00
Ruben Gonzalez
51cea0e04e
Only show extensions that failed to load if the extension is required.
2017-11-30 12:57:12 -05: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
Nicholas Hastings
95afe72307
Separate out DOI build. ( #718 )
2017-11-03 15:45:16 -04:00
Asher Baker
f156d48f45
Include missing ctype header for macOS build
2017-10-28 12:51:55 +01:00
Michael Flaherty
404e96ad45
Add KeyValues.ExportToString ( #706 )
2017-10-28 12:47:00 +01:00
Michael Flaherty
90ddc16a4b
Lowercase windows/mac paths to avoid plugin duplicate loadings (Bug 6491) ( #709 )
2017-10-28 12:44:25 +01:00
FlaminSarge
c3b25e54f8
Add convenience logic for "offset" to Address definitions in GameConf ( #580 )
...
Allows for the last "read" offset for an Address to instead be "offset", which doesn't deref the addr pointer after applying the offset
Shortens the necessary coding to get a particular Address inside a function (old: store offset in a separate GameConf Offsets entry, apply the offset to the Address in SP)
2017-10-28 12:11:32 +01: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
Michael Flaherty
4f54df65e9
Switch C header & Fix warnings ( #702 )
2017-10-15 10:32:01 +01:00
Scott Ehlert
bbdecceb4b
Switch to AMBuild 2.1 API. ( #694 )
2017-10-02 07:18:57 -05:00
peace-maker
7e898ee530
Fix core config values not being cached ( #673 )
...
Valid core config options aren't cached to be retrieved using `GetCoreConfigValue` after they've been loaded from core.cfg or set through the `sm config` root console menu.
E.g. `sm config ServerLang` would return `[SM] No such config option "ServerLang" exists.` all the time.
Stop notifying other listeners if the config key was consumed, but don't skip adding it to the cache.
Also fix `FollowCSGOServerGuidelines` always showing as unhandled command when being changed through `sm config FollowCSGOServerGuidelines yes`.
2017-09-23 17:24:39 -07:00
Asher Baker
4e996a116d
Allow seeking to end of datapack ( #687 )
2017-09-19 23:27:35 +01:00
Peace-Maker
7eef3948b1
Don't break backwards compatibility with unmanaged forwards
...
Instead of adding new functions to `IForward`, we just allow NULL to be passed to `PushArray` and `PushString`.
2017-08-25 23:23:50 +02:00
Peace-Maker
e609a33e6d
Cleanup CForward::Execute using a helper function
...
Flatten out the nesting a bit.
2017-08-25 23:23:37 +02: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
Michael
9af507a322
Remove replicated flag from sourcemod_version ( #667 )
2017-08-22 20:53:25 +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
Peace-Maker
60320cd845
Cleanup CForward::Execute using a helper function
...
Flatten out the nesting a bit.
2017-07-22 23:08:31 +02:00
Nicholas Hastings
fd87cb6b23
Clear cached IClient ptr on disconnect ( Fixes #637 ).
2017-07-08 08:25:23 -04:00
Nicholas Hastings
fdac8a1677
Fix KeyValues.SetUInt64 truncating value ( #635 ).
2017-07-06 13:11:01 -04:00
Arthurdead
44c744b8fd
Add native to get gpGlobals->frametime ( #629 )
2017-06-26 11:18:12 +01:00
Nicholas Hastings
7f71f43c2e
Another oops-fix for SDK 2013 mods.
...
Thanks @Ne3tCode
2017-06-24 08:49:36 -04:00
Nicholas Hastings
16d7e39b57
Oops. Fix non-bot IClient lookups for older SDK 2013 mods.
2017-06-23 14:43:39 -04:00
Nicholas Hastings
9a6900a0ba
Don't let bots bypass the kick queue. It's not always safe.
2017-06-23 14:43:39 -04:00
Nicholas Hastings
e762c2ee56
Add support for IClient lookups on SDK 2013 mods with new enough engine.
2017-06-23 14:43:39 -04:00
Nicholas Hastings
c31eaa01a3
Cache player IClient pointer on connect.
2017-06-23 14:43:39 -04:00
Nicholas Hastings
338fdb37f6
Switch to C++11 class initializers for CPlayer.
2017-06-23 14:43:39 -04:00
Nicholas Hastings
2acf5f85cd
Fix ICommandLine lookup on Linux for Insurgency and Day of Infamy.
2017-05-28 08:29:38 -04: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
Nicholas Hastings
6a77e04a8e
Fix default value always being when calling ParmValue(string,string).
2017-04-22 21:28:44 -04:00
Kyle Sanderson
e987cf6bfc
Change CHalfLife2::GetMapDisplayName to always check for string substitutions. ( #596 )
2017-04-03 20:28:10 -04:00
Nicholas Hastings
1135f9024a
Fix error when configuring for csgo SDK build on VS 2017.
2017-03-11 09:28:24 -05:00
Nicholas Hastings
9924a28acf
Fix AllowClLanguageVar setting being ignored in CS:GO.
2017-03-05 17:08:25 -05:00
Ross Bemrose
8ad5862461
Make CS:GO recognize both / and \ for GetMapDisplayName ( #592 )
2017-03-04 08:59:25 -05: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
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
peace-maker
0743b757f6
Fix regression with GetEntPropEnt always returning -1 ( #584 )
...
Regression in #583
The `CBaseHandle *` was compared to a `IHandleEntity **` always failing
instead of comparing the actual base handles.
Fixes a small typo in MatchTypeDescAsInteger too, where a FIELD_CUSTOM
could fall through badly.
2017-02-09 07:43:15 -05: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
113a4a55c6
Fix incorrect bit size given for vectors with FindDataMapInfo.
2017-02-07 07:52:00 -05:00
peace-maker
9e27a867dd
Fix typo in menu manager drawing no spacer ( #581 )
...
The "Back" slot was hidden even if the page had a "Next" button. Draw
the spacer correctly!
2017-02-04 08:16:27 -05:00
peace-maker
ea8fdd8fbb
Fix crash when a database transaction fails (bug 6531) ( #577 )
...
If one of the queries fails in a transaction, the DBI system would only allocate an array of the size of the amount of all the successful queries before the failed one. It writes data for all the queries though effectively writing past the array bounds leading to heap corruption.
Create the right sized array!
2017-01-22 22:27:31 -08:00
Nicholas Hastings
ad3588d0aa
Use newer MM:S api for Ep1/Original engine. ( #548 )
...
* Use newer MM:S api for Ep1/Original engine.
* Remove doubled FILENAME_1_6_EP1 define.
2017-01-11 21:25:00 -05:00
Nicholas Hastings
d9312799c3
Allow direct event FireToClient if broadcast disabled.
...
Event.FireToClient should not care whether or not broadcasting
is enabled for the event since we're already intentionally not
broadcasting.
2017-01-03 20:31:40 -05:00