-
Notifications
You must be signed in to change notification settings - Fork 4
API Changes SC 5.13
GeckoN edited this page Jul 19, 2017
·
6 revisions
-
CSurvivalModeis now available to server plugins. -
CPlayerFuncs::FindPlayerByIndex()function now returns valid pointer only if the given player is actually connected to the server. - Added
CASSoundEngine::FindMaterialType()function that returns material type for given texture. (issue #24) - Added
CASConCommandSystem::ServerCommand()- more convenient way of executing custom AS commands from scripts. (issue #21) - Added
CHAN_MUSICvalue to theSOUND_CHANNELenum. - Removed
CHAN_NETWORKVOICE_BASEandCHAN_NETWORKVOICE_ENDfrom theSOUND_CHANNELenum. - Added overloaded
CSoundEngine::PrecacheSound()method that supports sound replacement for entities (issue #28) - Added
CBaseEntity::IsBreakable()method that can be used to check whether this is a breakable brush entity or not. - Exposed
CBaseEntity::StartPlayerFollowing()andCBaseEntity::StopPlayerFollowing()methods. - Removed
CBaseEntity::StopFollowing()method (merged withStopPlayerFollowing()). - Optional parameter was added to
StartPlayerFollowing()/StopPlayerFollowing()methods and will make the monster start/stop following the player without playing any sentence. -
string::SetCharAt()is no longer const. (issue #44) - Added implicit conversion from
chartouint32. (issue #35) - Fixed
File::ReadLine()not handlingCRLFline endings correctly. (issue #43) - Added override for
IgnoreConditions()to theCBaseCustomMonsterEntityclass. (issue #15) -
CEngineis no longer const, selected members are non-const. (issue #20) - Added
CEngine::force_retouch. (issue #19) - Added
MOVE_TYPEenum forMoveToOrigin()movement types. (issue #30) - Removed
CEngineFuncs::AnimationAutomove(). The corresponding function in the engine is empty. (issue #32) - Fixed return type of
CEngineFuncs::Voice_GetClientListening()andVoice_SetClientListening(). (issue #33) -
CCVarconstructors now have proper default value for theirstringarguments. (issue #22) -
CEntityFuncsmethods will now release array references correctly if the array type is invalid. (issue #34) - Added missing
ItemInfo opAssignmethod. (issue #37)
-
PlayerUse,PlayerPreThink,PlayerPostThink,GetPlayerSpawnSpothooks are now available to server plugins. - Added
PlayerEnteredObserverandPlayerLeftObserverhooks. Available to both - map scripts and server plugins. -
WeaponPrimaryAttack,WeaponSecondaryAttackandWeaponTertiaryAttackhooks are now available to server plugins. -
WeaponPrimaryAttack,WeaponSecondaryAttackandWeaponTertiaryAttackhooks - fixed invalid data type being used for the first function argument (caused run-time AS errors when hook arguments were accessed).
- The built-in doc. generator now stores values for enum items.
- The built-in doc. generator now stores document version and game version.
- Tweaked few documentation strings. (including issue #25)
- Changed all the problematic
<br/>and</br>tags in the documentation strings to"\n".
Format of the generated documentation was changed in SC 5.13. If you want to generate your own AS API documentation in HTML format, please use the updated ASDocGenerator utility (sources available here).
