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

Solved [L4D2] How to check transition players EntProp?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 10-31-2016 , 08:53   [L4D2] How to check transition players EntProp?
Reply With Quote #1

According to the command director_print_player_counts we get the following information:
Code:
] director_print_player_counts 
1 transitioning survivors
8 connected survivors
0 transitioning infected
0 connected infected
How to check the player that he is transition survivor? No IsClientInGame or InClientConnected. It is through GetEntProp(client, Prop_Send/Data, "???") or any other means?

Last edited by Accelerator; 11-02-2016 at 06:08. Reason: https://forums.alliedmods.net/showthread.php?t=289925
Accelerator is offline
Marcus101RR
Veteran Member
Join Date: Aug 2009
Location: Tampa, FL
Old 10-31-2016 , 18:17   Re: [L4D2] How to check transition players EntProp?
Reply With Quote #2

Quote:
Originally Posted by Accelerator74 View Post
According to the command director_print_player_counts we get the following information:
Code:
] director_print_player_counts 
1 transitioning survivors
8 connected survivors
0 transitioning infected
0 connected infected
How to check the player that he is transition survivor? No IsClientInGame or InClientConnected. It is through GetEntProp(client, Prop_Send/Data, "???") or any other means?
Check their team? If they are not on 1,2 or 3, i think that means they are not fully connected to the session yet.
__________________
Marcus101RR is offline
Send a message via AIM to Marcus101RR Send a message via Skype™ to Marcus101RR
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 11-01-2016 , 00:33   Re: [L4D2] How to check transition players EntProp?
Reply With Quote #3

No. m_iTeamNum does not change on map_transmition.
I tried to change GameRule:
Code:
GameRules_SetProp("m_bIsTransitioningToNextMap", 0);
But change does not work. When changing the map, it is always 1 after the map change 0.
Accelerator is offline
Marcus101RR
Veteran Member
Join Date: Aug 2009
Location: Tampa, FL
Old 11-01-2016 , 15:16   Re: [L4D2] How to check transition players EntProp?
Reply With Quote #4

Quote:
Originally Posted by Accelerator74 View Post
No. m_iTeamNum does not change on map_transmition.
I tried to change GameRule:
Code:
GameRules_SetProp("m_bIsTransitioningToNextMap", 0);
But change does not work. When changing the map, it is always 1 after the map change 0.
I use Super Versus, and a player who isn't in-game doesn't appear in any team list, so there obviously is a way to determine if a player is not in the session, by their team and their status in the game. You should try a combination of Ingame, Is connected, and their team, if none apply, they are not fully in-game, basically until the player is on spectate or otherwise they are not in the game.

As you may or may not know, EntProp stands for Entity Properties, and Entities do not exist if they are not physically present in the game, so there wouldn't be a way to check EntProp on an entity that has no physical presence. Most would be NULL until they are fully active.
__________________

Last edited by Marcus101RR; 11-01-2016 at 15:19.
Marcus101RR is offline
Send a message via AIM to Marcus101RR Send a message via Skype™ to Marcus101RR
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 11-02-2016 , 06:01   Re: [L4D2] How to check transition players EntProp?
Reply With Quote #5

Quote:
Originally Posted by Marcus101RR View Post
I use Super Versus, and a player who isn't in-game doesn't appear in any team list, so there obviously is a way to determine if a player is not in the session, by their team and their status in the game. You should try a combination of Ingame, Is connected, and their team, if none apply, they are not fully in-game, basically until the player is on spectate or otherwise they are not in the game.

As you may or may not know, EntProp stands for Entity Properties, and Entities do not exist if they are not physically present in the game, so there wouldn't be a way to check EntProp on an entity that has no physical presence. Most would be NULL until they are fully active.
+1
cravenge 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 15:03.


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