Commit Graph

866 Commits

Author SHA1 Message Date
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
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
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