View Single Post
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 10-19-2019 , 05:12   Re: [L4D] Infected No Block On Ladder
Reply With Quote #15

Quote:
Originally Posted by Uncle Jessie View Post
There is the fix when tank already climb on the ladder and you trying to block him or something like that
You can try, just replace this line if you on L4D1
Code:
if (!IsClientInGame(client) || GetClientTeam(client) != 3 || GetEntProp(client, Prop_Send, "m_zombieClass") != 8)
to
Code:
 if (!IsClientInGame(client) || GetClientTeam(client) != 3 || GetEntProp(client, Prop_Send, "m_zombieClass") != 5)
nothing with AI stuff like finishlast said, but it's interesting idea
Thanks for the suggestion Jessie.

Okay, Ive updated your last script with the new line of code. When the Tank climbs the ladder and a player then tries to block that ladder while Tanky is climbing it, the Tank will pass through the player and get to top of ladder no problem. However, the new code still stops the Tank from climbing the ladder if the player is already on it. So the original exploit is still there for players to take advantage of it. Your script would need some other code to deal with this latter exploit as well.
Sunyata is offline