Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 8 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Test clients
Phl3x_
General Member
Since: Jun 4, 2011
Posts: 19
Last: Jun 14, 2012
[view latest posts]
Level 1
Category: CoD4 Scripting
Posted: Friday, Jun. 10, 2011 08:01 am
Hello,

I have been able to add a bot using the 'addTestClient' function, but I am having trouble removing it from the server. How should I go about forcing the bot to disconnect? I've tried using the 'kick' function but I was having trouble getting the bots' client number. Is there any preferred way to go about removing bots?

Thanks
Share |
DeekCiti
General Member
Since: Mar 13, 2008
Posts: 1293
Last: Jul 9, 2016
[view latest posts]
Level 8
Category: CoD4 Scripting
Posted: Friday, Jun. 10, 2011 05:21 pm
Press Tab ingame and get it's name.

kick client bot1

and so on.
Share |
BraX
General Member
Since: Apr 29, 2008
Posts: 413
Last: May 26, 2012
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD4 Scripting
Posted: Friday, Jun. 10, 2011 06:25 pm
You can remove bots during map change, try setting these dvars for players and server:

For clients (using clientCmd):
Code:
wait 400; reconnect


For server (setDvar(s)):
Code:
wait 500; killserver; map mp_carentan
Share |
Phl3x_
General Member
Since: Jun 4, 2011
Posts: 19
Last: Jun 14, 2012
[view latest posts]
Level 1
Category: CoD4 Scripting
Posted: Friday, Jun. 10, 2011 11:19 pm
Thank you both for the replies, however I'm looking to do it via a script. I've basically got some menus set up, and one button adds the bot, and the other should delete it. So, I will need to remove the bot through a script, and also when the map changes.

Thanks :)

edited on Jun. 10, 2011 08:05 pm by Phl3x_

I have managed to kick the bot successfully, I assumed 'getEntityNumber' didn't work, but it did :P. I still need to kick the bot when the map changes, so if anyone knows how, that'd be great

Cheers

edited on Jun. 11, 2011 02:17 am by Phl3x_

Never mind, I've got it all working :)
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»