Raised This Month: $95 Target: $400
 23% 

Fall duck


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Exolent[jNr] (178)
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 12-03-2008 , 05:37   Fall duck
Reply With Quote #1

Fall duck


Description
Plugin reduces more fall damage the closer you duck before landing. You can modify plugin's mode and fall damage reduce by cvars. Plugin also shows stats from your ducking.

FD Stats
Time: How much time was spent between your ducking and landing to ground.
Factor: How much is your damage factor. This depends from your time and damage factor set by cvar.
Damage: How much damage would you take without fall ducking.
Damage taken: How much damage you take.

Cvars & defaults
fd_mode "1" - Sets the mode of the plugin.
0 - Plugin is off
1 - Normal mode, could be used in HNS. Stats will be shown and fall damage is reduced.
2 - KZ or training mode. Stats will be shown, but players don't get any fall damage.
fd_damagefactor "3.0" - Defines how much damage will be reduced. It's a factor, so 1.0 will reduce it 2 times more than 2.0.

Install & Usage
Plugin requires Fakemeta and Hamsandwich modules.

Other plugin information
-FD stats will be shown above stats in speedmeter or in ljstats.
-Plugin works with all velocity changing blocks.

Credits
Kobri hoped the plugin for Parkour HNS

Versions
1.2
-Fixed double message bug
-Optimized code
-Added handled returns, removed if.
1.1
-Changed Prethink to fakemeta forward
-Added Handled return
1.0
-First release
Attached Files
File Type: sma Get Plugin or Get Source (Fall_duck.sma - 3347 views - 3.1 KB)

Last edited by SnoW; 12-07-2008 at 10:17.
SnoW is offline
Send a message via MSN to SnoW
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 12-03-2008 , 08:56   Re: Fall duck
Reply With Quote #2

sounds good
If u make kobri's other ideas, you should make them include files and update with the include
Ill test this 2nite if i get time
__________________
minimiller is offline
Send a message via MSN to minimiller
<<<Anonysmous>>>
BANNED
Join Date: Apr 2008
Old 12-03-2008 , 14:11   Re: Fall duck
Reply With Quote #3

This plugin is very nice I use it on my lan server... Very Nice, Thanks for bringing more realism to CS .... In real you always have to duck when you fall don't you

EDIT : Tested And Worked Well
<<<Anonysmous>>> is offline
{PHILMAGROIN}
Senior Member
Join Date: Aug 2007
Location: In the middle of the des
Old 12-04-2008 , 01:18   Re: Fall duck
Reply With Quote #4

i added return PLUGIN_HANDLED on line 40 and got rid of the one warning.
Warning: Function "client_PreThink" should return a value on line 40

otherwise. goodjob!
__________________
[B]
{PHILMAGROIN} is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 12-04-2008 , 04:45   Re: Fall duck
Reply With Quote #5

Thanks guys.
@minimiller, Well we can't update everything with only includes can we.
@PHILMAGROIN, Ye didn't notice that it won't return anything there, compiler didn't remind me. Though it's not needed there, maybe I should update it.

Last edited by SnoW; 12-04-2008 at 04:53.
SnoW is offline
Send a message via MSN to SnoW
kobri
Senior Member
Join Date: Oct 2005
Location: Bulgaria
Old 12-04-2008 , 07:53   Re: Fall duck
Reply With Quote #6

THANK YOU again Snow!

We will test it right away. Do you by any chance use skype besides msn?
__________________
Founder of the legendary OptiLAN, MANIA and SECTOR.BG Gaming Communities
Providing everyday fun for over 15000 Bulgarian players!

http://about.me/kobri
kobri is offline
Send a message via Skype™ to kobri
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 12-04-2008 , 08:02   Re: Fall duck
Reply With Quote #7

This will really go out of topic. I'm pleasant to messenger(Used it many years) and ye don't even have skype. Should I have?
SnoW is offline
Send a message via MSN to SnoW
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-04-2008 , 08:22   Re: Fall duck
Reply With Quote #8

#include <engine> is missing.
__________________
- tired and retired -
ConnorMcLeod is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 12-04-2008 , 08:38   Re: Fall duck
Reply With Quote #9

I know I haven't include it, still I have no idea why should I?
SnoW is offline
Send a message via MSN to SnoW
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-04-2008 , 08:49   Re: Fall duck
Reply With Quote #10

client_PreThink is an engine forward. Since you're using fakemeta, use FM_PlayerPreThink.
__________________
Arkshine 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 13:51.


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