Raised This Month: $51 Target: $400
 12% 

[REQ] L4D - When hanging press E to drop.


Post New Thread Reply   
 
Thread Tools Display Modes
AltPluzF4
Senior Member
Join Date: Aug 2007
Old 04-10-2009 , 21:49   Re: [REQ] L4D - When hanging press E to drop.
Reply With Quote #41

Quote:
Originally Posted by madcap View Post
Tested. Works well. Even handles temporary health correctly.

Only problem is the "You're falling" sound doesn't stop playing.

Are you going to submit this as a new plugin? If you don't want to own this I'd be willing to support/maintain it.
Sorry about that, tested without sound.
I'll look into it.
If I have to make an extension, then I may submit it, if not you're free to take it as your own, just send a PM when/if you need changes. I'll try to report back if I find out anymore about the sound playing. Just a bit busy trying to "learn" SP while making stuff for the owner of Lotus servers lol.

Also, I accidently left it as OnPlayerUse, which doesn't make any difference but makes no sense. So if you do submit it before I find a fix for the sound, please rename to OnPlayerDrop or something lol
AltPluzF4 is offline
vegetablegod
Member
Join Date: Mar 2009
Location: Greeneville, TN
Old 04-11-2009 , 08:56   Re: [REQ] L4D - When hanging press E to drop.
Reply With Quote #42

I just wish there was something to set the time the player can hang.
__________________
vegetablegod is offline
AltPluzF4
Senior Member
Join Date: Aug 2007
Old 04-11-2009 , 20:03   Re: [REQ] L4D - When hanging press E to drop.
Reply With Quote #43

Well, I tried modifying every sendprop that was different after being revived compared to after dropping, and can't get the sound to stop. The binary shows after revival a bunch of calls to CMusic::StopMusic, so it can probably be fixed with an extension.... currently I'm a bit too busy though, so if someone doesn't take over, I'll look into it if/when I get free time.

Peace <3

vegetablegod, can you explain a bit more? Time they can hang as in? If you mean a minimal time they must hang before dropping, then I can add that. If you mean something else, you'll have to explain. Thanks
AltPluzF4 is offline
vegetablegod
Member
Join Date: Mar 2009
Location: Greeneville, TN
Old 04-12-2009 , 09:01   Re: [REQ] L4D - When hanging press E to drop.
Reply With Quote #44

Sorry Alt. I should have been more clear. That is what I meant though. "a minimal time they must hang before dropping".
__________________
vegetablegod is offline
AltPluzF4
Senior Member
Join Date: Aug 2007
Old 04-12-2009 , 10:42   Re: [REQ] L4D - When hanging press E to drop.
Reply With Quote #45

Alright, added a minimal time... Also, I added a damage loss for dropping (default 2hp), since being rescued, you lose a minimal of 2hp.

Both are convars, so adjust freely.

I might get some free time this week, so I'll look into an extension to stop the music.

Last edited by AltPluzF4; 05-04-2009 at 21:26.
AltPluzF4 is offline
vegetablegod
Member
Join Date: Mar 2009
Location: Greeneville, TN
Old 04-12-2009 , 21:37   Re: [REQ] L4D - When hanging press E to drop.
Reply With Quote #46

Thanks for the help! where do I place the convars?

Also, I guess I really should have explained myself more clearly before...

When you hang from a ledge, you hang for roughly 1 minute and 45 seconds before you fall to your death. I was wondering if you could add something to shorten that time.
__________________
vegetablegod is offline
AltPluzF4
Senior Member
Join Date: Aug 2007
Old 04-13-2009 , 10:10   Re: [REQ] L4D - When hanging press E to drop.
Reply With Quote #47

vegetablegod: I'm not sure about changing that, but I'm sure it could be done... I just don't think it really fits this plugin though. Maybe a separate one.

Anyway...
here's the final I'm doing.

If anyone wants to take over, please do so.

Currently there are 3 convars
1.) ledge_minimal_time - default 1.0 seconds, The length a player must hang from a ledge before they are allowed to drop.
2.) ledge_drop_damage - default 2 hp, The amount of HP you lose if you drop. (Defaulted to 2, because if you are saved from a ledge you still lose a minimal of 2hp)
3.) ledge_message - A message to display to the client. Just something to inform them they have the option of ducking to drop.

I couldn't get USE key to work, so I have to settle for Duck key. It's acceptable though, because many games have it so ducking is the way to drop from ledges.

To stop the music, it uses a clientcommand music_dynamic_stop_playing, which as far as I can tell, works for both listenserver and dedicated server. Not the best way, probably, but it works?

Anyway, hopefully someone will find this source useful. I've included the smx too, just in case.

Last edited by AltPluzF4; 05-04-2009 at 21:26.
AltPluzF4 is offline
madcap
Senior Member
Join Date: Feb 2009
Old 04-13-2009 , 11:30   Re: [REQ] L4D - When hanging press E to drop.
Reply With Quote #48

Nicely done. I'll submit and maintain this unless someone else wants to volunteer.
madcap is offline
RAAP
Member
Join Date: Jan 2008
Location: Vancouver, BC, Canada
Old 04-15-2009 , 21:06   Re: [REQ] L4D - When hanging press E to drop.
Reply With Quote #49

Quote:
Originally Posted by vegetablegod View Post
I just wish there was something to set the time the player can hang.
Then submit a request like I did.
__________________
RAAP is offline
RAAP
Member
Join Date: Jan 2008
Location: Vancouver, BC, Canada
Old 04-15-2009 , 21:30   Re: [REQ] L4D - When hanging press E to drop.
Reply With Quote #50

Alt thanks alot, the plugin works perfectly!
__________________
RAAP 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 08:03.


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