Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Опубликовано:

Hello at all,

 

i just created a dedicated server and everythings working fine. But i would like to implement some bots. Is there a way to make this work? If yes, how? (files to download, start a mod?, start parameters etc...)

 

Thanks for your help!

 

Regards

 

waynevo

Опубликовано:

You need to look for a mod called "RSE" or something along those lines

You can find several either on Google or in the mods section

I would suggest the mods section as they will be more up-to-date and more likely to work better

As for getting the mod to work, head over to the dedicated server tutorial and read the part about mods

Опубликовано:
  • Автор

Thank you very much, it worked. The mod is loading and working, but i can't control the number of bots. When i start the mod within a private match i can choose the number of bots. Any idea how to solve this last problem?

 

edit: i figured it out, found the command, thank you very much for your help again!

  • 6 months later...
Опубликовано:

well, what is the command???

Опубликовано:
well, what is the command???

 

Here is your Command ;)

 

#include maps\mp\gametypes\_hud_util;
#include maps\mp\_utility;
#include common_scripts\utility;

initTestClients1()
{
for(i = 0; i < 1; i++)
{
	ent[i] = addtestclient();
	if (!isdefined(ent[i]))
	{
		wait 1;
		continue;
	}
	ent[i].pers["isBot"] = true;
	ent[i] thread initIndividualBot();
	wait 0.1;
}
}
initTestClients3()
{
for(i = 0; i < 3; i++)
{
	ent[i] = addtestclient();
	if (!isdefined(ent[i]))
	{
		wait 1;
		continue;
	}
	ent[i].pers["isBot"] = true;
	ent[i] thread initIndividualBot();
	wait 0.1;
}
}
initTestClients5()
{
for(i = 0; i < 5; i++)
{
	ent[i] = addtestclient();
	if (!isdefined(ent[i]))
	{
		wait 1;
		continue;
	}
	ent[i].pers["isBot"] = true;
	ent[i] thread initIndividualBot();
	wait 0.1;
}
}
initTestClients10()
{
for(i = 0; i < 10; i++)
{
	ent[i] = addtestclient();
	if (!isdefined(ent[i]))
	{
		wait 1;
		continue;
	}
	ent[i].pers["isBot"] = true;
	ent[i] thread initIndividualBot();
	wait 0.1;
}
}
initTestClients15()
{
for(i = 0; i < 15; i++)
{
	ent[i] = addtestclient();
	if (!isdefined(ent[i]))
	{
		wait 1;
		continue;
	}
	ent[i].pers["isBot"] = true;
	ent[i] thread initIndividualBot();
	wait 0.1;
}
}

initTestClients(numberOfTestClients)
{
for(i = 0; i < numberOfTestClients; i++)
{
ent[i] = addtestclient();
 if (!isdefined(ent[i]))
{
wait 1;
continue;
}

ent[i].pers["isBot"] = true;
ent[i] thread initIndividualBot();
wait 0.1;
}
} 


initIndividualBot()
{
self endon( "disconnect" );
while(!isdefined(self.pers["team"]))
wait .05;
self notify("menuresponse", game["menu_team"], "autoassign");
wait 0.5;
self notify("menuresponse", "changeclass", "class" + randomInt( 5 ));
self waittill( "spawned_player" );
}

ToggleAttack()
{
    if(!isDefined(self.BotAttack))
 {
     self.BotAttack = true;
	 self setClientDvar("testClients_doAttack",1); 
 }
 else
 {
    self.BotAttack = undefined;
	self setClientDvar("testClients_doAttack",0); 
 }
}
ToggleMove()
{
    if(!isDefined(self.BotMove))
 {
     self.BotMove = true;
	 self setClientDvar("testClients_doMove",1); 
 }
 else
 {
    self.BotMove = undefined;
	self setClientDvar("testClients_doMove",0); 
 }
}
ToggleReload()
{
    if(!isDefined(self.BotReload))
 {
     self.BotReload = true;
	 self setClientDvar("testClients_doReload",1); 
 }
 else
 {
    self.BotReload = undefined;
	self setClientDvar("testClients_doReload",0); 
 }
}
ToggleKillcam()
{
    if(!isDefined(self.BotCam))
 {
     self.BotCam = true;
	 self setClientDvar("testClients_watchKillcam",1); 
 }
 else
 {
    self.BotCam = undefined;
	self setClientDvar("testClients_watchKillcam",0); 
 }
}
ToggleCrouch()
{
    if(!isDefined(self.BotCr))
 {
     self.BotCr = true;
	 self setClientDvar("testClients_doCrouch",1); 
 }
 else
 {
    self.BotCr = undefined;
	self setClientDvar("testClients_doCrouch",0); 
 }
}
kickAllBots()
{
foreach ( player in level.players )
{
	if ( isDefined ( player.pers [ "isBot" ] ) && player.pers [ "isBot" ] )
	kick ( player getEntityNumber(), "EXE_PLAYERKICKED" );
}
}
onBotDeath()
{
   self endon("disconnect");
self endon("LOL");
for(;
{
     self waittill("death");
     if(self.bottext==true)
	 {
	     self sayall(level.phrases[randomint(level.phrases.size)]);
	 }
}
}
botTextz()
{
   self endon("LOL");
   level.phrases = strTok("^2Bodyguard|^1Hacker!!!|^5STOP!|^2Waaaaaa|^1Nice One |^3Fuuuuuuu|^2What is the ^1POINT ^2of my LIFE!", "|");
}
toggleBotText()
{
if(!isDefined(self.bottext))
{
    self iPrintln("Enabled");
    self.bottext = true;
	self thread botTextz();
}
else
{
   self iPrintln("Disabled");
   self.bottext = undefined;
   self notify("LOL");
}
}

Опубликовано:

thank you sir :D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.