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

Death From Above ( v1.0.2 20/10/2013 )


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 10-17-2013 , 19:52   Death From Above ( v1.0.2 20/10/2013 )
Reply With Quote #1

Death From Above
Version 1.0.2
By Blizzard_87


ThreadStart
Description
This Plugin Allows The Player To Purchase An Ability Called 'Death From Above'
Once Purchased The Player Can Then Use His +jump Button To Leap High Into The Air
Then Once At Height Player Likes Then Presses +duck Button To Plummet Back To The Ground Thus
Creating A Explosion Dealing Damage/Killing Nearby Enemys.

Cvars
dfa_mode
  • "0" = Plugin Set To Off
  • "1" = Explosion Damage Dealth From Fall Dmg
  • "2" = Explosion Damage Dealth From dfa_dmg_amount cvar amount
dfa_cost
  • "1000" = Price In Money For Purchasing DFA
dfa_debug
  • "0" = Sets Debug Messages Off
  • "1" = Shows Amount Of Damage From Fall/Cvar Damge In Client_Print Msgs
dfa_acend_power
  • "1000.0" = The Velocity Power Player Gets For Jumping
dfa_decend_power
  • "2000.0" = The Velocity Power Player Is Plummeted To Ground ( Higher Number Faster Player Falls ) Higher Fall Velocity Higher Damage On dfa_mode "1"
dfa_dmg_amount
  • "200" = the damage dealt within the explosion if dfa_mode "2" set

Client Commands
say /dfa = Buys Death From Above Ability.

Credits
Blizzard - Author & Idea
hornet - got bitwise from him off another plugin i did with his help and on ham enable / disable forwards

ChangeLog
---------
October 20/10/2013 - v1.0.2
  • bug if pressing crouch multi times whilst on ground would kill player

October 19/10/2013 - v1.0.1
  • Fixed Flying Glitch Being Able To Multi Jump

October 18/10/2013 - v1.0.0
  • Original Release.
Plugin Download Count
30+ Current


ThreadEnd
.
Attached Files
File Type: sma Get Plugin or Get Source (amx_dfa.sma - 877 views - 9.0 KB)
__________________

Last edited by Blizzard_87; 04-25-2015 at 13:10.
Blizzard_87 is offline
Old 10-17-2013, 19:53
Blizzard_87
This message has been deleted by Blizzard_87.
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-18-2013 , 08:36   Re: Death From Above ( Ability )
Reply With Quote #2

seems nice for fun servers that are using rtd & stuff
good job
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 10-18-2013 , 09:56   Re: Death From Above ( Ability )
Reply With Quote #3

Is that Deidara's Jutsu?
__________________
Jhob94 is offline
Old 10-18-2013, 12:44
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: troll, or posting random confusing code, or posting for posts count
nikolov
Senior Member
Join Date: Feb 2011
Old 10-18-2013 , 13:20   Re: Death From Above ( Ability )
Reply With Quote #4

Probably you shoud to make timer after using JUMP, because you can easily fly. Smth like: "You have 5 seconds to press your DUCK key or it will be pressed automatically..."
nikolov is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 10-18-2013 , 15:00   Re: Death From Above ( Ability )
Reply With Quote #5

Quote:
Originally Posted by Napoleon_be View Post
seems nice for fun servers that are using rtd & stuff
good job
thanks

Quote:
Originally Posted by Jhob94 View Post
Is that Deidara's Jutsu?
Huh?

Quote:
Originally Posted by LordOfNothing View Post
Make a video
i dont have a public server to be able to... if someone wants to they can ?

Quote:
Originally Posted by nikolov View Post
Probably you shoud to make timer after using JUMP, because you can easily fly. Smth like: "You have 5 seconds to press your DUCK key or it will be pressed automatically..."
i could or i could just make it so after you use JUMP, it doesnt let you jump again while in the air... which would stop the glitch of flying


EDIT:

Plugin Updated Version 1.0.1

Fixed Flying Glitch.
__________________

Last edited by Blizzard_87; 10-18-2013 at 17:04.
Blizzard_87 is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 10-19-2013 , 17:17   Re: Death From Above ( v1.0.2 20/10/2013 )
Reply With Quote #6

Updated Plugin v1.0.2

[ FIXED ]
bug if pressing crouch multi times whilst on ground would kill player
__________________
Blizzard_87 is offline
Old 05-15-2014, 03:40
ezio_auditore
This message has been deleted by hornet. Reason: spam / post for posts count
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-06-2015 , 05:47   Re: Death From Above ( v1.0.2 20/10/2013 )
Reply With Quote #7

1.cm is kinda pointless, amxx already provide charsmax(), which is esentially the same thing. But for consistency you should use charsmax.
2.
PHP Code:
if( is_user_aliveid ) && get_pcvar_numg_pMode ) ) 
Checking again get_pcvar_num it's pointless, you will reach here only if it's not 0(you do a check above this line).
3.
PHP Code:
set_task0.9"ShowHud"id__"b" ); 
Don't create a task for each player, make a global one from a place like init and loop all players inside it. You could use directly 1.0. Also set the hudmessage hold time the same as the task time.But, after all, I am not sure such hud is needed, you can likely let only the message when player buy the power, this should be enough.
4.Remove the stock keyword from your functions.
5.What you do with float_to_num is silly, look for floatround.
6.AMXX 1.8.3 has a native for colored messages, so you could check the version and decide if you will use your stock or the native.
7.Any specific reasons for defining FALL_DMG given that we already have a DMG_FALL defined in amxx ? So, remove FALL_DMG and use DMG_FALL. Also bitsDamageType == FALL_DMG should be bitsDamageType & FALL_DMG.
8.cs_get_user_team should be retrieved inside no_team_dmg, or ExecuteExplosion(but only one time, so cache this value).
9.In Reduce you call again cs_get_user_money, but this value is cached inside CmdDeathFromAbove.
10.Add ML, it's easy and make plugin more user friendly.
11.g_pMode cvar check should be done inside CBasePlayer_TakeDamage and passing the right damage value to ExecuteExplosion. Checking inside ExecuteExplosion and only using the value if the cvar is 1 is weird. This way it will make more sense.
12.You could likely remove the debug messages and the cvar, it's of no use for the end user. Do you have a specific reason for putting them in a released plugin ?

A bunch with which you can start.
__________________

Last edited by HamletEagle; 09-06-2015 at 08:22.
HamletEagle is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 09-06-2015 , 23:44   Re: Death From Above ( v1.0.2 20/10/2013 )
Reply With Quote #8

When I get time I'll have a look into this. As I made this year's ago. I'll probably just re write it.
__________________
Blizzard_87 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-21-2015 , 11:17   Re: Death From Above ( v1.0.2 20/10/2013 )
Reply With Quote #9

15 days have passed and I don't see any changes from the author. Since section needs to be cleaned I'll unapprove this for now, but don't worry, your plugin can be reviewed at any time. PM a plugin approver after you made the changes.
__________________
HamletEagle is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 09-21-2015 , 19:14   Re: Death From Above ( v1.0.2 20/10/2013 )
Reply With Quote #10

Yeah no worries. Just been real busy. Once I get to this I'll pm you.
__________________
Blizzard_87 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 02:53.


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