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

Master list of l4d2 signatures for plugins?


Post New Thread Reply   
 
Thread Tools Display Modes
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 07-17-2017 , 14:24   Re: Master list of l4d2 signatures for plugins?
Reply With Quote #11

Quote:
Originally Posted by Lux View Post
There is an event for Pummle end

https://wiki.alliedmods.net/Left_4_D...ger_pummel_end

May help with not needing an signiture.
If I remember correctly, these events will do nothing when you trigger them. They are only triggerable via signatures, which is why I had made aplugin to do that originally: https://forums.alliedmods.net/showth...09715?t=109715
Thraka is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 07-17-2017 , 15:10   Re: Master list of l4d2 signatures for plugins?
Reply With Quote #12

Quote:
Originally Posted by Thraka View Post
If I remember correctly, these events will do nothing when you trigger them. They are only triggerable via signatures, which is why I had made aplugin to do that originally: https://forums.alliedmods.net/showth...09715?t=109715
Hmm i see you could just stagger the infected for 1 frame that will release them.

Edit:
You should never need to use/update signiture again.
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D

Last edited by Lux; 07-17-2017 at 15:16.
Lux is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 07-17-2017 , 16:24   Re: Master list of l4d2 signatures for plugins?
Reply With Quote #13

I just checked the old signature, and it appears to be still valid.

PHP Code:
55 8B EC 8B 15 ? ? ? ? 53 56 8B F1 8B 
It is hard to find the signatures on windows. Its a matter of trial and error from what I've learned. Sure, you can very easily find the Linux signature, but then comparing it and matching it with Windows binary is such a tedious task.

I've been trying to make sure all the l4d2 stuff is up to date, so I might be able to help, if you need a certain signature.
__________________
Spirit_12 is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 07-17-2017 , 18:28   Re: Master list of l4d2 signatures for plugins?
Reply With Quote #14

There is a way to release pummeled victims without the signature:
PHP Code:
// PLAYER_ANIM_EVENT_CHARGER_RELEASE = 78

#include <l4d2_direct>
#include <l4d2_cravenge_stocks>

public Action OnPlayerRunCmd(int clientint &buttonsint &impulsefloat vec[3], float angles[3], int &weapon)
{
    if (!
IsCharger(client) || !IsPlayerAlive(client) || IsFakeClient(client))
    {
        return 
Plugin_Continue;
    }
    
    if (
buttons IN_ATTACK2)
    {
        
int iPummeledVictim GetEntPropEnt(clientProp_Send"m_pummelVictim");
        if (!
IsSurvivor(iPummeledVictim) || !IsPlayerAlive(iPummeledVictim))
        {
            return 
Plugin_Continue;
        }
        
        
SetEntPropEnt(iPummeledVictimProp_Send"m_pummelAttacker", -1);
        
SetEntPropEnt(clientProp_Send"m_pummelVictim", -1);
        
        
L4D2Direct_DoAnimationEvent(iPummeledVictim78);
        
        
Event OnChargerPummelEnd CreateEvent("charger_pummel_end"true);
        
OnChargerPummelEnd.SetInt("userid"GetClientUserId(client));
        
OnChargerPummelEnd.SetInt("victim"GetClientUserId(iPummeledVictim));
        
OnChargerPummelEnd.Fire();
        
        
int iAbility GetEntPropEnt(clientProp_Send"m_customAbility");
        if (
IsValidEntity(iAbility))
        {
            
float fChargeTime float(FindConVar("z_charge_interval").IntValue);
            
            
SetEntPropFloat(iAbilityProp_Send"m_duration"fChargeTime);
            
SetEntPropFloat(iAbilityProp_Send"m_timestamp"GetGameTime() + fChargeTime);
        }
    }
    
    return 
Plugin_Continue;

An almost replicate of the game logic.

Last edited by cravenge; 07-17-2017 at 18:42.
cravenge is offline
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 08-07-2017 , 20:33   Re: Master list of l4d2 signatures for plugins?
Reply With Quote #15

Perhaps you can shortcut me and give me the offset for windows on

"CTerrorPlayer::OnPounceEnd"
"CBaseAbility::StartActivationTimer"
Thraka is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 08-07-2017 , 21:17   Re: Master list of l4d2 signatures for plugins?
Reply With Quote #16

Quote:
Originally Posted by Thraka View Post
Perhaps you can shortcut me and give me the offset for windows on

"CTerrorPlayer::OnPounceEnd"
"CBaseAbility::StartActivationTimer"
What offsets are you looking for? Need more information.

Here are the signatures for Windows.

PHP Code:
"CBaseAbility::StartActivationTimer"
{
        
"library"    "server"
        "linux" "@_ZN12CBaseAbility20StartActivationTimerEff"
        "windows" "\x55\x8B\xEC\xF3\x0F\x10\x4D\x0C\x0F\x57\xC0"
        
/* 55 8B EC F3 0F 10 4D 0C 0F 57 C0  */

PHP Code:
"CTerrorPlayer::OnPounceEnd"
{
        
"library"    "server"
        "linux" "@_ZN13CTerrorPlayer13OnPounceEndedEv"
        "windows" "\x55\x8B\xEC\x51\x53\x8B\xD9\x80\xBB\xAC\x3E\x00\x00\x00"
        
/* 55 8B EC 51 53 8B D9 80 BB AC 3E 00 00 00  */

__________________
Spirit_12 is offline
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 08-08-2017 , 00:57   Re: Master list of l4d2 signatures for plugins?
Reply With Quote #17

Thanks, I was just looking to update this plugin https://forums.alliedmods.net/showthread.php?p=994506
Thraka 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 11:58.


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