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

Solved L4D2: How to change to Drop_shift+t


Post New Thread Reply   
 
Thread Tools Display Modes
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 11-09-2021 , 10:08   Re: L4D2: How to change to Drop_shift+t
Reply With Quote #11

Don't know how to explain or teach you

The plugin code has this part (R version)

PHP Code:
public Action:OnPlayerRunCmd(client, &buttons, &impulsFloat:vel[3], Float:angles[3], &weapon)
{
    if(
CanPlayerDrop[client] == false && (buttons IN_SPEED) && (buttons IN_RELOAD))
    {
        return 
Plugin_Continue;
    }

    if(
GetClientTeam(client) == && !IsFakeClient(client) && IsPlayerAlive(client) && (buttons IN_SPEED) && (buttons IN_RELOAD))
    {
        
CanPlayerDrop[client] = false;
        
CreateTimer(0.5ResetDelayclient);
        
Command_Drop(client0)
    }

    return 
Plugin_Continue;

You have to change for example, IN_RELOAD to another value from the HarryPotter post.

Spoiler


But there is no value available for the "T" key, so can't solve your request.

I would stick with the R or E version cause there aren't many keys that you can bind it. (some L4D doesn't even have)

The available keys are kind self-explanatory (some):

IN_ATTACK = M1 (fire)
IN_ATTACK2 = M2 (shove)
IN_ZOOM = M3 (zoom)
IN_DUCK = CTRL
IN_FORWARD = W
IN_BACK = S
IN_LEFT = A
IN_RIGHT = D
IN_USE = E
IN_JUMP = SPACE
IN_RELOAD = R
IN_SCORE = TAB
IN_WALK = SHIFT
__________________
Marttt is offline
vipgozmaka07
New Member
Join Date: Jan 2020
Old 11-24-2021 , 12:42   Re: L4D2: How to change to Drop_shift+t
Reply With Quote #12

Hi, here is version Drop_shift+t
Attached Files
File Type: sp Get Plugin or Get Source (l4d_drop_T.sp - 110 views - 11.3 KB)
vipgozmaka07 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 11-24-2021 , 13:58   Re: L4D2: How to change to Drop_shift+t
Reply With Quote #13

T = impulse 201.

More impulse codes here:
https://developer.valvesoftware.com/wiki/Impulse
__________________

Last edited by Marttt; 11-24-2021 at 13:59.
Marttt is offline
yabi
Senior Member
Join Date: Jun 2021
Location: Taiwan
Old 11-25-2021 , 21:23   Re: L4D2: How to change to Drop_shift+t
Reply With Quote #14

Quote:
Originally Posted by vipgozmaka07 View Post
Hi, here is version Drop_shift+t

The world is beautiful because of you
thank you for your help
yabi is offline
yabi
Senior Member
Join Date: Jun 2021
Location: Taiwan
Old 11-25-2021 , 21:24   Re: L4D2: How to change to Drop_shift+t
Reply With Quote #15

Quote:
Originally Posted by Marttt View Post
T = impulse 201.

More impulse codes here:
https://developer.valvesoftware.com/wiki/Impulse


Thank you Matt for the information
yabi is offline
yabi
Senior Member
Join Date: Jun 2021
Location: Taiwan
Old 11-25-2021 , 21:26   Re: L4D2: How to change to Drop_shift+t
Reply With Quote #16

Quote:
Originally Posted by Marttt View Post
T = impulse 201.

More impulse codes here:
https://developer.valvesoftware.com/wiki/Impulse

Thank you for your help
yabi is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 11-26-2021 , 04:46   Re: L4D2: How to change to Drop_shift+t
Reply With Quote #17

Quote:
Originally Posted by Marttt View Post
as already said, is not possible to detect the "T" (default: team chat) key with sourcemod
You have to bind to one of the keys that HarryPotter shared above.
Pretty sure T is spray, which as said above, impulse 201 was the method to use it in CS 1.6/
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 11-26-2021 , 05:51   Re: L4D2: How to change to Drop_shift+t
Reply With Quote #18

Yes, I made a mistake, confused with the "U" button which is the team's chat.
I don't have my "T" key bound to my game since I don't use sprays.
For L4D series works as well
__________________
Marttt 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 20:59.


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