Quote:
Originally Posted by bedildewo
Is there any best and optimized way to reproduce L4D_GetRandomPZSpawnPosition by using left4dhooks ?
Im using
L4D_GetAllNavAreas
L4D_GetNearestNavArea
L4D2_IsVisibleToPlayer
L4D_FindRandomSpot
L4D2_NavAreaTravelDistance
Its works but really causing tick drop.
If there any veteran coder here to help?
The reason why i want this because "BATTLEFIELD" flag in nav area doesnt care about L4D_GetRandomPZSpawnPosition spawn position from INFRONT OF SURVIVORS, people just rush and special infected will spawn all in there until common left empty, so i want to fix this.
|
See if this helps you, patching binaries though. Not tested yet.
But take care of the side effects because it works by patching out the "Panic Event Active" checks when collecting spawn areas. Although I think it's generally fine to enable it globally.
Edit: Requires SourceScramble to compile and work.
Edit2: Updated for loading failure.