Raised This Month: $7 Target: $400
 1% 

Superjump


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   EKS (166)
Willmaker
Senior Member
Join Date: Dec 2004
Location: Sydney, Australia
Old 12-21-2005 , 21:21   Superjump
Reply With Quote #1

Please be kind. Ive only started to learn how to make plugins a few days ago.

Code:
//================================================================================= // //    Superjump Plugin  - Made By Willmaker // // //  Id like to thank twistedeuphoria, and his multijump plugin. The code used //  to give you the boost when you jump came from his plugin. // // //  VERSION HISTORY // //  0.1 //  - Plugin Created. // //  0.2 //  - Changed it so you can only jump while on the ground. //  - Fixed the unknown_command in console when using superjump. // //  0.3 //  - Removed random_float (Thanks Cheap_Suit and Suicid3) // //  0.4 //  - Removed unnecessary code (Thanks Charr) // // //  DESCRIPTION // //  This plugin will allow any player to do a 'superjump'. Simple :) // // //  COMMANDS // //  superjump     - (in console) Will perform a superjump // // //  INSTALLATION // //  - Place the sma in your $moddir/addons/amxmodx/scripting folder and run //  the compiler. //  - Copy the superjump.amxx from your $moddir/addons/amxmodx/scripting/compiled //  folder to your $moddir/addons/amxmodx/plugins folder //  - Add superjump.amxx to your $moddir/addons/amxmodx/configs/plugins.ini on a //  new line. // // //  NOTES // //  - To prevent exploiting, superjump will only work while your on the ground, //  ie not in the air. This is to prevent players from essentially 'flying' //  through the air. //  - If you want to change the height of the superjump, go to the line where it //  says: // //    velocity[2] = 460.0 // //  and replace the 460 with a number of your choice. To get an estimate, //  460 is about 3-4 times higher than a standard jump on 800 gravity. //  (Thanks Cheap_Suit and Suicid3) // // //  FEEDBACK // //  If you find anything wrong, any bugs, or have a suggestion, or just plain like //  this plugin, leave me an email at <a href="mailto:[email protected]">[email protected]</a>. // //=================================================================================
Attached Files
File Type: sma Get Plugin or Get Source (superjump.sma - 5212 views - 2.3 KB)
__________________
GargStudios.net - Australian SvenCoop/Ent Server with Time Based Rewards
Willmaker is offline
Send a message via ICQ to Willmaker Send a message via AIM to Willmaker Send a message via MSN to Willmaker Send a message via Yahoo to Willmaker
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 12-21-2005 , 22:51  
Reply With Quote #2

Code:
velocity[2] = random_float(460.0,460.0)
to
Code:
velocity[2] = 460.0

You dont need a random float since its the same number
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 12-21-2005 , 22:51  
Reply With Quote #3

One suggestion.
Code:
velocity[2] = random_float(460.0,460.0)
should just be
Code:
velocity[2] = 460.0

Other than that good job for a first plugin.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 12-21-2005 , 22:52  
Reply With Quote #4

haha beat u to it
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
Willmaker
Senior Member
Join Date: Dec 2004
Location: Sydney, Australia
Old 12-21-2005 , 23:11  
Reply With Quote #5

Updated. Thanks.
Willmaker is offline
Send a message via ICQ to Willmaker Send a message via AIM to Willmaker Send a message via MSN to Willmaker Send a message via Yahoo to Willmaker
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 12-21-2005 , 23:29  
Reply With Quote #6

Quote:
Originally Posted by Cheap_Suit
haha beat u to it
It happens
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
YodaGman
BANNED
Join Date: Dec 2005
Old 12-22-2005 , 23:23  
Reply With Quote #7

lol nice alot of people complain about it though
YodaGman is offline
Willmaker
Senior Member
Join Date: Dec 2004
Location: Sydney, Australia
Old 12-22-2005 , 23:36  
Reply With Quote #8

I made it because I am going to use it as a reward. Hence why I put this plugin under fun.

And that I couldnt find a superjump plugin anywhere else.
Willmaker is offline
Send a message via ICQ to Willmaker Send a message via AIM to Willmaker Send a message via MSN to Willmaker Send a message via Yahoo to Willmaker
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 03-07-2006 , 14:15  
Reply With Quote #9

You don't need to define FL_ONGROUND since it is defined in engine_const.inc
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
Willmaker
Senior Member
Join Date: Dec 2004
Location: Sydney, Australia
Old 03-07-2006 , 18:43  
Reply With Quote #10

Updated. Thanks
__________________
GargStudios.net - Australian SvenCoop/Ent Server with Time Based Rewards
Willmaker is offline
Send a message via ICQ to Willmaker Send a message via AIM to Willmaker Send a message via MSN to Willmaker Send a message via Yahoo to Willmaker
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 05:16.


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