Raised This Month: $ Target: $400
 0% 

First Plugin Bunnyhop Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
homorapian
Junior Member
Join Date: Jul 2005
Old 08-14-2005 , 20:08   First Plugin Bunnyhop Plugin
Reply With Quote #1

Wow i never knew i could do it but i tried and it all worked out. I just started learning about scripting today and i just made my first pugin.

Alright here it is gimme some feed back!!!!

Cvars:
bh_enabled 1 to enable this plugin, 0 to disable.
bh_autojump If set to 1 players just need to hold down jump to bunny hop
bh_showusage If set to 1 it will tell the players that bunny hopping has been enabled.
Attached Files
File Type: sma Get Plugin or Get Source (b-hop.sma - 22844 views - 2.3 KB)
homorapian is offline
Send a message via AIM to homorapian
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 08-14-2005 , 20:37  
Reply With Quote #2

not to flame or bash or anything, but this code is exactly like CheesyPeteza's bunny hop plugin...
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
homorapian
Junior Member
Join Date: Jul 2005
Old 08-14-2005 , 20:40  
Reply With Quote #3

its not exactly like his cuz i started this from scratch... i took a peek at his and learned exactly how to do the stuff and then i started on mines.. so i guess i should give him credit
__________________
there is no sp00n



LOVE HINA OWNS U!!!! >;]
homorapian is offline
Send a message via AIM to homorapian
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 08-14-2005 , 20:45  
Reply With Quote #4

*blink*

Your code:

Code:
public client_PreThink(id) {     if (!get_cvar_num("bh_enabled"))         return PLUGIN_CONTINUE     entity_set_float(id, EV_FL_fuser2, 0.0)         if (!get_cvar_num("bh_autojump"))         return PLUGIN_CONTINUE     if (entity_get_int(id, EV_INT_button) & 2) {            new flags = entity_get_int(id, EV_INT_flags)         if (flags & FL_WATERJUMP)             return PLUGIN_CONTINUE         if ( entity_get_int(id, EV_INT_waterlevel) >= 2 )             return PLUGIN_CONTINUE         if ( !(flags & FL_ONGROUND) )             return PLUGIN_CONTINUE         new Float:velocity[3]         entity_get_vector(id, EV_VEC_velocity, velocity)         velocity[2] += 250.0         entity_set_vector(id, EV_VEC_velocity, velocity)         entity_set_int(id, EV_INT_gaitsequence, 6)      }     return PLUGIN_CONTINUE } public client_authorized(id)     set_task(30.0, "showUsage", id) public showUsage(id) {     if ( !get_cvar_num("bh_enabled") || !get_cvar_num("bh_showusage") )         return PLUGIN_HANDLED     if ( !get_cvar_num("bh_autojump") ) {         client_print(id, print_chat, "[AMXX] B-hopping is enabled on this server. You will not slow down after jumping. By homorapian")     } else {         client_print(id, print_chat, "[AMXX] B-hopping is enabled on this server. Just hold down jump to bunny hop. By homorapian")     }     return PLUGIN_HANDLED }

His code:

Code:
public client_PreThink(id) {     if (!get_cvar_num("bh_enabled"))         return PLUGIN_CONTINUE     entity_set_float(id, EV_FL_fuser2, 0.0)         if (!get_cvar_num("bh_autojump"))         return PLUGIN_CONTINUE     if (entity_get_int(id, EV_INT_button) & 2) {            new flags = entity_get_int(id, EV_INT_flags)         if (flags & FL_WATERJUMP)             return PLUGIN_CONTINUE         if ( entity_get_int(id, EV_INT_waterlevel) >= 2 )             return PLUGIN_CONTINUE         if ( !(flags & FL_ONGROUND) )             return PLUGIN_CONTINUE         new Float:velocity[3]         entity_get_vector(id, EV_VEC_velocity, velocity)         velocity[2] += 250.0         entity_set_vector(id, EV_VEC_velocity, velocity)         entity_set_int(id, EV_INT_gaitsequence, 6)      }     return PLUGIN_CONTINUE } public client_authorized(id)     set_task(30.0, "showUsage", id) public showUsage(id) {     if ( !get_cvar_num("bh_enabled") || !get_cvar_num("bh_showusage") )         return PLUGIN_HANDLED     if ( !get_cvar_num("bh_autojump") ) {         client_print(id, print_chat, "[AMX] Bunny hopping is enabled on this server. You will not slow down after jumping.")     } else {         client_print(id, print_chat, "[AMX] Auto bunny hopping is enabled on this server. Just hold down jump to bunny hop.")     }     return PLUGIN_HANDLED }


Little
similarity... eh?
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 08-14-2005 , 20:47  
Reply With Quote #5

Agreed... this is stupid and repetitive. Karma--
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
CubicVirtuoso
Senior Member
Join Date: Sep 2004
Location: Canada
Old 08-14-2005 , 21:04  
Reply With Quote #6

HAHA omg I've never seen code that similar
__________________
Sig Under Construction.
CubicVirtuoso is offline
Send a message via ICQ to CubicVirtuoso Send a message via AIM to CubicVirtuoso Send a message via MSN to CubicVirtuoso Send a message via Yahoo to CubicVirtuoso
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 08-14-2005 , 21:11  
Reply With Quote #7

2 for the trash
__________________
Github archive for plugins, the repos for the other c++ projects are there to.
EKS 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 17:01.


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