Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Left 4 DHooks Direct (1.150) [06-May-2024]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Forgetest
Member
Join Date: Aug 2020
Old 01-06-2024 , 17:00   Re: [L4D & L4D2] Left 4 DHooks Direct (1.140) [03-Dec-2023]
Reply With Quote #10

Quote:
Originally Posted by bedildewo View Post
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.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_unrestrict_panic_battlefield.sp - 98 views - 2.1 KB)
File Type: txt l4d_unrestrict_panic_battlefield.txt (2.8 KB, 99 views)

Last edited by Forgetest; 01-07-2024 at 04:25.
Forgetest is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode