Raised This Month: $ Target: $400
 0% 

[L4D] Who will become Tank?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
axelnieves2012
Senior Member
Join Date: Oct 2014
Location: Argentina
Old 06-06-2024 , 19:09   [L4D] Who will become Tank?
Reply With Quote #1

Hello, is any way to know who will become Tank before he takes control of Tank?

I think "tank_spawn" is fired after he spawned and can move and attack.

I need to know who will become Tank (for example, a Hunter player becoming Tank, or a Tank pass (losing control)).

A HUD message is show to the player "You will become a Tank" before it spawns. I think it may help.

I also tried "player_team" but GetZombieClass returns -1

EDIT:
Thanks everyone for your answers. I get it that it's not possible.... But is it possible know WHEN or where a Tank will spawn (no matter who)?

When playing versus, Tank, witches, molotovs, etc spawn at the same place for both teams. I guess it is defined by a seed.

If I know where the Tank should spawn, I can manually overload m_iTankTickets randomly and predict/force who will take control when survivors are near its spawnpoint.

Is there any way to know where the Tank should spawn before it spawns?

Last edited by axelnieves2012; 06-17-2024 at 18:54.
axelnieves2012 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 06-07-2024 , 09:04   Re: [L4D] Who will become Tank?
Reply With Quote #2

Not sure but in theory, I think the logic is based on who has the bigger "m_iTankTickets" netprop
Native "L4D2Direct_GetTankTickets" / Native "L4D2Direct_SetTankTickets"

I just don't know how to warn before spawn (like minutes earlier), maybe is related to survivor progress vs tank spawn progress defined

Anyway, I don't know how to get where the tanks spawns either, in zonemod some spawns are "fixed" so I believe is easier to find out
__________________

Last edited by Marttt; 06-07-2024 at 09:06.
Marttt is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 06-07-2024 , 23:38   Re: [L4D] Who will become Tank?
Reply With Quote #3

I don't think its possible as its not predetermined. There are parameters which define between min/max flow a tank can/will spawn, but don't think it gets decided in advance.

The way promod community has done it is that they manually overload the m_iTankTickets as Martt has stated.
__________________
Spirit_12 is offline
suptob
Junior Member
Join Date: Feb 2022
Old 06-14-2024 , 10:44   Re: [L4D] Who will become Tank?
Reply With Quote #4

Quote:
Originally Posted by Marttt View Post
Not sure but in theory, I think the logic is based on who has the bigger "m_iTankTickets" netprop
Native "L4D2Direct_GetTankTickets" / Native "L4D2Direct_SetTankTickets"

I just don't know how to warn before spawn (like minutes earlier), maybe is related to survivor progress vs tank spawn progress defined

Anyway, I don't know how to get where the tanks spawns either, in zonemod some spawns are "fixed" so I believe is easier to find out

TankTickets is not a guarantee that player will get the tank, unless all the other players have 0 tickets.
suptob is offline
axelnieves2012
Senior Member
Join Date: Oct 2014
Location: Argentina
Old 06-17-2024 , 18:54   Re: [L4D] Who will become Tank?
Reply With Quote #5

Thanks everyone for your answers. I get it that it's not possible.... But is it possible know WHEN or where a Tank will spawn (no matter who)?

When playing versus, Tank, witches, molotovs, etc spawn at the same place for both teams. I guess it is defined by a seed.

If I know where the Tank should spawn, I can manually overload m_iTankTickets randomly and predict/force who will take control when survivors are near its spawnpoint.

Is there any way to know where the Tank should spawn before it spawns?
axelnieves2012 is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old Yesterday , 10:46   Re: [L4D] Who will become Tank?
Reply With Quote #6

Quote:
Originally Posted by axelnieves2012 View Post
Thanks everyone for your answers. I get it that it's not possible.... But is it possible know WHEN or where a Tank will spawn (no matter who)?

When playing versus, Tank, witches, molotovs, etc spawn at the same place for both teams. I guess it is defined by a seed.

If I know where the Tank should spawn, I can manually overload m_iTankTickets randomly and predict/force who will take control when survivors are near its spawnpoint.

Is there any way to know where the Tank should spawn before it spawns?
Left 4 DHooks Direct



PHP Code:
float tankFlows[2];
L4D2_GetVersusTankFlowPercent(tankFlows);
PrintToChatAll("Tank Spawn At %f (Round 1) / %f (Round 2)"tankFlows[0], tankFlows[1]); 
__________________
HarryPotter is offline
axelnieves2012
Senior Member
Join Date: Oct 2014
Location: Argentina
Old Today , 01:14   Re: [L4D] Who will become Tank?
Reply With Quote #7

Quote:
Originally Posted by HarryPotter View Post
Left 4 DHooks Direct



PHP Code:
float tankFlows[2];
L4D2_GetVersusTankFlowPercent(tankFlows);
PrintToChatAll("Tank Spawn At %f (Round 1) / %f (Round 2)"tankFlows[0], tankFlows[1]); 
Impressive!! Thanks you so much, i love you xd
axelnieves2012 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:27.


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