View Single Post
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-08-2024 , 08:56   Re: ROG - A better random origin generator[NO HIDDEN ZONES UPDATE]
Reply With Quote #37

Quote:
Originally Posted by Hellkong View Post
The latest version?
The latest version is attached in the main post.

@Natsheh, I do not have time to check your file, but I find it contradictory that you claim it is optimized and at the same time claim it takes a long time to compute the random origins.

My version of ROG, the one from the main post, doesn't require caching, as the computation is very fast. Disabling the "no hidden zones" check (if you do not need it) will also make it much faster than it already is.

I should prepare an update and add a parameter to enable/disable the hidden zones check. In the meantime, if someone wants to do it quick and dirty, you can replace this code block:
PHP Code:
if(CheckPointsForVisibility(RandomOriginClosestOrigin))
{
    
IsVisible true

with this:

PHP Code:
IsVisible true 
(basically, remove the call to CheckPointsForVisibility)
__________________

Last edited by HamletEagle; 02-08-2024 at 09:01.
HamletEagle is offline