Raised This Month: $32 Target: $400
 8% 

[CS:GO] Delay round end when last player dies?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sim242
AlliedModders Donor
Join Date: Dec 2012
Location: England
Old 01-20-2014 , 13:06   [CS:GO] Delay round end when last player dies?
Reply With Quote #1

Hey guys, In the plugin I'm working on, players have a set amount of lives and on death if they have enough lives left then they will be respawned.

The problem is if there is only one player on a specific team then the round will end when they are killed regardless of the fact they have been respawned. The plugin calls the respawn on a timer set to 0.01 seconds after death as when I try and call it directly on the death event it bugs and doesn't seem to respawn the player.

Any ideas and help is appreciated, thanks
__________________
Steam - Sim
Request a private plugin
Not accepting requests at this time
sim242 is offline
Send a message via Skype™ to sim242
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 01-20-2014 , 13:55   Re: [CS:GO] Delay round end when last player dies?
Reply With Quote #2

Use "mp_ignore_round_win_conditions" then end the round when the conditions are met using a CS_TerminateRound maybe?

BTW, timer's smallest value is 0.1
__________________
View my Plugins | Donate
TnTSCS is offline
sim242
AlliedModders Donor
Join Date: Dec 2012
Location: England
Old 01-20-2014 , 14:48   Re: [CS:GO] Delay round end when last player dies?
Reply With Quote #3

Hmm well the timer still seems to work xD I'll give your idea a try, can't think of a condition to check to trigger the round ending though
__________________
Steam - Sim
Request a private plugin
Not accepting requests at this time
sim242 is offline
Send a message via Skype™ to sim242
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 01-20-2014 , 14:50   Re: [CS:GO] Delay round end when last player dies?
Reply With Quote #4

mp_ignore_round_win_conditions is broke in go you could block round en with CS_OnTerminateRound but it have some issue since it still apply score to the winning team, we don't know if it affect performance overtime yet, but been reported but got no news about it.

Last edited by Mathias.; 01-20-2014 at 14:51.
Mathias. is offline
sim242
AlliedModders Donor
Join Date: Dec 2012
Location: England
Old 01-20-2014 , 15:02   Re: [CS:GO] Delay round end when last player dies?
Reply With Quote #5

Looking at CS_TerminateRound, seems like the reason argument is a bit of a pain. The reasons you can set still wont fix my issue although I greatly appreciate the ignore win conditions cvar, very helpful indeed.
__________________
Steam - Sim
Request a private plugin
Not accepting requests at this time
sim242 is offline
Send a message via Skype™ to sim242
sim242
AlliedModders Donor
Join Date: Dec 2012
Location: England
Old 01-20-2014 , 15:03   Re: [CS:GO] Delay round end when last player dies?
Reply With Quote #6

Quote:
Originally Posted by Black-Rabbit View Post
mp_ignore_round_win_conditions is broke in go you could block round en with CS_OnTerminateRound but it have some issue since it still apply score to the winning team, we don't know if it affect performance overtime yet, but been reported but got no news about it.
Set mp_ignore_round_win_conditions on my server and it seemed to work fine :S
__________________
Steam - Sim
Request a private plugin
Not accepting requests at this time
sim242 is offline
Send a message via Skype™ to sim242
sim242
AlliedModders Donor
Join Date: Dec 2012
Location: England
Old 01-20-2014 , 15:06   Re: [CS:GO] Delay round end when last player dies?
Reply With Quote #7

Sorry for spam posting, just thought. I could set a condition using an IF statement and then if true call the TerminateRound function Thanks guys.
__________________
Steam - Sim
Request a private plugin
Not accepting requests at this time
sim242 is offline
Send a message via Skype™ to sim242
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 01-20-2014 , 15:07   Re: [CS:GO] Delay round end when last player dies?
Reply With Quote #8

Nice, it was broke few weeks ago, well it seem to be working again.
Mathias. 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 19:11.


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