Raised This Month: $51 Target: $400
 12% 

[L4D2] Hunter flying skybox patch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JLmelenchon
Senior Member
Join Date: Mar 2019
Old 06-28-2022 , 03:31   [L4D2] Hunter flying skybox patch
Reply With Quote #1

Apparently a plugin already exist for that but it is private and i could not find it on google, it is on error servers. That will block the possibility for the hunter to "fly" with the help of the skybox on various maps.

Last edited by JLmelenchon; 06-28-2022 at 03:32.
JLmelenchon is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 06-28-2022 , 17:00   Re: [L4D2] Hunter flying skybox patch
Reply With Quote #2

Try:

https://github.com/Target5150/MoYu_S...d_backjump_fix

Don't know if is what you want tho
__________________
Marttt is offline
JLmelenchon
Senior Member
Join Date: Mar 2019
Old 06-29-2022 , 03:44   Re: [L4D2] Hunter flying skybox patch
Reply With Quote #3

I don't think it is that.
JLmelenchon is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 07-02-2022 , 14:21   Re: [L4D2] Hunter flying skybox patch
Reply With Quote #4

Quote:
Originally Posted by JLmelenchon View Post
Apparently a plugin already exist for that but it is private and i could not find it on google, it is on error servers. That will block the possibility for the hunter to "fly" with the help of the skybox on various maps.
I have reasons to believe that's impossible to detect.

You can utilize Fuck Zones to either freeze a pouncing hunter in place if entering its territory, or use the solid zone as a shield against any player, whether it's a Survivor or Infected.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Forgetest
Member
Join Date: Aug 2020
Old 07-06-2022 , 16:43   Re: [L4D2] Hunter flying skybox patch
Reply With Quote #5

I believe it's kinda the same as bouncing off walls, touching the world and given ability recharge to pounce again. The only problem is how to detect if the hunter is touching the skybox.

What I could think of now, is tracing up the sky to check the distance in between being within a certain range. Would be good if there're better options.
Forgetest is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 07-06-2022 , 16:46   Re: [L4D2] Hunter flying skybox patch
Reply With Quote #6

Maybe this thread could help to detect the skybox:

https://forums.alliedmods.net/showth...=219601&page=2
__________________
Marttt is offline
Forgetest
Member
Join Date: Aug 2020
Old 07-06-2022 , 17:12   Re: [L4D2] Hunter flying skybox patch
Reply With Quote #7

PHP Code:
void SDK_OnTouch_Post(int entityint other)
{
    if (!
IsClientInGame(entity))
        return;
    
    
int ability GetEntPropEnt(entityProp_Send"m_customAbility");
    if (
ability == -1)
    {
        
SDKUnhook(entitySDKHook_TouchPostSDK_OnTouch_Post);
        return;
    }
    
    if (
GetEntPropEnt(entityProp_Send"m_hGroundEntity") != -1)
        return;

    if (
GetEntPropFloat(abilityProp_Send"m_lungeAgainTimer"1) != GetGameTime() + 0.5)
        return;
    
    if (
other != 0)
        return;
    
    static 
float vPos[3], vEnd[3];
    
GetClientEyePosition(entityvPos);
    
    
vEnd[0] = vPos[0];
    
vEnd[1] = vPos[1];
    
vEnd[2] = vPos[2] + 50.0;
    
    static 
Handle tr;
    
tr TR_TraceRayFilterEx(vPosvEndMASK_VISIBLERayType_EndPointTraceFilter_NoSelfentity);
    if (
TR_DidHit(tr))
    {
        if (
TR_GetSurfaceFlags(tr) & (SURF_SKY2D|SURF_SKY))
        {
            
SetEntPropFloat(abilityProp_Send"m_lungeAgainTimer", -1.01);
        }
    }
    
    
delete tr;
}

bool TraceFilter_NoSelf(int entityint contentsMaskany data)
{
    return 
entity != data;

Seems like this. correct? and not sure whether it works.

Replace SDK_OnTouch_Post in https://github.com/Target5150/MoYu_S...d_backjump_fix

Edit:
Looks flawlessly working, though the block would only be applied on touching the sky, not on room ceiling.
I have no idea this should be improved further to block bouncing all ceilings, given generally room ceiling won't contribute to DPs.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_backjump_fix.sp - 76 views - 3.8 KB)

Last edited by Forgetest; 07-07-2022 at 15:43.
Forgetest is offline
King_OXO
Senior Member
Join Date: Dec 2020
Location: Brazil
Old 08-27-2023 , 13:50   Re: [L4D2] Hunter flying skybox patch
Reply With Quote #8

I wanted the opposite, when hunter touches somewhere he can move forward at will
__________________
My Noob Plugins

Discord:WhiteFire#1301
Steam:WhiteFire
Youtube
King_OXO is offline
Reply



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 23:33.


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