Raised This Month: $115 Target: $400
 28% 

ROG - A better random origin generator[NO HIDDEN ZONES UPDATE]


Post New Thread Reply   
 
Thread Tools Display Modes
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 07-29-2018 , 09:39   Re: ROG - A better random origin generator
Reply With Quote #11

Quote:
Originally Posted by edon1337 View Post
Is there any method on making an entity slide down if the place is steepy?
I'm using movetype_toss and pev_gravity 1.0 here, and it does slide on steepy places.

Quote:
Originally Posted by edon1337 View Post
We're already aware of the outside areas and the hill sides. I made a stock that can be used in maps where the outside area is underground (such as de_mon). As for the 'mountains' I still don't have a solution.

PHP Code:
public Float:GetValidPoint( )  
{  
    new 
Float:fPoint];  
    
fPoint] = GetLowestPoint( );  

    
fPoint] += 10.0;  
    while( ( 
engfuncEngFunc_PointContentsfPoint ) == CONTENTS_SOLID ) || ( engfuncEngFunc_PointContentsfPoint ) == CONTENTS_WATER ) )  
    {  
        
fPoint] += 1.0;  
    }  
          
    new 
pcCurrent engfuncEngFunc_PointContents fPoint );  
          
    if( 
pcCurrent == CONTENTS_EMPTY )  
    return 
fPoint];  
          
    return 
0.0;  
}  

public 
Float:GetLowestPoint( )  
{  
    new 
pcCurrent;  
    new 
Float:fStartingOffset];  
      
    while( ( 
engfuncEngFunc_PointContentsfStartingOffset ) == CONTENTS_SOLID ) || ( engfuncEngFunc_PointContentsfStartingOffset ) == CONTENTS_WATER ) || ( engfuncEngFunc_PointContentsfStartingOffset ) == CONTENTS_EMPTY ) )  
    {  
        
fStartingOffset] -= 5.0;   
    }  
      
    
pcCurrent engfuncEngFunc_PointContents fStartingOffset );   

    if( 
pcCurrent == CONTENTS_SKY )  
    return 
fStartingOffset];  
      
    return 
0.0;  

Usage
PHP Code:
new Float:fLowestPoint GetValidPoint( ); 
FYI, -350.0 is a non stuck-free origin in de_mon. ~ -420.0 is the minimum.
My check worked here, but I gotcha.

And Hamlet, I tried some checks here, but I failed too. I get back to my oldest and newbie spawn points. But i'll try to help everyone with this include, 'cos it worths.
__________________
• BattleRoyale Mod
• Public PugMod
• Furien Mod

-

Currently working on Thanos vs. Avengers: 15%

Last edited by EFFx; 07-29-2018 at 09:41.
EFFx is offline
Send a message via Skype™ to EFFx
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-29-2018 , 09:42   Re: ROG - A better random origin generator
Reply With Quote #12

Quote:
Originally Posted by EFFx View Post
I'm using movetype_toss and pev_gravity 1.0 here, and it does slide on steepy places.
Try using that on entities that you're creating and see if it slides down the hills
__________________
edon1337 is offline
Send a message via Skype™ to edon1337
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 07-29-2018 , 09:51   Re: ROG - A better random origin generator
Reply With Quote #13

It slides here, but not on the montains, it slides on literally steepy places, here as example: http://prntscr.com/kcegra
Another one: http://prntscr.com/kcegwe
__________________
• BattleRoyale Mod
• Public PugMod
• Furien Mod

-

Currently working on Thanos vs. Avengers: 15%
EFFx is offline
Send a message via Skype™ to EFFx
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-29-2018 , 10:00   Re: ROG - A better random origin generator
Reply With Quote #14

Quote:
Originally Posted by EFFx View Post
It slides here, but not on the montains, it slides on literally steepy places, here as example: http://prntscr.com/kcegra
Another one: http://prntscr.com/kcegwe
Aren't the hills as steepy as the first picture?
__________________
edon1337 is offline
Send a message via Skype™ to edon1337
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 07-29-2018 , 10:02   Re: ROG - A better random origin generator
Reply With Quote #15

Not that much.
__________________
• BattleRoyale Mod
• Public PugMod
• Furien Mod

-

Currently working on Thanos vs. Avengers: 15%
EFFx is offline
Send a message via Skype™ to EFFx
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-29-2018 , 12:28   Re: ROG - A better random origin generator[UPDATED]
Reply With Quote #16

Updated: now you can add your own conditions without editing the include to filter origins. Check the main post.
__________________
HamletEagle is online now
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 08-20-2018 , 05:06   Re: ROG - A better random origin generator[UPDATED]
Reply With Quote #17

Nice, HamletEagle.
__________________
Problem with ZP?
ZP Helper!
zmd94 is offline
JocAnis
Senior Member
Join Date: Jun 2010
Old 08-20-2018 , 09:45   Re: ROG - A better random origin generator[UPDATED]
Reply With Quote #18

if we use it, is there a chance the origin will be generated on the box, where player cant get there? for example: https://i.imgur.com/9kFIO95.jpg
JocAnis is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-20-2018 , 09:54   Re: ROG - A better random origin generator[UPDATED]
Reply With Quote #19

Quote:
Originally Posted by JocAnis View Post
if we use it, is there a chance the origin will be generated on the box, where player cant get there? for example: https://i.imgur.com/9kFIO95.jpg
Unfortunately, yes.
__________________
edon1337 is offline
Send a message via Skype™ to edon1337
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-20-2018 , 10:52   Re: ROG - A better random origin generator[UPDATED]
Reply With Quote #20

Quote:
Originally Posted by JocAnis View Post
if we use it, is there a chance the origin will be generated on the box, where player cant get there? for example: https://i.imgur.com/9kFIO95.jpg
This type of boxes are easy to filter.
__________________

Last edited by HamletEagle; 08-20-2018 at 10:53.
HamletEagle is online now
Reply


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 15:46.


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