Skip to content

Repository files navigation

P3PrecacheIncrease

As the name suggests, this project increases the precaching limits within Postal III's engine. Whose values are based on Source Engine 2007, as can be found within its leaked code's headers and engine binaries.
This code is meant to be put alongside a .VDF file in addons folder, or injected with slight modifications using LoadLibrary in a custom P3.exe or client.dll.


Table Vanilla P3PrecacheIncrease
Generic 512 512
Decals 512 512
Models 1024 4096
Sounds 8192 16384

What code does:

  • Memory patching:
    • changing the Vanilla precache values to new modified ones during server's StringTable initialization,
    • patching out various references to old index bits of the Sounds table inside of SVC_Prefetch and SoundInfo_t's Write and Read functions to the new index bits.
  • Detours:
    • GetXXXXXX1, SetXXXXXX1, and PrecacheXXXXXX1 functions inside of CGameServer and CClientState to point towards the new precache arrays.

Footnotes

  1. XXXXXX being the name of a specific StringTable 2 3

About

Increases the precaching numbers up to SDK 2013 code.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages