Skip to content

Releases: kaja-hasir/human-labs-raid

v1.4.1

Choose a tag to compare

@kaja-hasir kaja-hasir released this 28 Aug 13:39

Changelog

  • Bug fix for proximity target box-zones not interactable

Don't use source.zip

v1.4.0

Choose a tag to compare

@kaja-hasir kaja-hasir released this 28 Aug 02:25

Changelog

  • Suspcious panel customization is possible: themes, position, vignetta
  • Cleaner Elevator Hitboxes
  • Full native targetting support without ox_target (configurable)
  • Transporter robbing bug fixes when looting

v1.3.0

Choose a tag to compare

@kaja-hasir kaja-hasir released this 24 Aug 00:08

Changelog

  • Adjustable suspicion panel position added
  • Suspicion vignetta added
  • Extraction minigame scroll fix
  • Interactable waver to remove confusion added
  • Easier transporter interaction targets
  • Raider spawn wait fix
  • Easter egg cat animation fix

v1.2.0

Choose a tag to compare

@kaja-hasir kaja-hasir released this 21 Aug 00:48

Changelog

  • Adjusted mainly readme because of Trailer new link
  • Also added Discord for potential Feedback

v1.1.0

Choose a tag to compare

@kaja-hasir kaja-hasir released this 19 Aug 19:56

Changelog

  • Player based raid scaling by making Config.security.spawn_rate_on_alarm into a function with number of player raiding
  • Invisible peds were fixed: They spawned inside a different Interior that caused them to not being rendered
  • Adjusted configurations for a non demo and more release alike
  • Client distrust
  • loot difference between robbing and searching driver seat

v1.0.0

Choose a tag to compare

@kaja-hasir kaja-hasir released this 18 Aug 17:25

Benchmarks

Benchmark was run on a fresh ESX server with [ox] and one player. It was run using profiler record 500.

Device Scenario Avg. per frame
Client Idle ~0.0014 ms
Client Init everything on zone enter ~0.0388 ms
Client Cleanup on zone exit ~0.012 ms
Client Stealth ~0.0372 ms
Client Stealth and crafting ~0.0534 ms
Client Alarm ~0.025 ms
Client Alarm and crafting ~0.0366 ms
Client Diving escape ~0.246 ms
Server Idle ~0.0404 ms
Server Init everything on zone enter ~0.052 ms
Server Cleanup on zone exit ~0.0486 ms
Server Stealth ~0.0204 ms
Server Stealth and crafting ~0.0244 ms
Server Alarm ~0.0184 ms
Server Alarm and crafting ~0.178 ms
Server Diving escape ~0.015 ms

The majority of time spend is in security.lua, transporter.lua, suspicious.lua, crafting.lua, and outfit.lua (when diving). They are roughly consuming the same amount when active. The worst case therefore is scenario "Stealth and crafting". Here is what each part handles:

  1. Security.lua handles peds which get alarmed if they see a player doing suspicious behaviour for long enough - Line of sight checks
  2. Transporter.lua checks if the spawning location is clear of vehicles, peds, and players before spawning. The driving of transporters is minimal
  3. Suspicious.lua must monitor all player behavior and many player actions. It must be responsive
  4. Crafting.lua uses many particles in the UI to look good
  5. Outfit.lua (when diving) overwrites lung capacity with values in quick succession

The server seems to have its ups and down and is in heavy use when cleaning up the zone.

Note: Through the configuration a new variable Config.raid_reentry_cooldown can be used to further increase performance. Despite its terrible naming, it is used all throughout the skript nearly everywhere where you could find a loop. It is used for timeouts but effective in reducing computation.