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

Run boost


Post New Thread Reply   
 
Thread Tools Display Modes
EFFx
Veteran Member
Join Date: Feb 2016
Location: Sγo Paulo, Brasil
Old 03-25-2017 , 21:36   Re: Run boost
Reply With Quote #11

Thank you, mister random.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
matrix123
Veteran Member
Join Date: Feb 2011
Old 03-25-2017 , 21:43   Re: Run boost
Reply With Quote #12

required amx 1.8.3 ?
__________________
matrix123 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: Sγo Paulo, Brasil
Old 03-25-2017 , 22:00   Re: Run boost
Reply With Quote #13

I didn't tested in amxx 1.8.3, I tested in 1.8.2. But I guess it works on 1.8.3 too.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: Sγo Paulo, Brasil
Old 04-19-2017 , 18:01   Re: Run boost
Reply With Quote #14

Released the version 1.1:

ΊCode edited
. Removed the pev_water check.
. Removed the fun unecessary include.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 04-19-2017 , 21:00   Re: Run boost
Reply With Quote #15

Code:
		if(~(afButtonPressed & IN_JUMP))
		{
			return HAM_IGNORED
		}
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
EFFx
Veteran Member
Join Date: Feb 2016
Location: Sγo Paulo, Brasil
Old 04-19-2017 , 22:57   Re: Run boost
Reply With Quote #16

What's the point?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Garey
Member
Join Date: Feb 2008
Location: Russian Federation
Old 04-24-2017 , 05:55   Re: Run boost
Reply With Quote #17

I can't test it right now but by code its just same runboost as regular in cs 1.6 ( https://www.youtube.com/watch?v=F0wqBOGlDrA ) but when you jump - you get velocity gain?
__________________
Sorry for my bad english

Last edited by Garey; 04-24-2017 at 05:55.
Garey is offline
Send a message via ICQ to Garey
Garey
Member
Join Date: Feb 2008
Location: Russian Federation
Old 04-24-2017 , 06:16   Re: Run boost
Reply With Quote #18

also you gain velocity boost even if bottom player is just standing at same place...
Also i think you dont need touch related stuff :
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <xs>

#define MAX_PLAYERS             32
#define m_afButtonPressed        246

new pCvarPluginEnabled

public plugin_init() 
{
    new const 
PluginVersion[] = "1.1"
    
register_plugin("Run boost"PluginVersion"EFFx")
    
    
RegisterHam(Ham_Player_Jump,"player","ham_Player_Jump_Pre",0)
    
    
pCvarPluginEnabled register_cvar("runboost_enabled","1")
}

public 
ham_Player_Jump_Pre(id)
{
    if(!
pCvarPluginEnabled)
        return 
HAM_IGNORED;
    
    static 
Float:velocity[3];
    static 
ent;
    
    
ent pev(idpev_groundentity);
    
    if(
is_user_connected(ent))
    {
        
pev(entpev_velocityvelocity);
        
        
velocity[2] = 0.0;
        
        
// bottom player speed is slow or he not moving at all        
        
if(vector_length(velocity) < 200.0)
            return 
HAM_IGNORED;
            
        
pev(idpev_velocity,velocity)        
        
        
// Is we need exclusive 1.2 scale for Z-axis?
        
xs_vec_mul_scalar(velocity1.3velocity);    
        
        
set_pev(idpev_velocityvelocity)
        
        
/// why supercede??
        //return HAM_SUPERCEDE
    
}
    return 
HAM_IGNORED

__________________
Sorry for my bad english
Garey is offline
Send a message via ICQ to Garey
EFFx
Veteran Member
Join Date: Feb 2016
Location: Sγo Paulo, Brasil
Old 04-24-2017 , 11:32   Re: Run boost
Reply With Quote #19

I cant test ur code, I haven't a pc but: How can I check if two players are boosting with your code? Why is_user_connected()? And it's not from cs1.6, it's from CSGO.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 04-24-2017 at 11:33.
EFFx is offline
Garey
Member
Join Date: Feb 2008
Location: Russian Federation
Old 04-24-2017 , 14:56   Re: Run boost
Reply With Quote #20

Quote:
Originally Posted by EFFx View Post
I cant test ur code, I haven't a pc but: How can I check if two players are boosting with your code? Why is_user_connected()? And it's not from cs1.6, it's from CSGO.
if pev_groundentity (entity we stand on) is connected this mean its boost otherwise it can return 0 (world) or another brush entities, but also as i described it can return player
__________________
Sorry for my bad english
Garey is offline
Send a message via ICQ to Garey
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 03:28.


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