

Updating ProjectileHitArgs.RemoveFlag so it's now false during deflections. Adding ProjectileHitArgs.IsDeflection, ProjectileHitArgs.DeflectionNormal to be able to read if a projectile hit is a deflection. * Updated ProjectileHitCallback to handle deflections by: * Added MeleeWeaponItem.CurrentValue, CurrentValue.MaxValue to read durability (0-100). * Added IObjectWeaponItem.RifleWeapon|HandgunWeapon|RangedWeapon|ThrownWeapon|PowerupItem|InstantPickupWeaponItem which returns the item information struct about the specified item. * Added IObjectWeaponItem.GetCurrentAmmo(), IObjectWeaponItem.GetMaxAmmo() to be able to read ammo from current item.
#Maxgames superfighters update#
* Added IPlayer.GetCorpseHealth(), SetCorpseHealth(float value), GetCorpseMaxHealth() to be able to update the durability of a dead player's corpse. * Added IObjectGrenadeThrown.GetExplosionTimer(), IObjectGrenadeThrown.SetExplosionTimer() to be able to change the explosion timer on thrown grenades (and "reactivate" duds by calling SetExplosionTimer after the first timer runs out). This is done to keep backwards compatibility with existing code. This returns the same object as calling IPlayer.DisarmActiveThrowable() first. Also included an optional parameter 'out IObject disarmedActiveThrowable' to be able to read the disarmed active throwable (if any). It will now disarm any active throwables first. * Added IPlayer.IsHoldingActiveThrowable, IPlayer.GetActiveThrowableWeaponItem(), IPlayer.SetActiveThrowableTimer(.), IPlayer.DisarmActiveThrowable(.) to be able to read and disarm current active throwables on a player. * Fixed a bug preventing the player from attacking, blocking or grabbing after blocking and catching an unequippable item (pills, slo-mo, strength boost, etc.) * ScriptAPI: Fixed a bug where IPlayer.SetUser() would not properly update the player's team in the scoreboard and HUD. * Fixed a bug where you couldn't kick immediately after sheathing a gun in some situations. * Fixed a bug where you would be unable to perform certain melee actions immediately after dropping a weapon in some situations. * Fixed a bug where rolling could get unintentionally delayed if you kept alternating between standing/crouching after a melee weapon breaks during a melee attack. * Pressing the "sheathe weapon" button will now cancel queued weapon equipping (noticeable for throwables and automatic weapons in some situations). * Removed the magnum from the "Streetsweeper Sweep-up" challenge. The time you need to stay out-of-sight before Streetsweepers can target other opponents reduced from 2.0 to 1.7 seconds. This now also resets the target the Streetsweeper is chasing, making for a better escape tool. The disable time from electrocuting a Streetsweeper using the Shock Batons increased from 2.5 to 4.0 seconds. Heavy metal melee weapons (Fire Axe, Hammer, Pipe Wrench and Lead Pipe) now deal bonus damage towards Streetsweepers.

With a Strength Boost active, your melee damage towards Streetsweepers is doubled (except for the Chainsaw).

Magnum and Sniper bullets can now one-shot Streetsweepers. Each projectile that hits a Streetsweeper now does a minimum of 6 damage, making guns like uzi and shotgun more useful. Time between bursts increased from 3.0 to 3.5 seconds. * Streetsweepers have been tuned down to feel like a less impossible threat to deal with: * Updated some documentation related to scripting. * Added IPlayer.SetForcedBotTarget(.), IPlayer.GetForcedBotTarget(), IPlayer.GetBotTarget() to be able to read or override a bot's current target. Players and Streetsweepers are enabled by default.

Use the TargetAIData to define a max distance, team, priority and attack mode for the bots towards the additional target. * Added IObject.GetTargetAIEnabled(), IObject.SetTargetAIEnabled(.), IObject.GetTargetAIData(), IObject.SetTargetAIData(.), Game.GetTargetAIEnabledObjects() to be able to set up additional targets for bots other than players and Streetsweepers. * Added Game.ForceStartSuddenDeath(.) to be able to start sudden death based on custom conditions from scripts. * Fixed a crash related bots taking cover while being shot at. * Fixed a crash related to Streetsweepers. * The tutorial now uses texts from the language XML file so it can be translated using the language tool. * Bots now aim towards the head if the head is the only exposed part behind a cover. * Tweaked the block animations so it's more obvious that the wind-up frames are not actual block frames.
