-
Notifications
You must be signed in to change notification settings - Fork 4
API Changes SC 5.02
GeckoN edited this page Aug 29, 2017
·
1 revision
- Added "pev" as a member variable to all custom entities.
- Added a space between 2 words in the Angelscript description string.
- Added additional checks to NetworkMessage to prevent the wrong message from sending messages begun by another.
- Added CEntityFuncs::CreateGib.
- Fixed text menus being removed on map change. (Scripts are now responsible for cleaning them up.)
- Added CEntityFuncs::PrecacheMaterialSounds.
- Added CGib to the API.
- Added checks to prevent server administrators from being kicked or banned by scripts.
- Added constant to indicate the size of the buffer used to contain the result of a ClientConnect rejection.
- Added CPlayerFuncs::CreateBot and BotDisconnect.
- Added CServer: a singleton class that keeps track of server wide state.
- Added date to the Angelscript log opened message.
- Added m_szAnimExtension variable to CBasePlayer.
- Added overloads to CAdminControl that allow plug-ins to slay/kill/kick/ban players without having to specify an administrator.
- Added PrecacheGeneric method to CGame.
- Added PrescheduleThink to ScriptBaseMonsterEntity.
- Added return statement in null pointer test.
- Added string debugging features to CAutoString and CHashStringPool.
- Changed how per-module globals are handled: they now use global accessor functions instead of manually declared and initialized globals, allowing them to be used during global variable initialization. (Removed the old method completely.)
- Clearing the scheduler's timer list now removes all references to other objects held by each timer, so as to avoid memory leaks due to circular references.
- Fixed g_AdminControl.SetReservedSlots and GetReservedSlots crashing the game.
- Fixed incorrect use of a bitwise AND operation being used to determine whether or not to call map scripts (code was intended for client side scripting).
- Fixed scripts failing to load on Linux in particular locations.
- Fixed typo in Angelscript documentation. (Console command)
- NetworkMessage is now a scoped reference type to prevent copy construction from creating an invalid message.
- Reloading plug-ins no longer calls MapInit on them.
- Removed all references to the memory debugging code, since it no longer works in VC++ 2015.
- Removed CEngineFuncs::CreateFakeClient.
- Removed CEntityFuncs::TeamsMatch.
- Removed fUpdateClient from KeyValueBuffer::SetValue.
- Removed m_szTeamName from CBasePlayer.
- Renamed a variable to prevent variable shadowing.
- Replaced the game's string pool with a more efficient one.
- The Angelscript log now outputs to the console after logging instead of before to ensure consistent output.
- The log classes will now only open a log if the output isn't empty.
- Updated Angelscript's module builder to use SteamPipe.
- Updated CAutoString so it compares with empty strings properly.
- Updated UTIL_FindAbstractResourcePath to use SteamPipe.
- Updated worldspawn to precache required files using SteamPipe.