Raised This Month: $ Target: $400
 0% 

[L4D2] What is the entity called


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JLmelenchon
Senior Member
Join Date: Mar 2019
Old 06-12-2022 , 01:58   [L4D2] What is the entity called
Reply With Quote #1

What is the entity called when an infected player is dead and waiting for respawn ? (observing)

GetEntProp(client, Prop_Send, "m_is???") == 1)
JLmelenchon is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 06-13-2022 , 04:28   Re: [L4D2] What is the entity called
Reply With Quote #2

Quote:
Originally Posted by JLmelenchon View Post
What is the entity called when an infected player is dead and waiting for respawn ? (observing)

GetEntProp(client, Prop_Send, "m_is???") == 1)
https://forums.alliedmods.net/showthread.php?t=321696

L4D_State_Transition allows to transition to that state, but I can't seem to find a getter. You can investigate further in that thread perhaps.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 06-13-2022 , 07:52   Re: [L4D2] What is the entity called
Reply With Quote #3

Depends on what you want, if you want to know if a player is in "ghost" mode, check m_isGhost
__________________
Marttt is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-13-2022 , 11:23   Re: [L4D2] What is the entity called
Reply With Quote #4

Quote:
Originally Posted by eyal282 View Post
https://forums.alliedmods.net/showthread.php?t=321696

L4D_State_Transition allows to transition to that state, but I can't seem to find a getter. You can investigate further in that thread perhaps.
PHP Code:
GetEntProp(clientProp_Send"m_iPlayerState"); 
__________________
Silvers is offline
JLmelenchon
Senior Member
Join Date: Mar 2019
Old 06-13-2022 , 20:52   Re: [L4D2] What is the entity called
Reply With Quote #5

Code:
public Action:Hook_SetTransmit(client, entity)
{
	
    if (IsValidClient(client) && IsValidClient(entity) // Actual Clients?!
    && GetClientTeam(client) == 3 // Are we transmitting Infected Data?
    && GetClientTeam(entity) == 2 // Are we transmitting Infected Data to a Survivor?
    && GetEntProp(client, Prop_Send, "m_iPlayerState") == 1) // Is the Infected Player in transition state?
    {
    	return Plugin_Handled; // Block info from being transmitted to client if true.
    }
    return Plugin_Continue; // Transmit Data!
}
Will work ?

Last edited by JLmelenchon; 06-13-2022 at 20:52.
JLmelenchon 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 04:38.


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