Random Team Joining.
HtNickoli
Join Date: 2002-11-24 Member: 9786Members
<div class="IPBDescription">Is a pluggin possible?</div> Not ever havening bothered trying to write a pluggin. I was wondering if someone with the knowledge would know if its possible to create a plugin that would force random team joining on a map.
IE: Disable marine/kharra protals and the console team join commands?
IE: Disable marine/kharra protals and the console team join commands?
Comments
IE: Disable marine/kharra protals and the console team join commands?<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
you could use a stripper (by botman) to strip them out of the maps. Nero and I are working on using it to remove useless lights from hera, tanith and such for better performance.
you could easily convert the join team entities to make them all random, but most good players have team joins bound to keys anyway. you need a way to catch those commands and convert them to random
1. jointeamone
2. jointeamtwo
Could Admin Mod intercept this? I know that there are things that it can't...
If so, then it could go "<i>Oh, you want to join teamone? Let's randomly pick a team that you're REALLY going to join.</i>"
ok i put all the files up at <a href='http://www.joe.to/ns' target='_blank'>http://www.joe.to/ns</a> - let me know if there's anything else i can do
1. jointeamone
2. jointeamtwo
Could Admin Mod intercept this? I know that there are things that it can't...
If so, then it could go "<i>Oh, you want to join teamone? Let's randomly pick a team that you're REALLY going to join.</i>"<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
No, When you go into a portal "DispatchTouch" is used, the only way to intercept a player from going into a portal server-side is to detect when a player touches a info_team_join, you could detect that and force them to randomly go to team 1 or team 2 (by running client command on them or making them touch another portal).
Not sure if admin mod can do that, but metamod can.
If you want ill make a plugin that does this, its very easy.
1. jointeamone
2. jointeamtwo
Could Admin Mod intercept this? I know that there are things that it can't...
If so, then it could go "<i>Oh, you want to join teamone? Let's randomly pick a team that you're REALLY going to join.</i>"<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
No, When you go into a portal "DispatchTouch" is used, the only way to intercept a player from going into a portal server-side is to detect when a player touches a info_team_join, you could detect that and force them to randomly go to team 1 or team 2 (by running client command on them or making them touch another portal).
Not sure if admin mod can do that, but metamod can.
If you want ill make a plugin that does this, its very easy.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
hehehe, and if he doesn't do it I will
any portal a player walks into will be re-routed to the random team portal, any time a player types either "jointeamone" or "jointeamtwo" they will get sent to the random portal.
This plugin requires that a random portal exists on the map to work. Any map not containing a random team portal will behave like a normal map when a player enters a portal or uses a team joining command. This is because I have no idea if a command even exists to join a random team so I basically HAD to rely on the existance of the info_join_autoassign entity
plugin and source, usual 2 line banner
them, can you reply to the pm i sent you (the reply to the one u sent me)
LMAO, we've been doing this for over 2 months now. HAHAHAHA
Voogru ROCKS!
I would ONLY pressume that if you could do it; you already would have. The very day 1.03 came out; and locked each player from changing teams; we had this fix.
Voogru is da man!
I'm lazy, so I don't always get things done right away :/
<!--QuoteBegin--kInG kAhUnA+Jan 4 2003, 10:02 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (kInG kAhUnA @ Jan 4 2003, 10:02 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
kInG kAhUnA
aim - pmaner30043
msn - pmaner@msn.com
Voogru Forums - www.voogru.com
<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
msn - pmaner@<b>msn.com</b> <-------- lol, another victim of the butterfly
<a href='http://www.unknownworlds.com/forums/index.php?act=ST&f=8&t=8687&hl=' target='_blank'>http://www.unknownworlds.com/forums/in...&f=8&t=8687&hl=</a>
"you could easily convert the join team entities to make them all random, but most good players have team joins bound to keys anyway. you need a way to catch those commands and convert them to random"
this plugin supposedly does that (right?)
I didn't realize this topic was already covered. Amazed I never seen that older post. As I usually visit these forums daily.(least when they are working) All the same thanks for the quick responce guys.
This has two levels of auto assigning players to teams:
Level 1 (nsa_random_teams 1) will make it if a player goes thru the portals he will always join a random team jointeamtwo and jointeamone will work tho.
Level 2 (nsa_random_teams 2) will do the same as level 1, but when they do the jointeam commands it will be random.
nsa_random_teams is default to 0 so make sure you set it in server.cfg
Plug-in and source also now compiled for linux:
<a href='http://www.voogru.net/www/randomteam_mm.zip' target='_blank'>http://www.voogru.net/www/randomteam_mm.zip</a>
Only difference between mine and his, Mine doesnt have a connection message <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
/me shakes fist in spite
"Next time Gadget.............next time"
hehehehehe, I have been thwarted by my arch nemesis
I'm sorry to everyone that tried to install this on a windows server, I made a booboo that wouldn't let it load.
Here's a re-build of the previous version but now it should actually work on windows servers, no difference for linux servers.
Them used my autoassign <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' valign='absmiddle' alt='sad.gif'><!--endemo--> so i think i should have posted mine
moh well
forget it, i changd the plugin and works now