Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

L4D2Direct_GetVSTankToSpawnThisRound wrong round when teams are flipped #13

Open
devilesk opened this issue Oct 31, 2019 · 0 comments
Open
Assignees

Comments

@devilesk
Copy link

The parameter for L4D2Direct_GetVSTankToSpawnThisRound should be a team number instead of a round number.

If you try to determine whether the tank will spawn for the current round doing something like L4D2Direct_GetVSTankToSpawnThisRound(GameRules_GetProp("m_bInSecondHalfOfRound")) then you will be looking up the wrong round if the teams are flipped. You need to do something like L4D2Direct_GetVSTankToSpawnThisRound(GameRules_GetProp("m_bAreTeamsFlipped")) to get the correct value for the current round.

I think the other functions that take a roundNumber should also be treated as a team number instead, but I have only tested L4D2Direct_GetVSTankToSpawnThisRound so far.

devilesk added a commit to devilesk/rl4d2l-plugins that referenced this issue Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants