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

[REQ] L4D2 Waterslowdown Removal


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TrueSurvivor
Member
Join Date: Jun 2010
Old 04-20-2012 , 11:51   [REQ] L4D2 Waterslowdown Removal
Reply With Quote #1

Hey guys,

I've mainly been playing on Survival for a while and have established a config to use on Survival, supporting maps that aren't supported in L4D2 Survival by default.
There's just one problem I'm running into and that is Water Slowdown, if it's not too much time could someone help me on a plugin that allows me to reduce or remove the slowdown effect caused by the water?

Thanks, >:]
TrueSurvivor is offline
Visual77
Veteran Member
Join Date: Jan 2009
Old 04-20-2012 , 12:11   Re: [REQ] L4D2 Waterslowdown Removal
Reply With Quote #2

did you try this: http://forums.alliedmods.net/showthread.php?p=1045232

if you change this cvar: l4d2_vswaterbrake_slow (default 0.7) - How much slower will a Survivor be in water - 0.75 equals 75% speed

to 1.0, that equals to 100 % speed which is the speed you have when you're not in water. technicly means that you have no slow down.
if you would set it to 3.0, you would run 3 times faster in water than you would do up on land.

Last edited by Visual77; 04-20-2012 at 12:14.
Visual77 is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 04-20-2012 , 12:21   Re: [REQ] L4D2 Waterslowdown Removal
Reply With Quote #3

I cannot test this, but maybe it works.

PHP Code:
#include <sourcemod>
#pragma semicolon 1



public Action:OnPlayerRunCmd(client)
{
    static 
flags;
    
    
flags GetEntityFlags(client);
    
    if(
flags FL_INWATER)
    {
        
flags &= ~FL_INWATER;
        
SetEntityFlags(clientflags);
    }
    
    return 
Plugin_Continue;

Compile here.

Yours sincerely
Impact
__________________
Impact123 is offline
TrueSurvivor
Member
Join Date: Jun 2010
Old 04-20-2012 , 13:02   Re: [REQ] L4D2 Waterslowdown Removal
Reply With Quote #4

Quote:
Originally Posted by Visual77 View Post
did you try this: http://forums.alliedmods.net/showthread.php?p=1045232

if you change this cvar: l4d2_vswaterbrake_slow (default 0.7) - How much slower will a Survivor be in water - 0.75 equals 75% speed

to 1.0, that equals to 100 % speed which is the speed you have when you're not in water. technicly means that you have no slow down.
if you would set it to 3.0, you would run 3 times faster in water than you would do up on land.
I've tried this one already, at first I misunderstood and kept lowering it which did have an effect; even more slowdown. Turning it up has no effect :/

Quote:
Originally Posted by Impact123 View Post
I cannot test this, but maybe it works.
Didn't have any effect, even though the code should make the game believe they're still on land. Hm.

Thanks for help and quick responses so far guys, really appreciate it. :]
TrueSurvivor is offline
Visual77
Veteran Member
Join Date: Jan 2009
Old 04-20-2012 , 14:05   Re: [REQ] L4D2 Waterslowdown Removal
Reply With Quote #5

Quote:
Originally Posted by TrueSurvivor View Post
I've tried this one already, at first I misunderstood and kept lowering it which did have an effect; even more slowdown. Turning it up has no effect :/

Didn't have any effect, even though the code should make the game believe they're still on land. Hm.

Thanks for help and quick responses so far guys, really appreciate it. :]
it should have an effect because I've used this plugin to increase (not decrease) the run speed in water before.
did you reboot your server after adding l4d2_vswaterbrake_slow 1.0 to your server.cfg?

can you also try if l4d2_vswaterbrake_gamemodeactive "" will allow the plugin to work on all game modes?

Last edited by Visual77; 04-20-2012 at 15:32.
Visual77 is offline
TrueSurvivor
Member
Join Date: Jun 2010
Old 04-21-2012 , 08:31   Re: [REQ] L4D2 Waterslowdown Removal
Reply With Quote #6

Turns out I had to go over 1 to make it work, 1 seems to be the default slowdown you get in the water. Going up to 1.45 would make it like if I were on land.

Thanks a bunch. >:]
TrueSurvivor 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:46.


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