Skip to content

API Changes SC 5.21

Tomas Slavotinek edited this page Jan 1, 2020 · 2 revisions

Changelog

  • Added the Seek method to CASFile for seeking through files, including the SeekFileFlag/SeekFileFlags_t definitions for specifying the seek mode. Also modified the registration order for CASFileSystem subtypes in order to allow previously mentioned additions to register properly.
  • Added PluginExit, an optional plug-in function that gets called upon removing/reloading a plug-in while the server is running. This allows server plugins to process and save persistent data as needed and clean up after certain objects that are otherwise not released until after changing the map, i.e. file handles.
  • Added new hook PlayerPreDecalHook. Called when a player attempts to spraypaint a decal onto a surface. The given trace result contains the surface information. Set bResult to false if the player shouldn't be able to spray.
Clone this wiki locally