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

bot and ranked patched for servers #374

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

WantedDV
Copy link
Contributor

@WantedDV WantedDV commented Oct 12, 2024

  • the match waits for a real player to join and select and loadout before starting

  • bots auto-balance and drop bots for incoming players

  • enabled contracts and online features from combat training for servers

  • veteran difficulty is now accessible for combat training and dedicated servers

  • new dvars:
    bots_enabled
    bot_difficulty (0:Mixed 1:Recruit 2:Regular 3:Hardened 4:Veteran)

  • match will now wait without forefeit until a player joins and selects a loadout

  • game timer will start at 0

  • if a player joins and leaves wait for a new player

- bots wait for a player to join
- bots auto-balance and drop bots for incoming players
- veteran difficulty is now accessible for combat training and dedicated servers
- new dvars: `bots_enabled`, `bot_difficulty` (0:Mixed 1:Recruit 2:Regular 3:Hardened 4:Veteran)
- enabled contracts and online features from combat training for servers
- match will now wait without forefeit until a player joins and selects a loadout
- game timer will start at 0
- if a player joins and leaves wait for a new player
{
if ( !isplayer( self ) || isai( self ) )
return 0;
return 1;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would prefer a ternary since gsc-tool can do it, but this is ok

wait(0.25);
}

if(!isdefined( player )) wait_for_human_player(); // if the player leaves wait for new player
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use new line for readability at least

@@ -54,11 +152,12 @@ init_stub()
thread bot_triggers();
initbotlevelvariables();

if(!getdvarint( "bots_enabled", 0 )) return;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

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

Successfully merging this pull request may close these issues.

2 participants