Skip to content

API Changes SC 5.15

GeckoN edited this page Aug 11, 2018 · 2 revisions

Changelog

  • Exposed the new custom HUD functionality.
  • Exposed the new concussion effect.
  • RegisterWeapon() can be used to specify classname of the dropped ammo and ItemInfo to specify the amount.
  • Any weapon can now use the iClip2 ammo display (enabled by setting iClip2 >= 0).
  • Any weapon can now use the uzi-styled iClip2 ammo display (enabled by specifying ITEM_FLAG_DUALWIELD weapon flags, activated/deactivated on the fly by toggling m_fIsAkimbo).
  • Exposed Adam's "Entity compounded effects/modifiers" through AS API.
  • Added new methods BlockWeapons(),UnblockWeapons() and GetWeaponsBlocked() to CBasePlayer class. Exposed through AS API.
  • Moved m_fBlockWeapons from CBasePlayerWeapon to CBasePlayer. Removed the variable from AS API as well, scripters can use the new CBasePlayer methods instead.
  • Added CBasePlayer::HolsterWeapon() method. Exposed through AS API.
  • Exposed CBasePlayer::DeployWeapon() through AS API.
  • Changed signature of CBaseMonster::FBecomeProne() to CBaseMonster::FBecomeProne( CBaseEntity * pOther ).
  • Added a new HIDEHUD flag - HIDEHUD_SUITPOWER - hides the suit power/armor display. Useful for maps with no batteries/HEV chargers.
  • Renamed MAX_AMMO_SLOTS AS definition to MAX_AMMO_TYPES and changed the doc. string to be more descriptive.
  • CBasePlayerWeapon::AddPrimaryAmmo() and AddSecondaryAmmo() returns amount of actually added ammo instead of returning boolean value whether any ammo was added or not.
  • Fixed name of the CBasePlayerWeapon::AddSecondaryAmmo() method (it was mistakenly exposed as AddPrimaryAmmo() in the previous versions)
  • Added new item flag ITEM_FLAG_IGNOREWEAPONSTAY - used by the minigun (instead of a hard coded exception) and can be used by scripted weapons as well.
  • Added new item flag ITEM_FLAG_ESSENTIAL - used by the essential weapons - medkit, crowbar, barnacle grapple etc. (instead of a hard coded exception) and can be used by scripted weapons as well.
  • CPathTrack: Exposed the new m_iMaxSpeed and m_iNewSpeed members.
  • Added FormatInt(), FormatUInt() and FormatFloat() formatting functions. Syntax and behavior equivalent to the native AS counterparts, just modified to work with our custom string implementation.
  • Added few color definitions (RGBA class), including the standard Sven Co-op HUD color.
  • PITCH enum: Fixed documentation strings.
Clone this wiki locally