Commit Graph
100 Commits
Author SHA1 Message Date
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 b4011f3e8b Update Insurgency gamedata. 2015-06-12 05:24:54 -07:00
Nicholas Hastings c0d4dfa6ed Update IsMapValid for today's TF2 update. 2015-06-11 17:48:58 -04:00
Nicholas Hastings a4821f9389 Merge pull request #346 from alliedmodders/ctype-fixes
Fix some ctype misuses (bug 6377).
2015-06-10 19:29:35 -04:00
Nicholas Hastings 14e0a9a487 Fix some ctype misuses (bug 6377).
isalpha, isdigit, isupper, and islower do not return 0/1. They return 0 or anything-else. Since the bool tag in pawn only supports exactly 0 and 1, we need to return 1 for all truthy returns in the natives that wrap these.
2015-06-10 14:40:48 -04:00
Nicholas Hastings b17c7adcd5 Add gamedata for Modular Combat. 2015-06-10 10:02:34 -04:00
Nicholas Hastings a70722eb25 Update FoF gamedata. 2015-06-09 13:01:50 -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
Nicholas Hastings 850a73d718 Merge pull request #343 from alliedmodders/fix-sizes
Fix some buffer sizes in shipped plugins.
2015-06-04 18:27:52 -04: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 974e18292a Update FoF gamedata. 2015-06-02 17:59:13 -04:00
Nicholas Hastings 3291e3a38f Fix crash on Black Mesa when an entity is deleted and SDK Hooks is loaded. 2015-05-31 23:21:43 -04:00
Nicholas Hastings 4db57b84b5 Fix sm_trigger_show default in shipped sourcemod.cfg match default in basetriggers. 2015-05-30 07:52:31 -04:00
Nicholas Hastings a88070d063 Add GetDataMap gamedata for Black Mesa. 2015-05-25 18:20:38 -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 d4babee202 Merge pull request #339 from alliedmodders/mapcycle-finding
Enable finding mapcycle in cfg dir on sdk2013 and bms.
2015-05-20 06:47:59 -04:00
Nicholas Hastings 7cfadb4584 Merge pull request #342 from alliedmodders/bug-6365
Fix regression in admin-sql-threaded when porting to transitional syntax (bug 6365).
2015-05-18 13:12:12 -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 2abb8e6335 Remove engine check for whether or not to search alt mapcycle paths. 2015-05-18 09:16:36 -04:00
Nicholas Hastings cb4b710885 Removed comment regarding MaxClients not being available in OnPluginStart. 2015-05-18 09:11:57 -04:00
Nicholas Hastings 11bf32f6f1 Enable finding mapcycle in cfg dir on sdk2013 and bms. 2015-05-13 06:49:37 -07:00
Nicholas Hastings 55dee2d847 Trigger build for hl2sdk-bms update. 2015-05-12 21:03:36 -04:00
Nicholas Hastings ae78acf97a Remove harmless remnant of reverted change. 2015-05-12 13:39:06 -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 227323c96d Merge pull request #336 from alliedmodders/link-libm
Link libm in all bin, not just engine-specific ones.
2015-05-12 11:54:52 -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 4152e05dcd Fix indentation. 2015-05-12 06:21:32 -07: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
Nicholas Hastings 75a93314a2 Rename PlayerManager::m_FirstPass to m_bServerActivated for clarity. 2015-05-11 20:42:26 -04:00
Nicholas Hastings 91b2ab8be1 Fixed some badness with the player initialization moving. 2015-05-11 20:29:00 -04:00
Nicholas Hastings 8fc689c89a Populate MaxClients before OnPluginStart is called. 2015-05-11 19:31:22 -04:00
Nicholas Hastings b3efc36487 Link libm in all bin, not just engine-specific ones.
This fixes the "undefined symbol: floorf" error that some people were getting in sourcemod.logic.so.
2015-05-11 18:59:12 -04:00
Nicholas Hastings 71cb002bc1 Merge branch 'master' of https://github.com/alliedmodders/sourcemod 2015-05-11 06:54:55 -04:00
Nicholas Hastings 78dcb8a0f3 Add gamedata file missing in PackageScript. 2015-05-11 06:52:56 -04:00
Nicholas Hastings 9d6cbfe0cc Remove unused gamedata. 2015-05-11 06:52:21 -04:00
Nicholas Hastings 7ab3d76c9f Merge pull request #331 from alliedmodders/support-bms
Add support for Black Mesa Multiplayer.
2015-05-10 18:44:20 -04:00
Nicholas Hastings 397c45457a Fix spacing in PackageScript. 2015-05-06 22:18:43 -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 dac3d1c988 Remove leftover debug code. 2015-05-06 22:01:39 -04:00
Nicholas Hastings 9164730b07 Add gamedata for Black Mesa. 2015-05-06 22:01:29 -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
Nicholas Hastings ffedae66f4 Trigger build for hl2sdk-dota changes. 2015-05-03 15:07:07 -04:00
Nicholas Hastings a480bf0014 Trigger build for hl2sdk-dota changes. 2015-05-03 10:01:00 -04:00
Nicholas Hastings 2432540d6e Merge branch 'set-client-name' 2015-04-17 04:50:13 -07:00
Nicholas Hastings 16eeaf625f Enable the "name %s" command blocking on CS:GO as well. 2015-04-17 06:51:48 -04:00
Nicholas Hastings fee99f3629 Sourcepawn fix. 2015-04-12 18:35:57 -04:00
Nicholas Hastings 35c81365be Update Sourcepawn submodule to get fix for bug 6329.
- Fix bug where complex |this| values could be corrupted while evaluating function arguments. (bug 6329)
2015-04-12 16:52:28 -04:00
Nicholas Hastings 8ff1a9daf3 Merge pull request #322 from alliedmodders/fix-coreconf-order
Fix CoreConfig init to happen after SMGlobalClasses from logic bin are added (r=asherkin).
2015-04-05 10:43:17 -04:00
Nicholas Hastings 6c6ed241d3 Fix CoreConfig init to happen after SMGlobalClasses from logic bin are added.
This fixes OnSourceModConfigChanged not being called for logic classes when
config is first read, matching behavior for core classes. The function is still called
before each class's OnSourceModStartup func.
2015-04-05 10:06:30 -04:00
Nicholas Hastings b84114bc8e Update sourcepawn submodule to version with --gen=vs fix. 2015-04-05 09:32:59 -04: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 ce56680fff Merge pull request #315 from alliedmodders/direxists-empty
Make DirExists("") throw an error.
2015-04-01 22:30:03 -04:00
Nicholas Hastings ea7d5ad8f1 Merge pull request #314 from alliedmodders/tfconds-reducks
Pass a handle instead of entptr to ProcessCondChange for stability.
2015-04-01 22:29:55 -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
Nicholas Hastings d49c72cf8b Fix typo in core AMBuilder file triggering exception when triggering exception. 2015-03-31 17:39:04 -04:00
Nicholas Hastings c11036a7b9 Update TF2 gamedata. 2015-03-31 17:37:44 -04:00
Nicholas Hastings 7b56dd5c8a Fix build. 2015-03-22 19:23:58 -04:00
Nicholas Hastings 53f9bb0402 Add missing SetClientName description in function doc. 2015-03-22 18:56:02 -04:00
Nicholas Hastings 885117fb66 Add hack-fix for CS:S reverting name changes done with SetClientName. 2015-03-22 18:29:11 -04:00
Nicholas Hastings d12d7625aa Remove unused phrase. 2015-03-22 15:36:07 -04:00
Nicholas Hastings 7399991181 Add SetClientName gamedata. 2015-03-22 15:17:31 -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 38817bdd2c Pass a handle instead of entptr to ProcessCondChange for stability. 2015-03-22 06:53:51 -07:00
Nicholas Hastings 660d6201ab Merge pull request #310 from InstantMuffin/patch-2
Fixed missing include in gdc-psyfork/memoryutils.cpp (r=psychonic).
2015-03-15 20:22:47 -04:00
Nicholas Hastings 28870d2ae5 Make OpenDirectory error for empty path match error in DirExists. 2015-03-10 18:58:00 -07:00
Nicholas Hastings cc3b86ea80 Throw an error if DirExists called with empty path. 2015-03-10 18:57:28 -07:00
Nicholas Hastings ae8efdddcb Add GetTeamEntity native to SDKTools. 2015-03-10 07:27:43 -07:00
Nicholas Hastings ea684d5933 Merge pull request #296 from WildCard65/WildCard65-patch-1
Port remainder of regex.inc to transitional syntax (r=psychonic).
2015-03-07 08:09:12 -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
Nicholas Hastings ac4f594063 Trigger build for hl2sdk-dota changes. 2015-03-06 11:25:37 -05:00
Nicholas Hastings 2d53547e03 Merge pull request #289 from alliedmodders/more-ninvoke-killing
Remove references to INativeInvoker.h from extension boilerplate.
2015-03-06 07:37:46 -05: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 96703c247c Remove references to INativeInvoker.h from extension boilerplate. 2015-03-05 10:59:19 -08: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
Nicholas Hastings b43da7b7f0 Fix Mac build. 2015-02-27 04:53:31 -08:00
Nicholas Hastings fdc3c0791e Merge pull request #266 from alliedmodders/tfconds-reducks
Replace frameloop for player condition checks in TF2 ext with sendproxies (r=All of the KyleS).
2015-02-27 04:43:15 -08:00
Nicholas Hastings b8223d1b98 Merge pull request #267 from 50Wliu/tf2_setclientteam
Add TF2_SetClientTeam to provide symmetry to TF2_GetClientTeam (r=psychonic).
2015-02-24 10:23:23 -05:00
Nicholas Hastings 62ed3973b5 Fix Insurgency s_pTempEntities offset on Windows. 2015-02-22 20:08:42 -05:00
Nicholas Hastings 5f7e800444 Use new IVEngineServer::GetIServer to get IServer* on Insurgency. 2015-02-22 15:16:26 -05:00
Nicholas Hastings b52b5f46f0 Update Insurgency Windows SDKTools gamedata. 2015-02-22 10:14:53 -05:00
Nicholas Hastings 7e8d4b89ca Trigger build for hl2sdk-dota changes. 2015-02-20 09:16:40 -05:00
Nicholas Hastings 70be2941fe All of the KyleS. 2015-02-18 22:42:06 -05:00
Nicholas Hastings 9ffbac4f4e Simplified code. (We don't need m_Shared). 2015-02-18 18:44:31 -05:00
Nicholas Hastings 684b59a921 Don't fire forwards if client isn't ingame. 2015-02-18 12:33:37 -08:00
Nicholas Hastings e8765c5d3d Move m_CondOffset initialization to ctor. 2015-02-18 12:32:45 -08:00
Nicholas Hastings d179240c45 Merge pull request #265 from alliedmodders/missing-fs-native
Add missing impl for File.ReadUint16 (r=dvander).
2015-02-18 15:10:05 -05:00
Nicholas Hastings ac530a4ce0 Fix passing incorrect cond# to forwards for CondEx/2/3 fields. 2015-02-18 12:09:17 -08:00
Nicholas Hastings 589482736f Merge pull request #247 from AnthonyIacono/normalshook-upgrade
Improvements for NormalSHook functionality (r=psychonic).
2015-02-18 14:43:33 -05:00
Nicholas Hastings 3d2bd070ad Merge pull request #264 from davidskuza/sample-ext-vs-update
Updated Visual Studio sample_ext files.
2015-02-18 14:38:22 -05:00
Nicholas Hastings c4a58b1c95 Make sure processing and fwd calls happen on main thread. 2015-02-18 05:35:58 -08:00
Nicholas Hastings b9579a53ce Add missing impl for File.ReadUint16. 2015-02-18 04:50:20 -08:00