Balance · 1
A player deflecting a bullet now counts toward the bullet's total bounce count as if it bounced off a wall.
bullet bounce count on player deflection
System · 14
Added IPlayer.IsHoldingActiveThrowable, GetActiveThrowableWeaponItem, SetActiveThrowableTimer and DisarmActiveThrowable to read and disarm active throwables on a player.
active throwable readout and disarm apiAdded RifleWeapon, HandgunWeapon, RangedWeapon, ThrownWeapon, PowerupItem and InstantPickupWeaponItem properties returning item information structs.
weapon item information accessorMoved DealDamage from IPlayer to base IObject and added a readonly Destructable property.
object damage apiAdded GetExplosionTimer and SetExplosionTimer to change explosion timers on thrown grenades, allowing duds to be reactivated.
thrown grenade explosion timer apiAdded CurrentValue and CurrentValue.MaxValue to read durability on a scale of 0-100.
melee weapon durability readoutAdded GetCurrentAmmo and GetMaxAmmo to read ammo from the current item.
weapon ammo readout apiDisarm now disarms any active throwables first and gains an optional out parameter to read the disarmed active throwable, keeping backwards compatibility.
player disarm behaviourAdded CurrentPrimaryRangedWeapon and CurrentSecondaryRangedWeapon returning RangedWeaponItem structs.
primary and secondary ranged weapon accessorAdded PowerupTotalBounces to read maximum bounces and made BounceCount writable to change current bounces.
projectile bounce count apiRemoved WriteToConsole(string) in favour of WriteToConsole(object params), avoiding ambiguous calls.
console write overloadAdded LazerEquipped property to read whether a ranged weapon has a lazer upgrade attached.
lazer upgrade readoutAdded IsDeflection and DeflectionNormal to ProjectileHitArgs, made RemoveFlag false during deflections, and the callback now fires when projectiles are blocked or deflected by players and on ProjectileDeflectZone.
projectile hit callback deflection handlingWriteToConsole now prints <null> for null values.
console null value outputAdded GetCorpseHealth, SetCorpseHealth and GetCorpseMaxHealth to read and update a dead player's corpse durability.
corpse health api
Fix · 8
Fixed the wrong exception being shown when a stacktrace from map scripts could not be parsed.
stacktrace parse error messageFixed PlayerWeaponRemovedActionCallback not running correctly when a player gets gibbed or removed in certain situations.
player weapon removed callback when gibbedFixed projectiles created inside ProjectileCreatedCallbackEvent not working properly.
projectiles created inside projectile created callbackFixed SupplyCrates created in the editor or ScriptAPI showing the wrong category icon for lazer, bouncing fire and explosive fire powerups.
supply crate powerup category iconWriteToConsoleF no longer crashes on invalid formats and instead generates and uses a default format.
console invalid format crashFixed a bug that prevented the player from attacking, blocking or grabbing after blocking and catching an unequippable item such as pills, slo-mo or strength boost.
attack, block and grab lockout after catching unequippable itemFixed GetColorPackage always returning null.
color package retrievalFixed SetSpawnWeaponItem* calls causing exceptions when Trigger() is called.
player spawn trigger weapon exception


