Skip to content

YSF 2.1

Compare
Choose a tag to compare
@IS4Code IS4Code released this 14 Nov 15:12
· 48 commits to master since this release

Additions:

  • Passive mode, controlled by the PassiveMode config option. Disables all hooks and spontaneous manipulation of server's memory, as well as natives that rely on that. If you want to load a script that uses these natives, use Native Fallback.
  • SetPlayerSyncPos, SetPlayerSyncVelocity, SetPlayerSyncRotationQuat, SetPlayerSyncVehicleSeat, SetPlayerSyncTrainSpeed for setting additional update packet fields.
  • SetPickupPos, SetPickupModel, SetPickupType, SetPickupVirtualWorld, allowing pickup changes without id changes.
  • Single cell-returning GetPlayerRawIp (faster than GetPlayerIp for storage and comparison).

Changes:

  • Added bool tags to some functions.
  • Added default values for config options.

Fixes:

  • Prevent crashes when a to-be-hooked function is not found.
  • Properly initialize per-player gangzones.
  • Remove the skin restrictions for SetPlayerSkinForPlayer.
  • Player list queries are ignored for more than 100 players, fixing returning garbage data to the client.
  • SetPlayerObjectMaterial and SetPlayerObjectMaterialText properly react to StorePlayerObjectsMaterial.
  • Fixed missing trampoline crash on some platforms.
  • Fixed hook address for ToggleChatTextReplacement on R2-2.