lobolmart
29th March 2016, 09:46
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:
// called each time a player spawns
spawnPlayer()
{
// snip
// ... 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
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:
// called each time a player spawns
spawnPlayer()
{
// snip
// ... 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