Page 1 of 1

Object Properties per Team

Posted: Wed Jan 23, 2019 12:55 pm
by tainn
It would be really helpful if a plugin were to exist where one could specify an object's properties that would differ per team.

For example, a box that could have the drivethrough option applied to it, but for the rabbit team only, for the rabbit to temporarily escape to, or use a shortcut. Or a pyramid that would have the death effect phydrv applied to it, but only affect the blue team, while the red team would be safe when touching it.

I believe this would open up new potential strategies for map and game play creation.

To anyone interested, these are the team options of the latest version at the time of posting this:

Code: Select all

{
    AutomaticTeam = -2,
    NoTeam = -1,
    RogueTeam = 0,
    RedTeam = 1,
    GreenTeam = 2,
    BlueTeam = 3,
    PurpleTeam = 4,
    ObserverTeam = 5,
    RabbitTeam = 6,
    HunterTeam = 7
};

Re: Object Properties per Team

Posted: Wed Jan 23, 2019 3:07 pm
by blast
Plugins cannot do that. That would be a protocol-breaking change that would require changes to the client and server.

Re: Object Properties per Team

Posted: Wed Jan 23, 2019 4:28 pm
by tainn
I see, in that case the thread is better suited in the Enhancements forum instead, requiring such changes.

Re: Object Properties per Team

Posted: Wed Jan 23, 2019 8:11 pm
by Zehra
The concept does sound somewhat similar to what others have proposed over the years.
While, if I remember correctly, in '2.99', there was work to only allow certain teams or shots go through teleporters, this was pretty much as far as it go in terms of 'per-team' attributes to objects.

Not to sound discouraging in any way, but API at the time of this writing have no 'ability' to control or adjust objects.
The tangability feature would have allowed some interesting aspects to be made, but this was for the '3.0' edition, which was never released.

Although you are not able to adjust any of the 'arguments' an object has with the API, there is something you can do.
This is using a custom map or zone object, and by doing so, some of the things you have mentioned are 'possible' to some extent. (Via plug-in.)

The part of having a 'death' object only affecting certain teams is pretty much the only thing which can be done be simulated with a plug-in.
I did partly simulate this in my 'TeamDeathZones' plug-in, which was inspired by the following threads: Stay Out Areas for a certain team, Death Objects And Hiding Objects

However, my implementation of it was inefficient and left a lot to be desired, but it is unlikely I'll be revising it anytime soon due to other projects taking priority at the moment.
Still, the source is there and you are free to use or update it.

-Zehra