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

Members Online

»
0 Active | 109 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

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
Category: CoD+UO General
General game questions, comments, and chat.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: some questions about addtestclient()
lobolmart
General Member
Since: Mar 28, 2016
Posts: 1
Last: Mar 28, 2016
[view latest posts]
Level 0
Category: CoD+UO General
Posted: Monday, Mar. 28, 2016 12:25 pm
hello,

i'm experimenting with COD1 1.4 / COD1:UO 1.51 and the Meatbot v0.2 sources. i've noticed that it's not possible to modify cvars on the test clients (i.e. references obtained via addtestclient()).

for instance the following doesn't work:
Quote:

// called each time a player spawns
spawnPlayer() {
//
// ... some code here
self thread _TestCommands();
}

_TestCommands()
{
self endon("death");
self endon("disconnect");
self endon("spectate");

self setClientCVar("name", "RandomName" + randomInt(99));

wait 4;
while (1) {
wait 0.5;
self setClientCVar("cl_run", "0"); // ADS
}
}



the above example shows that when a client spawns in the game he is forced in "ADS" (aim down the sight) mode and is given a random name. it works for human players, but not for the bots.

is there a way to set such things for the test clients?
if you don't have the answer, do you know where i can ask the questions that i have?
(the meabot author isn't responding).

cheers
Share |
NHFL
General Member
Since: Jan 9, 2013
Posts: 1
Last: Dec 31, 2018
[view latest posts]
Level 0
Category: CoD+UO General
Posted: Monday, Dec. 31, 2018 11:25 pm
Did you found solution? I have same problem.
Share |
DrBiggzz
General Member
Since: Apr 9, 2007
Posts: 98
Last: Sep 24, 2022
[view latest posts]
Level 3
Forum Moderator
Im a fan of MODSonair
Category: CoD+UO General
Posted: Saturday, Jan. 5, 2019 01:44 am
The only way I can think of is to set up some scripts where if the name is bot (random#) you can make a list of random names for it to rename the bots to. I will work on this over the weekend and see if I can come up with something.
Share |
[ATB]
General Member
Since: Feb 10, 2007
Posts: 135
Last: Apr 29, 2020
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoD+UO General
Posted: Sunday, Jan. 20, 2019 01:24 pm
As far as I know it's not possible. I tried everything I could think of, but nothing worked. This limitation carried on through future CoD iterations until they actually made Bots a thing in BO1...

Given the only way it was made possible in CoD4 was to hack the executable (CoD4x ?) I think it's fairly safe to say that legitimate modification wouldn't work. The problem is that it's hard coded, not script, so there's no way in to intercept and modify it. The only thing you CAN do is turn it off and then create your own, something like this: CoD: United Offensive: Meatbot - Hurtgen

The main reason I abandoned that particular project (aside from bugs) was the limitation that any real player name had to be precached prior to the game, and since my focus was an online server this limitation became problematic.

So IMO that is the only way you're going to change the bot names...

HTH.
Share |
thomasrika
General Member
Since: Mar 28, 2020
Posts: 2
Last: Mar 28, 2020
[view latest posts]
Level 0
Category: CoD+UO General
Posted: Saturday, Mar. 28, 2020 04:13 am
It's still just a beta version, when will there be an official game mod apk to androidpig.com version for me to experience




Share |
johnmorganhere
General Member
Since: Feb 21, 2020
Posts: 5
Last: Apr 28, 2020
[view latest posts]
Level 0
Category: CoD+UO General
Posted: Tuesday, Apr. 28, 2020 09:28 am
[ATB] writes...
Quote:
As far as I know it's not possible. I tried everything I could think of, but nothing worked. This limitation carried on through future CoD iterations until they actually made Bots a thing in BO1...

Given the only way it was made possible in CoD4 was to hack the executable (CoD4x ?) I think it's fairly safe to say that legitimate modification wouldn't work. The problem is that it's hard coded, not script, so there's no way in to intercept and modify it. The only thing you CAN do is turn it off and then create your own, something like this: CoD: United Offensive: Meatbot - Hurtgen

The main reason I abandoned that particular project (aside from bugs) was the limitation that any real player name had to be precached prior to the game, and since my focus was an online server this limitation became problematic.

So IMO that is the only way you're going to change the bot names...

HTH.

Hi there. So as I understood we still dont have any solution? Thanks.
Share |
[ATB]
General Member
Since: Feb 10, 2007
Posts: 135
Last: Apr 29, 2020
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoD+UO General
Posted: Wednesday, Apr. 29, 2020 06:52 am
Quote:
Hi there. So as I understood we still dont have any solution? Thanks.

Correct.
Share |
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty : CoD+UO General

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

»