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

Hero : Bunny hop


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
newbie1233
BANNED
Join Date: Jul 2006
Old 09-15-2006 , 08:47   Hero : Bunny hop
Reply With Quote #1

Code:
//Bunny Hop
Bunny_level 5
Code:
Credits to Cheat_suit for bunny hop plugin code bit and
Hold jump to bunny hop
Attached Files
File Type: sma Get Plugin or Get Source (sh_bunnyhop.sma - 2408 views - 2.1 KB)

Last edited by newbie1233; 09-15-2006 at 11:38.
newbie1233 is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 09-15-2006 , 16:50   Re: Hero : Bunny hop
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=30186
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
imported_Slayer
Senior Member
Join Date: Nov 2005
Old 09-15-2006 , 19:56   Re: Hero : Bunny hop
Reply With Quote #3

That one is for amx though....
but you cAN compile.
imported_Slayer is offline
newbie1233
BANNED
Join Date: Jul 2006
Old 09-16-2006 , 05:17   Re: Hero : Bunny hop
Reply With Quote #4

but his is a rip
freecodes
Code:
#include <amxmod.inc> 
#include <D2Tools> 
#include <superheromod.inc> 

// bunny! 

 

// VARIABLES 
new gHeroName[] = "Bunny" 
new bool:gHasBunnyPowers[SH_MAXSLOTS + 1] 
//---------------------------------------------------------------------------------------------- 
public plugin_init() 
{ 
// Plugin Info 
register_plugin("SUPERHERO Hax0r", "1.0", "Freecode") 

// FIRE THE EVENT TO CREATE THIS SUPERHERO! 
if(isDebugOn()) 
server_print("Attempting to create Hax0r Hero") 

register_cvar("bunny_level", "10" ) 
shCreateHero(gHeroName, "Bunny Hopping", "Bunny", false, "bunny_level") 

// REGISTER EVENTS THIS HERO WILL RESPOND TO! (AND SERVER COMMANDS) INIT 
register_srvcmd("bunny_init", "bunny_init") 
shRegHeroInit(gHeroName, "bunny_init") 

} 
//---------------------------------------------------------------------------------------------- 
public bunny_init() 
{ 
new temp[128] 
// First Argument is an id 
read_argv(1, temp, 5) 
new id=str_to_num(temp) 
// 2nd Argument is 0 or 1 depending on whether the id has iron man powers 
read_argv(2, temp, 5) 
new hasPowers = strtonum(temp) 

if(hasPowers) { 
gHasBunnyPowers[id] = true 
D2_SetBunny(id,1) 
}else{ 
gHasBunnyPowers[id] = false 
D2_SetBunny(id,0) 
} 
}
Attempting to create Hax0r Hero" and my code is different

newbie1233
Code:
//Bunny hop
/*
Credits to Cheap suit for the Bunny hop plugin bit
*/

/* CVARS - copy and paste to shconfig.cfg

//Bunny Hop
Bunny_level 5

*/

#include <amxmodx>
#include <engine>
#include <superheromod>

new gHeroName[]="Bunny hop"
new bool:gHasBunnyHop[SH_MAXSLOTS+1]
//-------------------------------------------------------------------------------------
public plugin_init()
{
    // Plugin Info
    register_plugin("SUPERHERO Bunny hop", "1.0", "newbie1233")

    // DO NOT EDIT THIS FILE TO CHANGE CVARS, USE THE SHCONFIG.CFG
    register_cvar("Bunny_level", "5")
    register_cvar("Bunny Hop", "Auto jumping", 800)

    // FIRE THE EVENT TO CREATE THIS SUPERHERO!
    shCreateHero(gHeroName, "Bunny hop", "Start jumping like a bunnu hold jump button.", false, "bunny_level")

    // REGISTER EVENTS THIS HERO WILL RESPOND TO! (AND SERVER COMMANDS)
    // INIT
    register_srvcmd("bunny_init", "bunny_init")
    shRegHeroInit(gHeroName, "bunny_init")

}
//------------------------------------------------------------------------------------
public bunny_init()
{
    // First Argument is an id
    new temp[6]
    read_argv(1,temp,5)
    new id = str_to_num(temp)

    // 2nd Argument is 0 or 1 depending on whether the id has the hero
    read_argv(2,temp,5)
    new hasPowers = str_to_num(temp)

    gHasBunnyHop[id] = (hasPowers != 0)
}
//-----------------------------------------------------------------------------------
public client_PreThink(id)
{
    if(gHasBunnyHop[id] && is_user_alive(id))
         { 
    entity_set_float(id, EV_FL_fuser2, 0.0)
         }
    if(get_user_button(id) & IN_JUMP)
         {
        new Flags = entity_get_int(id, EV_INT_flags)
        if(Flags | FL_WATERJUMP && entity_get_int(id, EV_INT_waterlevel) < 2 && Flags & FL_ONGROUND)
        {
            new Float:fVelocity[3]
            entity_get_vector(id, EV_VEC_velocity, fVelocity)
            fVelocity[2] += 250.0
            entity_set_vector(id, EV_VEC_velocity, fVelocity)
            entity_set_int(id, EV_INT_gaitsequence, 6)
        }
    }
    return PLUGIN_CONTINUE
}
//-----------------------------------------------------------------------------------
and when u hold it u jump agian with out stoping
newbie1233 is offline
AleXPitt
Junior Member
Join Date: Dec 2006
Old 12-01-2006 , 11:17   Re: Hero : Bunny hop
Reply With Quote #5

Cool the hero ...
Nice to have Speedhak ^^
__________________
AleXPitt is offline
Send a message via MSN to AleXPitt
imported_Hawk
Senior Member
Join Date: Oct 2004
Location: Texas
Old 12-01-2006 , 13:03   Re: Hero : Bunny hop
Reply With Quote #6

stop bumping up old heros these are not new submissions but very old
imported_Hawk is offline
Send a message via AIM to imported_Hawk
ManWithThePlan
Junior Member
Join Date: Dec 2006
Old 12-25-2006 , 00:07   Re: Hero : Bunny hop
Reply With Quote #7

GOOD PERIOD. THAT IS ALL I HAVE TO SAY ABOUT THIS HERO. Plus not bad but same...
__________________
Add KARMA If I Helped
ManWithThePlan 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 17:02.


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