PDA

View Full Version : Swap Teams problem Spearhead


UnDead
03-20-2003, 05:57 PM
I am having trouble getting the swap teams to work from rcon. It exec;s fine but it moves one team fine then it moves the other and quickly moves them back to their original team so it ends up with everyone on the same team. I am still testing it with CI, I will get back to you if CI can do it right or not.

Also is there a way to auto force players without clan tags to stay on the other team for like an |OCG| vs Public. Would it be hard to script?

Thanks much. I am running most current MAM versions and CI.

Buzz_Litebeer
03-23-2003, 09:27 PM
yea this is nto to easy to fix, might have run it twice? i dont know.

DCFA-Anex
03-31-2003, 04:16 PM
Are you still having this problem Undead?

I've retested it and did not experience the problem as you described it.

As for the clan tag, yeah it could be done by parsing the name and use a MAM cvar (set to your clan tag) as a check point. However, that is a little beyond my MOHAA scripting abilities : ( I could figure it our of course but just don't have the time to do it. Buzz has a lot of free time now, maybe he'll do it : )

(picturing Buzz cursing my name)

Buzz_Litebeer
03-31-2003, 06:10 PM
its beyond anyones, you cannot view the tag info in mohaa, it has to be done by a program like mohaaCI, which i have no help in writing.

DCFA-Anex
03-31-2003, 07:52 PM
*cough...copout...cough* :twisted:

lol

UnDead
04-02-2003, 07:35 PM
ok it seems to be working intermittently which isn't bad, I think it didn't work because it was done at the very beginning of a round. Maybe need to wait a little longer. Works most of the time now :). Thanks all. I will post to Blackbart to see if he can setup something with ci for that clan tag auto swap.

cyberitch
04-11-2003, 05:24 PM
Hi,
I'm not very good with how to setup new command in MAM, but may be we could setup a function that execute on each spawn when the toggle as been set to "on":

Force_Team_Side($toggle, $team_tag, $side)
{
// Player have the tag
if(sub string ("*$tag*", player.name)) // YES
{
// Wrong side and not in spectator
if((player.side <> $side) and (player.mod <> "spectator"))
{
player.side = $side
}
}
else // NO
{
// Wrong side and not in spectator
if((player.side == $side) and (player.mod <> "spectator"))
{
if($side == "allies")
{
player.side = "axis"
}
else
{
player.side = "allies"
}
}
}
}

$toggle = "on" or "off" *
$team_tag = string to validate as tag
$side = "allies" or "axis"
* in case $toggle = off no other parameter needed.

Ok I know look like C language, but Its the best way I can help and explain what we need.

Its possible to be done?

Thank you
Ritch

Buzz_Litebeer
04-11-2003, 05:35 PM
no, MAM cannot view the names of players, if they could then it would be really cool ;-)

cyberitch
04-11-2003, 05:41 PM
Ok, then if dont see name, how it does to replace space in name?

Thank you
Ritch

Buzz_Litebeer
04-11-2003, 06:20 PM
wellits a trick of how its done actually, MAM doesnt actually "do" the space in the name part, what it does instead is MOHAACI detects the name, then MOHAACI uses MAM to change the name.

What you want could be implemented by using MAM as the interface, but you would need to have to do it with an outside program

the creator of MOHAACI might do it, he is at

http://www.invisiblewarriors.com
if you know how to interface with MOHAA you could actually do it with interfacing with MAM>

cyberitch
04-11-2003, 06:31 PM
Ok. thank you. Hope MOhaa CI guys will release it soon.