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

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


Post New Thread Reply   
 
Thread Tools Display Modes
davejk
Junior Member
Join Date: Mar 2009
Old 03-12-2009 , 11:47   Re: [REQ] L4D - When hanging press E to drop.
Reply With Quote #31

I have a plugin that does this working - I'll post it once I iron out the last bug and see if there's a way to stop the "you're falling" music from playing (since it goes on for minutes and is extremely loud and annoying).
davejk is offline
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 03-12-2009 , 12:06   Re: [REQ] L4D - When hanging press E to drop.
Reply With Quote #32

Quote:
Originally Posted by davejk View Post
I have a plugin that does this working - I'll post it once I iron out the last bug and see if there's a way to stop the "you're falling" music from playing (since it goes on for minutes and is extremely loud and annoying).
Looking forward to that
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
madcap
Senior Member
Join Date: Feb 2009
Old 03-12-2009 , 12:41   Re: [REQ] L4D - When hanging press E to drop.
Reply With Quote #33

Nice! I let this one slip in favor of working on a plugin to control medpacks. Glad someone ran with this.
madcap is offline
KawMAN
SourceMod Donor
Join Date: Sep 2007
Location: Cracov
Old 03-12-2009 , 18:39   Re: [REQ] L4D - When hanging press E to drop.
Reply With Quote #34

maybe this help
PHP Code:
new g_offsHang;
//new g_offsIncap;

new Handle:g_Let_Go_enable INVALID_HANDLE;

public 
OnPluginStart()
{
    
g_Let_Go_enable CreateConVar("l4d_letgo_enable""1""1=Let Go is enabled, 0=Let Go disabled");
    
    
RegConsoleCmd("sm_l4d_letgo"letgo);
    
    
g_offsHang FindSendPropOffs("CTerrorPlayer""m_isHangingFromLedge");
    
//g_offsIncap = FindSendPropOffs("CTerrorPlayer", "m_isIncapacitated");
    
    
if (g_offsHang == -1||g_offsIncap==-1)
    {
        
SetFailState("* FATAL ERROR: Failed to get offset");
    }
}

public 
Action:letgo(clientargs)
{
    if(
GetConVarInt(g_Let_Go_enable))
    {
        if(
IsClientInGame(client)&&IsPlayerAlive(client))
        {
            new 
entvalue=GetEntData(client,g_offsHang,1);
            
            if(
entvalue==1)
            {
                
SetEntData(clientg_offsHang01true);
                
//SetEntData(client, g_offsIncap, 0, 1, true);
            
}
        }
    }
    return 
Plugin_Continue;

when Hanging and you execute sm_sethang <nick> 0 you fall

tested and its work, but after relese player is still incapacitated, i can change his incap state but i dont know how to get real after incap health
__________________

Last edited by KawMAN; 03-12-2009 at 20:42.
KawMAN is offline
Send a message via ICQ to KawMAN Send a message via Skype™ to KawMAN
RAAP
Member
Join Date: Jan 2008
Location: Vancouver, BC, Canada
Old 04-01-2009 , 20:51   Re: [REQ] L4D - When hanging press E to drop.
Reply With Quote #35

I guess everybody gave up on this??
__________________
RAAP is offline
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 04-02-2009 , 06:00   Re: [REQ] L4D - When hanging press E to drop.
Reply With Quote #36

Quote:
Originally Posted by RAAP View Post
I guess everybody gave up on this??
TTTT(To Tell The Truth), I -am- w/ your idea, supporting it I wish I'd know C++, would code it myself.
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
madcap
Senior Member
Join Date: Feb 2009
Old 04-02-2009 , 06:57   Re: [REQ] L4D - When hanging press E to drop.
Reply With Quote #37

Quote:
Originally Posted by RAAP View Post
I guess everybody gave up on this??
I think we were all waiting on davejk's code.
madcap is offline
RAAP
Member
Join Date: Jan 2008
Location: Vancouver, BC, Canada
Old 04-08-2009 , 22:09   Re: [REQ] L4D - When hanging press E to drop.
Reply With Quote #38

I PMed davejk to check the status, but no response so far.....
__________________
RAAP is offline
AltPluzF4
Senior Member
Join Date: Aug 2007
Old 04-10-2009 , 02:29   Re: [REQ] L4D - When hanging press E to drop.
Reply With Quote #39

This interested me, so I attempted to make one... unfortunately it seems like m_isIncapacitated blocks IN_USE clientside.

However, IN_DUCK seems unaffected, so I just settled with that...
Here's the plugin if you care...

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

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.
madcap 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 06:11.


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