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

[L4D2] Release Victim Extended Version


Post New Thread Reply   
 
Thread Tools Display Modes
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 12-25-2020 , 21:10   Re: [L4D2] Release Victim Extended Version
Reply With Quote #11

Quote:
Originally Posted by axelnieves2012 View Post
Is this only for versus??? I would like IA auto-release victims
I'm not sure when they should release the victim
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
axelnieves2012
Senior Member
Join Date: Oct 2014
Location: Argentina
Old 12-26-2020 , 14:11   Re: [L4D2] Release Victim Extended Version
Reply With Quote #12

Quote:
Originally Posted by BHaType View Post
I'm not sure when they should release the victim
They should release their victims when incapacitating someone (just like jockey).
I made my own version.

PHP Code:
public void event_player_incapacitated(Event event, const char[] namebool dontbroadcast)
{
    
int victim GetClientOfUserId(GetEventInt(event"userid"));
    if ( !
IsValidClientInGame(victim) )
        return;
    if ( 
GetClientTeam(victim)!=)
        return;
    
    
int client;
    if ( (
client=GetEntPropEnt(victimProp_Send"m_pummelAttacker"))>){}
    else if ( (
client=GetEntPropEnt(victimProp_Send"m_tongueOwner"))>){}
    else if ( (
client=GetEntPropEnt(victimProp_Send"m_pounceAttacker"))>){}
    else
    {
        return;
    }
    
    if ( !
IsValidClientInGame(client) )
    {
        return;
    }
    if ( 
GetClientTeam(client)!=)
    {
        return;
    }
    
    
int iClass GetEntData(clientg_iZombieClass);
    
int index;
    
    switch (
iClass)
    {
        case 
6index GetEntData(clientg_iCharger);
        case 
3index GetEntData(clientg_iHunter);
        case 
5index GetEntData(clientg_iJockey);
        case 
1
        {
            
int iEntity GetEntPropEnt(clientProp_Send"m_customAbility");
            
            if (
iEntity <= MaxClients)
                return;
            
            
index GetEntData(iEntityg_iSmoker);
        }
    }

    if (
index <= || (iClass == && index != 3))
        return;
    
    
Release(clientiClass);
}
stock int IsValidClientInGame(int client)
{
    if (
IsValidClientIndex(client))
    {
        if (
IsClientInGame(client))
            return 
1;
    }
    return 
0;
}

stock int IsValidClientIndex(int index)
{
    if (
index>&& index<=MaxClients)
    {
        return 
1;
    }
    return 
0;

l4d2_release_victim.sp

Using this along with Target Overide plugin, IA is smarter and efficient.

Last edited by axelnieves2012; 12-26-2020 at 14:13.
axelnieves2012 is offline
Tank Rush
Senior Member
Join Date: May 2019
Location: Argentina
Old 02-12-2021 , 20:12   Re: [L4D2] Release Victim Extended Version
Reply With Quote #13

I changed sm_release_distance and sm_release_height to "0" to prevent the infected player from jumping when releasing the survivor, but nothing changed.
How do I cancel this jump?
__________________
Sorry i don't speak english very well

--->My name is Source and I'm on Steam<---
Discord: Source#9382
Tank Rush is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 02-16-2021 , 17:35   Re: [L4D2] Release Victim Extended Version
Reply With Quote #14

Quote:
Originally Posted by Tank Rush View Post
I changed sm_release_distance and sm_release_height to "0" to prevent the infected player from jumping when releasing the survivor, but nothing changed.
How do I cancel this jump?
Check again, try to use sm_cvar because I just checked and everything works as it should
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
Tank Rush
Senior Member
Join Date: May 2019
Location: Argentina
Old 02-23-2021 , 21:03   Re: [L4D2] Release Victim Extended Version
Reply With Quote #15

Quote:
Originally Posted by BHaType View Post
Check again, try to use sm_cvar because I just checked and everything works as it should
I had already tried using sm_cvar but it still makes a jump when freeing the survivor.

Here a video demonstration
__________________
Sorry i don't speak english very well

--->My name is Source and I'm on Steam<---
Discord: Source#9382
Tank Rush is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 02-23-2021 , 22:47   Re: [L4D2] Release Victim Extended Version
Reply With Quote #16

Quote:
Originally Posted by Tank Rush View Post
I changed sm_release_distance and sm_release_height to "0" to prevent the infected player from jumping when releasing the survivor, but nothing changed.
How do I cancel this jump?
try Low value?
PHP Code:
// Release distance
sm_release_distance "100.0"

// Release height
sm_release_height "100.0" 
__________________
HarryPotter is offline
Tank Rush
Senior Member
Join Date: May 2019
Location: Argentina
Old 02-24-2021 , 19:30   Re: [L4D2] Release Victim Extended Version
Reply With Quote #17

Quote:
Originally Posted by HarryPotter View Post
try Low value?
PHP Code:
// Release distance
sm_release_distance "100.0"

// Release height
sm_release_height "100.0" 
That's right, I don't know what the minimum values are, if it's "100" I try to lower it to "0" to prevent the infected player from jumping when freeing the victim.

It would also be good to add a new cvar:
PHP Code:
sm_release_incap Free the incapacitated survivor 
__________________
Sorry i don't speak english very well

--->My name is Source and I'm on Steam<---
Discord: Source#9382

Last edited by Tank Rush; 02-24-2021 at 19:33.
Tank Rush is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 06-15-2021 , 14:32   Re: [L4D2] Release Victim Extended Version
Reply With Quote #18

A recent L4D2 update rolled out and broke some signatures:
PHP Code:
"CTerrorPlayer::ReleaseTongueVictim"
{
    
"library"    "server"
    "windows"    "\x53\x8B\xDC\x83\xEC\x08\x83\xE4\xF0\x83\xC4\x04\x55\x8B\x6B\x04\x89\x6C\x24\x04\x8B\xEC\x83\xEC\x28\x8B\x81\xD4\x33\x00\x00"
    
/* 53 8B DC 83 EC 08 83 E4 F0 83 C4 04 55 8B 6B 04 89 6C 24 04 8B EC 83 EC 28 8B 81 D4 33 00 00 */
}
"CTerrorPlayer::OnPounceEnded"
{
    
"library"    "server"
    "windows"    "\x55\x8B\xEC\x51\x53\x8B\xD9\x80\xBB\x8C\x3E\x00\x00\x00"
    
/* 55 8B EC 51 53 8B D9 80 BB 8C 3E 00 00 00 */
}
"CTerrorPlayer::OnPummelEnded"
{
    
"library"    "server"
    "windows"    "\x55\x8B\xEC\x8B\x15\x2A\x2A\x2A\x2A\x53\x56\x8B\xF1\x8B\x86\x58\x3E\x00\x00"
    
/* 55 8B EC 8B 15 ? ? ? ? 53 56 8B F1 8B 86 58 3E 00 00 */

All of them only had one byte changed.

Last edited by cravenge; 06-15-2021 at 15:58. Reason: Fetched all affected signatures
cravenge is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 06-23-2021 , 01:54   Re: [L4D2] Release Victim Extended Version
Reply With Quote #19

Update

PHP Code:
Fixed signatures (thanks to cravenge
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
Hawkins
Senior Member
Join Date: Jul 2021
Old 07-22-2021 , 09:28   Re: [L4D2] Release Victim Extended Version
Reply With Quote #20

So is there a way to remove jumping off when releasing the victim?
Setting both values to 0 doesnt help, atleast not for hunter.
Hawkins 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 14:20.


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