Raised This Month: $51 Target: $400
 12% 

Looking for ways to make the terrorists win when the round was a draw


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SxLc
Junior Member
Join Date: Jul 2021
Old 05-19-2023 , 06:13   Looking for ways to make the terrorists win when the round was a draw
Reply With Quote #1

I am building a training server for zombie escape.
Many rounds all players die so rounds are draws.
I have the rtv changetime set to roundend but I noticed that the map does not change when the round is a draw.

Does anyone know of a plugin or something that will make the terrorists win when the round is a draw?

(A rtv plugin that changes the map even if the round is a draw would also be fine.
SxLc is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 05-20-2023 , 03:09   Re: Looking for ways to make the terrorists win when the round was a draw
Reply With Quote #2

In CS:GO there is a convar mp_default_team_winner_no_objective for this.

Or you can try this code:
PHP Code:
#include <cstrike>

public Action CS_OnTerminateRound(float &delayCSRoundEndReason &reason)
{
    if(
reason == CSRoundEnd_Draw)
    {
        
reason CSRoundEnd_TerroristWin;
        return 
Plugin_Changed;
    }

    return 
Plugin_Continue;

__________________
Grey83 is offline
SxLc
Junior Member
Join Date: Jul 2021
Old 05-20-2023 , 04:16   Re: Looking for ways to make the terrorists win when the round was a draw
Reply With Quote #3

Quote:
Originally Posted by Grey83 View Post
In CS:GO there is a convar mp_default_team_winner_no_objective for this.

Or you can try this code:
PHP Code:
#include <cstrike>

public Action CS_OnTerminateRound(float &delayCSRoundEndReason &reason)
{
    if(
reason == CSRoundEnd_Draw)
    {
        
reason CSRoundEnd_TerroristWin;
        return 
Plugin_Changed;
    }

    return 
Plugin_Continue;

Thanks for writing the code
Thanks to you, the draw is gone and T is now winning
However, the number of wins for T does not increase and remains at 0
Is it possible to increase the number of wins together?
SxLc is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 05-20-2023 , 11:52   Re: Looking for ways to make the terrorists win when the round was a draw
Reply With Quote #4

PHP Code:
public Action CS_OnTerminateRound(float &delayCSRoundEndReason &reason)
{
    if(
reason == CSRoundEnd_Draw)
    {
        
CS_SetTeamScore(2CS_GetTeamScore(2) + 1);
        
reason CSRoundEnd_TerroristWin;
        return 
Plugin_Changed;
    }

    return 
Plugin_Continue;

__________________

Last edited by Grey83; 05-20-2023 at 11:52.
Grey83 is offline
SxLc
Junior Member
Join Date: Jul 2021
Old 05-24-2023 , 13:11   Re: Looking for ways to make the terrorists win when the round was a draw
Reply With Quote #5

Quote:
Originally Posted by Grey83 View Post
PHP Code:
public Action CS_OnTerminateRound(float &delayCSRoundEndReason &reason)
{
    if(
reason == CSRoundEnd_Draw)
    {
        
CS_SetTeamScore(2CS_GetTeamScore(2) + 1);
        
reason CSRoundEnd_TerroristWin;
        return 
Plugin_Changed;
    }

    return 
Plugin_Continue;

Sorry for the late reply.
The draw will be a terrorist win, but the number of wins will not increase ...
SxLc is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 05-24-2023 , 13:36   Re: Looking for ways to make the terrorists win when the round was a draw
Reply With Quote #6

Quote:
Originally Posted by SxLc View Post
but the number of wins will not increase ...
CS:GO?
__________________
Grey83 is offline
SxLc
Junior Member
Join Date: Jul 2021
Old 05-25-2023 , 09:19   Re: Looking for ways to make the terrorists win when the round was a draw
Reply With Quote #7

Quote:
Originally Posted by Grey83 View Post
CS:GO?
Yes, CSGO, but I use many plugins, so there may be a conflict ...
I will try to find the cause
SxLc is offline
SxLc
Junior Member
Join Date: Jul 2021
Old 05-26-2023 , 09:24   Re: Looking for ways to make the terrorists win when the round was a draw
Reply With Quote #8

Quote:
Originally Posted by Grey83 View Post
CS:GO?
Once a CT wins, the number of T wins is increased for the previously uncounted...
SxLc 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 17:10.


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