AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Any] Ninja Leap (https://forums.alliedmods.net/showthread.php?t=157089)

DarthNinja 05-16-2011 05:57

[Any] Ninja Leap
 
1 Attachment(s)
[Any] Ninja Leap
Version 1.0.2



Description:
Leap around through the air like a Ninja! Or maybe a Hunter!
... Or a Ninja Hunter!

Video:
http://www.youtube.com/watch?v=1CgqWlwzleM

Commands:
  • ninjaleap [Power] [Angle] - Leap through the air!
    Power and Angle are optional, and will use the default values that can be set in a cvar below.
  • leap - Same as above
Examples:
  • leap 1500 -45
    Would launch the player upwards at a 45 degree angle with 1500 force.
  • ninjaleap 1000 -90
    Would launch the player straight up at 1000 force.


Cvars:
  • sm_ninjaleap_version - Plugin Version
  • sm_ninjaleap_enable "1" - Enable/Disable the plugin
  • sm_ninjaleap_power "1000" -The default force to use if the player doesn't specify.
  • sm_ninjaleap_angle "-30" - The default angle to use if the player doesn't specify.
  • sm_ninjaleap_log "0" - Whether or not to log leap actions.
  • sm_ninjaleap_admin "0" - Set to 1 to make the plugin admin-only.

Override:
Use sm_ninjaleap_override in your overrides config to change the flag needed for admins when in admin-only mode.
Default flag is Slay.

Install Instructions:

  1. Drag and drop.

Notes:
-

Version History:
  • V1.0.0
    • Initial Release
  • V1.0.1
    • Stupid typo with CheckCommandAccess
  • V1.0.2
Total downloads as prior to last edit: 284

Snaggle 05-16-2011 08:38

Re: [Any] Ninja Leap
 
Your plugins are fun. Nice work.

sinblaster 05-16-2011 12:47

Re: [Any] Ninja Leap
 
Any chance of adding:
Amount of leaps allowed per round?
Cost per leap?

DarthNinja 05-16-2011 16:05

Re: [Any] Ninja Leap
 
Quote:

Originally Posted by sinblaster (Post 1470522)
Any chance of adding:
Amount of leaps allowed per round?
Cost per leap?

I was thinking about a version that allows players to leap until they run out of energy. The energy would regen at a fixed rate when at less then 100%.
Eg: Each leap costs 50%. Energy regens at 1% a second. Players can leap once every 50 seconds or twice every 100 seconds.

Quote:

Originally Posted by Snaggle (Post 1470403)
Your plugins are fun. Nice work.

Glad you like it :3

DarthNinja 05-16-2011 16:40

Re: [Any] Ninja Leap
 
~Video added

sinblaster 05-16-2011 17:41

Re: [Any] Ninja Leap
 
Quote:

Originally Posted by DarthNinja (Post 1470626)
I was thinking about a version that allows players to leap until they run out of energy. The energy would regen at a fixed rate when at less then 100%.
Eg: Each leap costs 50%. Energy regens at 1% a second. Players can leap once every 50 seconds or twice every 100 seconds.


Glad you like it :3

Thats a great idea but in a 5min round thats 3 leaps x 48 slot server thats a bunch of fleas on a dog :lol:
Its a great idea (the plug) I come across so many in here which means a crowded server of plugs
So far I have throw knives, homing missiles an auto sniper vending machine, a magic deagle a magic awp. All of which cost money to use which basically restricts to much activity and forces at least some normal gameplay during the time it takes to refund themselves.
I have fiinally set it up so that everyone gets to use most of the things available at least once every 5 min round. Hence wanting to see if I could persuade you to add a cost & limit cvar.

EDIT

lol at video

DarthNinja 05-16-2011 22:38

Re: [Any] Ninja Leap
 
Adding a "cost" would make it CS:S only. :3
Adding a hard cap per round just seems sloppy since round times vary wildly between servers/maps/games.

If you really want a custom version done I could do that just for you though.

Annihilator 05-17-2011 17:16

Re: [Any] Ninja Leap
 
Well, a simple check to see if the game uses money works quite fine :)

PHP Code:

new Money = -1;

public 
OnPluginStart()
{
Money FindSendPropOffs("CCSPlayer""m_iAccount");


Then you just check if it exists and thats all

PHP Code:

if (Money == -1) return; 


DarthNinja 05-26-2011 10:39

Re: [Any] Ninja Leap
 
I've just finished a version that uses a charge meter to limit jumps.
I'll most likely post it later today.

EGood 05-28-2011 13:15

Re: [Any] Ninja Leap
 
Nice work.


All times are GMT -4. The time now is 10:06.

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