Commit Graph

6249 Commits

Author SHA1 Message Date
FlaminSarge
c3b25e54f8 Add convenience logic for "offset" to Address definitions in GameConf ()
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
Ruben Gonzalez
b6a2f72e95
Merge branch 'master' into csgo-hashmap 2017-10-27 18:57:28 -04:00
Ruben Gonzalez
6085afbaae Fix comment info 2017-10-27 18:55:02 -04:00
Kyle Sanderson
2658636377 Fix unsigned compiler warning. 2017-10-27 18:53:49 -04:00
Asher Baker
4bab834716
Merge pull request 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 ()
* Update TF2_IsPlayerInCondition

* Update conditions too
2017-10-27 07:02:38 -04:00
Scott Ehlert
27b69559a3 Really fix macOS build. 2017-10-26 20:38:25 -05:00
Scott Ehlert
373fb4f776 Update amtl to fix macOS build. 2017-10-26 19:36:30 -05:00
David Anderson
8c88614c2e Merge pull request from Headline22/dvander-rednavd
Pin sourcepawn submodule to 1.9-dev
2017-10-24 20:09:00 -07:00
Michael Flaherty
858a0ba17d Pin sourcepawn submodule to 1.9-dev 2017-10-24 19:16:14 -07:00
Nicholas Hastings
5cf6a0c875 Fix MakeBleed native call (add damage custom param).. 2017-10-22 10:48:27 -04:00
Benoist3012
a5c213ae7d make bleed linux sig fix 2017-10-22 10:48:27 -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
Nicholas Hastings
ab303e7394 Gamedata for 2017-10-20 TF2 update. 2017-10-19 23:59:14 -04:00
Michael Flaherty
4f54df65e9 Switch C header & Fix warnings () 2017-10-15 10:32:01 +01:00
Kyle Sanderson
36f9a8ed7a NPOTB: Remove unsupported packages line from Travis-CI. 2017-10-10 12:00:11 -07:00
Kyle Sanderson
2ccaa376ba NPOTB: Enable better coverage testing with toolchains (Travis-CI). ()
NPOTB: Enable better coverage testing with toolchains (Travis-CI).
2017-10-09 18:34:01 -07:00
Kyle Sanderson
65bf85fcbe (Re-)Add support for gcc and clang3.9, 4.0, and 5.0. 2017-10-09 16:53:19 -07:00
Kyle Sanderson
30f061e818 Fix unsigned comparison warnings (-Werror + GCC5) from CS:GO fixes. 2017-10-09 13:00:52 -07:00
Kyle Sanderson
22e3d2d198 Fix GCC build with SourcePawn. 2017-10-09 11:51:49 -07:00
Ruben Gonzalez
687db96b38 Make CS:GO specific natives exist only on CS:GO 2017-10-04 18:20:06 -04:00
Ruben Gonzalez
588e88c7ee Fix build error. 2017-10-04 14:42:07 -04:00
Scott Ehlert
65a8f3cbf8 Trigger build. 2017-10-03 03:24:44 -05:00
Scott Ehlert
82e6d00cea Fix build. 2017-10-02 07:40:58 -05:00
Scott Ehlert
bbdecceb4b Switch to AMBuild 2.1 API. () 2017-10-02 07:18:57 -05:00
Andrew
f67e4ce610 Making rename's LogAction message consistent... ()
with the other plugin's messages.
2017-09-26 20:22:38 -04:00
Andrew
f289799c57 Making gravity's LogAction message consistent... ()
with the other plugin's messages.
2017-09-26 20:22:30 -04:00
Andrew
aac279322b Making blind's LogAction message consistent... ()
with the other plugin's messages.
2017-09-26 20:22:02 -04:00
Kyle Sanderson
5d234bb9d6 Fix OnPlayerRunCmd crashing with invalid CUserCmd ptr. () 2017-09-23 23:27:32 -07:00
peace-maker
7e898ee530 Fix core config values not being cached ()
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
Andrew
54565c92f7 Add target arg to LogAction in basechat sm_psay. () 2017-09-23 10:45:41 -07:00
Asher Baker
4e996a116d Allow seeking to end of datapack () 2017-09-19 23:27:35 +01: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
thewavelength
79ba2835f6 Fix build when product.version is mangled ()
Strip line breaks when reading product.version, as Git can mangle the line breaks if autocrlf is configured, resulting in `SM_BUILD_TAG` getting defined with a linebreak.
2017-09-10 01:17:35 +01:00
Ruben Gonzalez
3d461ecea1 Add support for CreateIitemEntityByName for CS:GO 2017-09-08 08:37:28 -04:00
Ruben Gonzalez
b4d34ef062 Merge pull request from alliedmodders/csgo-weaponpricefix
Fix CS_GetWeaponPrice returning incorrect weapon prices.
2017-09-04 08:49:33 -04:00
Ruben Gonzalez
a341a0e85c Use implemented function to get weapon name. 2017-09-03 19:31:23 -04:00
Ruben Gonzalez
d8f0484327 Make IsValidWeaponID check weapon info on CS:S 2017-09-03 19:30:35 -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
Ruben Gonzalez
0e7a3b0173 Use keyvalue to get weapon price, change void * to appropriate class names. 2017-08-28 10:17:12 -04: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