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

edgebug/bhop stats


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 10-11-2008 , 14:58   edgebug/bhop stats
Reply With Quote #1

Hello ,

I am seeking for Edge Bug stats , for those who do not know what edge bug is -> it is jumping from a certaint hight and then landing on the edge of somthing within 1 unit so you wont loose health when doing this there will come Grim jumped 600 units with an edgebug ...

If someones has it but doesnt want it in public you can PM me and then we maybe can talk about it .

Same thing for bhop stats ( I just want to know how you detect a bhop since it is so sweet )

Thanks Grim
__________________
I am out of order!
grimvh2 is offline
merong
Member
Join Date: Feb 2008
Old 10-12-2008 , 00:02   Re: edgebug/bhop stats
Reply With Quote #2

edge bug stats & jump bug stats by Newbie >>> http://xtreme-jumps.eu/e107_plugins/...pic.php?101592

Bhop stats is not released
merong is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 10-12-2008 , 04:20   Re: edgebug/bhop stats
Reply With Quote #3

Thanks , well I dont need the .amxx cause I already have that . I want to know how he detects a bhop and measures it .
__________________
I am out of order!
grimvh2 is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 10-12-2008 , 05:32   Re: edgebug/bhop stats
Reply With Quote #4

What? The source of plugin is also in the archive.
Alka is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-12-2008 , 05:52   Re: edgebug/bhop stats
Reply With Quote #5

You can check each prethink if player is on the ground, if player is on the ground during less than 10 prethink, then consider that it's a bhop, save the position. Then, when the player lands again, mesure distance.


Here is a quick attempt.
Results are not accurate due to the size of a player.
You should check if the player is at the edge of something when he jumps and when he lands.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 10-12-2008 at 13:30.
ConnorMcLeod is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 10-12-2008 , 07:13   Re: edgebug/bhop stats
Reply With Quote #6

Quote:
Originally Posted by Alka View Post
What? The source of plugin is also in the archive.
Talking about bhop stats

@ Connorr - Thx , going to look what I can do with it .
__________________
I am out of order!
grimvh2 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-12-2008 , 07:15   Re: edgebug/bhop stats
Reply With Quote #7

Adding 30.0 seems to be more accurate.

(player size is 32, assume he needs 1 unit to jump and 1 unit to land)

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN "Bhop Stats"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"

#define MAX_PLAYERS    32

#define FL_ONGROUND2    (FL_ONGROUND | FL_PARTIALGROUND | FL_INWATER | FL_CONVEYOR | FL_FLOAT)

#define IN_BHOP    -1

#define MAX_BHOP_FRAMES    10

new g_iOnGround[MAX_PLAYERS+1]
new 
Float:g_flJumpOrigin[MAX_PLAYERS+1][3]
new 
bool:g_bDucked[MAX_PLAYERS+1]

public 
plugin_init()
{
    
register_pluginPLUGINVERSIONAUTHOR )

    
RegisterHamHam_Player_PreThink"player""Player_PreThink" )
}

public 
client_putinserver(id)
{
    
g_iOnGround[id] = 0
}

public 
Player_PreThinkid )
{
    if( !
is_user_aliveid ) )
    {
        return 
HAM_IGNORED
    
}

    static 
iFlags iFlags pev(idpev_flags)

    if( 
iFlags FL_ONGROUND2 )
    {
        if( 
g_iOnGround[id] == IN_BHOP )
        {
            static 
Float:flOrigin[3]
            
pev(idpev_originflOrigin)
            if( 
g_bDucked[id] )
            {
                
g_bDucked[id] = false
                
if( !(iFlags FL_DUCKING) )
                {
                    
flOrigin[2] -= 18.0
                
}
            }
            else if( 
iFlags FL_DUCKING )
            {
                
flOrigin[2] += 18.0
            
}
            
Mesure(idg_flJumpOrigin[id], flOrigin)

            
g_iOnGround[id] = 0
        
}

        
g_iOnGround[id]++

        if( 
pev(idpev_button) & IN_JUMP && !(pev(idpev_oldbuttons) & IN_JUMP) )
        {
            
pev(idpev_origing_flJumpOrigin[id])
            if( 
g_iOnGround[id] < MAX_BHOP_FRAMES )
            {

                
g_iOnGround[id] = IN_BHOP
                g_bDucked
[id] = bool:(iFlags FL_DUCKING)
            }
            else
            {
                
g_iOnGround[id] = 0
            
}
        }
    }
    return 
HAM_IGNORED
}

Mesure(idFloat:flStart[3], Float:flEnd[3])
{
    static 
Float:fRealDistFloat:fHorizDistFloat:fDiff

    fDiff 
flEnd[2] - flStart[2]

    
flEnd[0] -= flStart[0]
    
flEnd[1] -= flStart[1]
    
flEnd[2] -= flStart[2]

    
fHorizDist fRealDist 30.0 floatsqroot(flEnd[0]*flEnd[0] + flEnd[1]*flEnd[1] + flEnd[2]*flEnd[2])

    if( 
fDiff )
    {
        
fHorizDist 30.0 floatsqroot(flEnd[0]*flEnd[0] + flEnd[1]*flEnd[1])
    }

    
client_print(idprint_center"Real:%.1f Horiz:%.1f Diff:%.1f"fRealDistfHorizDistfDiff)

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 10-12-2008 , 07:33   Re: edgebug/bhop stats
Reply With Quote #8

wow
Nice connorr
this should stop a lot of ppl asking for Lt.Rat version
__________________
minimiller is offline
Send a message via MSN to minimiller
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-12-2008 , 07:41   Re: edgebug/bhop stats
Reply With Quote #9

This method will always be inaccurate, i have to update it some days so i can use it on my bhop server.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 10-12-2008 , 07:44   Re: edgebug/bhop stats
Reply With Quote #10

just had a conversersation with connorr via steam.. i have to disappoint you, this "bhopstats" is very inaccurate. it is basicly the same way fatalis old ljstats worked: distance between jumpoff and land position but somehow this does not return an accurate value. just have a look at numbs ljstats modification which uses edarks term for calculating which is not 100% accurate either since pawn limits floats to 6 decimalplaces. the term he uses is about velocity origins etc. i once tried to understand the term but it was impossible for me since numbs plugin code is very very untidy :S
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
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 20:13.


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