urbanyoung / Phasor

Phasor is a server extension for Halo PC which focuses on giving the end-user the ability to deeply customize gameplay. Phasor does this via its scripting system, which uses the Lua language. Scripters are able to react to and change many different aspects of the game.
MIT License
19 stars 9 forks source link

The ability to toggle team scrambling - enhancement #60

Closed HRShaft closed 9 years ago

HRShaft commented 11 years ago

I do like the way phasor scrambles teams between games. I would like the ability to turn this feature on and off. Usually scrims are 2 chosen teams, but on the next map - they are scrambled, must re-adjust teams then do a map reset to unscramble.

If there is already a way to toggle this on/off, it is not documented.

urbanyoung commented 11 years ago

Phasor doesn't scramble teams, are you sure your OnTeamDecision function is correct?

HRShaft commented 11 years ago

Yes, as I don't use OnTeamDecision at all. Teams will scramble, not every map, not every player but teams will scramble - meaning they will NOT remain the same. I've noticed they stay the same with 4 players or less, but more than that, they change almost every game without fail with our without scripts. Namely team race, if that matters. This is also on more than one server, and different clans. I haven't brought it up before because its a nice feature - unless you want to scrim and have teams remain the same. Other Race Servers: -Just Race-, Lickitys, AlliedRacing (CE), Ponyboys Hogsquad, and 3 H® Servers (PC) and one H® CE server.

PseudoProxen commented 11 years ago

Have you tried doing a comparison between vanilla and Phasor?

Cause from the sounds of what you said, its just more and likely how Halo operates within its parameters not Phasor. Unless the evidence via comparison is provided that Phasor (without scripts) is causing this.

HRShaft commented 11 years ago

Yes. Normal halo, without phasor does not scramble teams between games. Again, I haven't tested on slayer/oddball/king of the hill, but this is true on race and CTF with phasor. Ive tried with and without scripts on race, and only with scripts on CTF. And 8 servers, dedi and hosted dedi the behavior is the same on all 4 of which are on the same server, the other 4 on game servers, 1 of which is CE. This has been constant since version 057 - I am just wondering how to disable it for scrims, and servers which may not want scrambling.

twhitcomb commented 11 years ago

It's not too difficult to script keeping everyone on the same team, especially if the script is persistent (just save players' teams in a table). If it's not, you'll have to save players' teams to a text file. Then make sure they're put on the appropriate team OnTeamDecision.

LeMatou commented 11 years ago

Why do you say you like the way phasor scrambles the teams? If it doesn't scramble every map or every player, it doesn't sound like something desirable is happening anyway.

And how could it scramble every player? If every player gets moved, they are all just flipping to the other team and that would be silly.

HRShaft commented 11 years ago

A few of you weren't even aware that phasor does scramble teams. As this is the appropriate place to report bugs, that is what I am doing: reporting a bug. Oxide can choose to create a function to toggle this on and off as part of the next version - and it would be nice to be able to use this as a feature. The best way to confirm this bug is in a server with 8 or more players, It does not occur on map reset, but only as it moves from one map to the next. this is the top of the init, (if it matters) all gametypes are the same, hog races 15 laps, teams:

sv_name "HaloRace.Org -- Classic Team Races --" sv_public "1" sv_rcon_password "password" sv_kickafk 2 sv_maxplayers 16 sv_hash_check true sv_version_check true sv_alias_enable true sv_version 109 sv_mapcycle_timeout 5

PseudoProxen commented 11 years ago

I think it might be actually a bug; although I am pretty sure its not a thing that can be turned off and on with a function and was intended to happen with phasor atm.


Update (Sept 17)

Not a bug per say, it seems more on the lines how phasor cleans house at the end of the game.

urbanyoung commented 11 years ago

This definitely isn't an intended feature, I'll take a look.

urbanyoung commented 9 years ago

Fixed f55fe707752d25bcfffd549946492bf0011ac1a3