AAO25.com

Assist => Support => AA Support => Topic started by: ELiZ on Thursday, January 29, 2015, 13:25:39 PM

Title: New admin command ASS
Post by: ELiZ on Thursday, January 29, 2015, 13:25:39 PM
Nothing extra need to be loaded in the ini, all an admin has to do is to type
Code: [Select]
assin the console, and all players will swap teams.

Code: [Select]
final exec function ass()
{
local PlayerReplicationInfo PRI;
if (ViewportOwner !=None)
{
if (myLevel !=None)
{
ForEach myLevel.AllActors(Class'PlayerReplicationInfo',PRI)
{
if (! PRI.bIsSpectator || PRI.bWaitingPlayer)
{
log(ViewportOwner.Actor.ConsoleCommand("admin A_SwitchTeam" @ PRI.PlayerName));
}
}
}
}
}

Function will be available tomorrows file update I have planned.


I found inspiration for the new function here:
http://aao25.com/forum/games-programming/team-swap/ (http://aao25.com/forum/games-programming/team-swap/)
Title: Re: New admin command ASS
Post by: Spanky on Thursday, January 29, 2015, 13:27:59 PM
Dat ass. Good job, I know a lot of people wanted this.
Title: Re: New admin command ASS
Post by: Ganja on Thursday, January 29, 2015, 13:35:50 PM
Well done, I really hope it will work out well with the players. Will they be able to refuse ? What if reconnect ? Will there be a warning about the swap?
Title: Re: New admin command ASS
Post by: ELiZ on Thursday, January 29, 2015, 13:40:38 PM
Well done, I really hope it will work out well with the players. Will they be able to refuse ? What if reconnect ? Will there be a warning about the swap?
Will they be able to refuse ?
Yes(They can try to swap)
What if reconnect ?
Same as above
Will there be a warning about the swap?
Yes
Title: Re: New admin command ASS
Post by: bollie on Thursday, January 29, 2015, 13:46:51 PM
Ok check. i need to type it second before the round ends
Title: Re: New admin command ASS
Post by: Vanoke on Thursday, January 29, 2015, 14:22:53 PM
(https://aao25.com/forum/proxy.php?request=http%3A%2F%2Fimagizer.imageshack.us%2Fv2%2Fxq90%2F600%2F2eliz.png&hash=6cbe636b89a8c837516fb955c66a9fe5) (https://imageshack.com/i/go2elizp)
I am happy i got you guy`s inspired
(https://aao25.com/forum/proxy.php?request=http%3A%2F%2Fimagizer.imageshack.us%2Fv2%2Fxq90%2F910%2FEv5kMO.jpg&hash=d005d4267dbb7ad05d17cfeaa2469f5e) (https://imageshack.com/i/paEv5kMOj)

I already work on a new idear  Pssssst its a secret.
>>(https://aao25.com/forum/proxy.php?request=http%3A%2F%2Fimagizer.imageshack.us%2Fv2%2Fxq90%2F537%2FhEloZK.jpg&hash=7f0b53dec304bc6a2bea503825f199b7) (https://imageshack.com/i/exhEloZKj) 
The Ladder  Soldier
Title: Re: New admin command ASS
Post by: Ganja on Thursday, January 29, 2015, 14:55:08 PM
Will they be able to refuse ?
Yes(They can try to swap)
What if reconnect ?
Same as above
Will there be a warning about the swap?
Yes


Ok. And so if some decide to ignore the swap, others won't be able to swap side either? So if 1 asshole is scared to change side, another will be fucked too?
Title: Re: New admin command ASS
Post by: teddy_grizzly_bear on Thursday, January 29, 2015, 15:07:43 PM
Like I said in the other thread, you can "hide" the warning by admin messaging  something right after swapping them. You can admin message "Welcome to our server!" or whatever else, it will discontinue the swap notice and just show that.
Title: Re: New admin command ASS
Post by: bollie on Thursday, January 29, 2015, 15:12:52 PM
Smart thinking teddybear :)
Title: Re: New admin command ASS
Post by: [SWISS]Merlin on Friday, January 30, 2015, 03:18:23 AM
yes he is ;)

thank you ELiZ, great job again!!
Title: Re: New admin command ASS
Post by: ELiZ on Friday, January 30, 2015, 03:37:13 AM
Update is released, and the ASS command should now work for admins
Title: Re: New admin command ASS
Post by: ~=W!CK!D=~ on Friday, January 30, 2015, 03:55:50 AM
Good job eliz
Title: Re: New admin command ASS
Post by: Vanoke on Friday, January 30, 2015, 10:05:17 AM
Hey guy's  my brain stil hurts
Title: Re: New admin command ASS
Post by: [SWISS]Merlin on Friday, January 30, 2015, 10:26:12 AM
sure, i can see it on the picture above :D
Title: Re: New admin command ASS
Post by: -[unR]BENDAWICH on Friday, January 30, 2015, 12:48:07 PM
Nice command name =p
Title: Re: New admin command ASS
Post by: [K][K].BigPappa on Thursday, February 12, 2015, 15:48:08 PM
This good idea, well done, I approve :up: