Raised This Month: $32 Target: $400
 8% 

Request Bunnyhop only for CT


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ykaru
Member
Join Date: Aug 2019
Old 08-29-2020 , 11:21   Request Bunnyhop only for CT
Reply With Quote #1

Hi, as the title says i need a bunnyhop plugin only for CT. I've searched and tryied a lot of them but all of them works for both teams.
Ykaru is offline
Ykaru
Member
Join Date: Aug 2019
Old 08-30-2020 , 12:39   Re: Request Bunnyhop only for CT
Reply With Quote #2

up. Someone please ?
Ykaru is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 08-30-2020 , 14:42   Re: Request Bunnyhop only for CT
Reply With Quote #3

Quote:
Originally Posted by Ykaru View Post
up. Someone please ?
PHP Code:
#include <amxmodx>
#include <engine>
#include <cstrike>

#define    FL_WATERJUMP    (1<<11)    // player jumping out of water
#define    FL_ONGROUND    (1<<9)    // At rest / on the ground

public plugin_init() {
    
register_plugin("Super Bunny Hopper""1.2""FeFire-CS")
    
register_cvar("sbhopper_version""1.2"FCVAR_SERVER)

    
register_cvar("bh_enabled""1")
    
register_cvar("bh_autojump""1")
}

public 
client_PreThink(id) {
    if (!
get_cvar_num("bh_enabled"))
        return 
PLUGIN_CONTINUE

    entity_set_float
(idEV_FL_fuser20.0)        // Disable slow down after jumping

    
if (!get_cvar_num("bh_autojump"))
        return 
PLUGIN_CONTINUE
            
    
if(cs_get_user_team(id) == CS_TEAM_T)
        return 
PLUGIN_CONTINUE

    
if (entity_get_int(idEV_INT_button) & 2) {    // If holding jump
        
new flags entity_get_int(idEV_INT_flags)

        if (
flags FL_WATERJUMP)
            return 
PLUGIN_CONTINUE
        
if ( entity_get_int(idEV_INT_waterlevel) >= )
            return 
PLUGIN_CONTINUE
        
if ( !(flags FL_ONGROUND) )
            return 
PLUGIN_CONTINUE

        
new Float:velocity[3]
        
entity_get_vector(idEV_VEC_velocityvelocity)
        
velocity[2] += 250.0
        entity_set_vector
(idEV_VEC_velocityvelocity)

        
entity_set_int(idEV_INT_gaitsequence6)    // Play the Jump Animation
    
}
    return 
PLUGIN_CONTINUE


Last edited by Supremache; 08-30-2020 at 14:43.
Supremache is offline
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 16:47.


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