[TF2] Blocking round end when players die on 1 team
I'm creating an FFA plugin for dodgeball. Have it all working except the player shuffling so that it's genuine free-for-all. Problem is, for example, when 2 players are on red, and 1 is on blu, and the blu guy dies, i need to switch 1 player from red to blu without the round ending.
I've slapped this bit of code everywhere I can think: PHP Code:
Doing some googling and discording, I came across this outdated round end prevention thing. I am on linux, so this won't work for me. However, dr!fter included the gamedata which has linux in it that I can use with DHooks. Now the question is, how do I get this to properly work with DHooks and not having a crashed server? Is there any other way of getting the round to not end on me? What do. |
Re: [TF2] Blocking round end when players die on 1 team
probably just gonna spawn an invisible bot if i can't find a less shittier solution...
|
Re: [TF2] Blocking round end when players die on 1 team
That game data is out of date which is causing issues I'm guessing.
Try: Code:
"Games" PHP Code:
|
Re: [TF2] Blocking round end when players die on 1 team
Remember: Events are just notifications of something that has already happened. So, doing something when an event pre-hook fires is already too late to prevent it from happening.
|
Re: [TF2] Blocking round end when players die on 1 team
Quote:
|
Re: [TF2] Blocking round end when players die on 1 team
Quote:
Or at least I'm assuming that's what it's supposed to do. All it seems to do is use mp_bonusroundtime_final instead of mp_bonusroundtime for the humiliation round. |
Re: [TF2] Blocking round end when players die on 1 team
Alright, back to this.
I have successfully been able to block the round-end aka "SetWinningTeam" event. However now there are 3 new issues. Here's the code I have: PHP Code:
1.) For example, if all of red team dies, it'll say that red team won. And vice versa for blue. This also happens when FFA is disabled. 2.) At the beginning of the round (when counting down), it shuffles the teams around and prints "Teams have been switched." 3.) At the end of the round, once a team has won, it respawns the losing team, (where they hold their hands above their head and you're in third person). This definitely has to do with the parameters for the SetWinningTeam, however, all I'm doing is preventing the event from happening, so what kind of parameters would I need to use? Teach me how to dhook pls. Any ideas what I'm missing here to prevent these issues from happening? |
Re: [TF2] Blocking round end when players die on 1 team
Derp.
Just fixed it, apparently you need to add the params to the hook even if you aren't going to use them: PHP Code:
|
All times are GMT -4. The time now is 08:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.