Resource icon

[Open Assets] Pronouns 1.1

What permissions do you give others to modify and/or maintain your submission?
Modify: YES - Maintain: YES - I give permission for my entire submission to be modified by others or used in their own work. I give permission for my entire submission to be maintained by others as well.
I made sure my file(s) follow the Submissions Guidelines
  1. Yes
I named my file(s) correctly (see Filename Conventions)
  1. Yes
this addon adds the ability for players to display their pronouns in-game. the pronouns will appear in the scoreboard...

srb20029.png


...and alongside the player tag...

srb20030.png


usage​

a player can set their pronouns by using the pronouns command. once set, they are saved on the client, so you only need to apply it once. the pronouns will then be automatically restored once the addon is loaded again, either by adding it explicitly or by joining a server that has it loaded already.

in addition, the pronouns can be removed by running the command pronouns -, and all players' pronouns can be listed in the console using the showpronouns command.

note that there are a few limitations:
  • pronouns are only allowed to contain forward slash and letters.
  • they're limited to a maximum of 16 characters.
  • players can only set their own pronouns, not others players' pronouns (and that applies even to hosts/admins)
  • pronouns will not be displayed on the scoreboard if compactscoreboard is enabled or there are more than 18 players on the server.
why the pronouns isn't just a fixed list of values is to make sure to cater to all people, since gender is complicated and there are far too many variants out there to be able to cover all cases if it was just a list.

integration support​

other addons can retrieve a player's pronouns from the pronouns field on a player_t, which is provided by the script. if this value is nil, that player has no pronouns set, so make sure to check for that before you use that field!

in addition, for addons that uses a custom scoreboard, the global variable pronouns_showinscoreboard can be set to false to tell the addon to not display pronouns on the scoreboard. note that since this is a global variable, care must be taken to ensure this addon is loaded first, as the variable is not defined before this addon is loaded. this is most easily done by checking that pronouns_showinscoreboard is not nil.

as an example, here's how it's used in the hangout server this addon was originally written for:

srb20031.png
Author
Gouldron
Downloads
454
Views
3,159
Extension type
lua
File size
6.3 KB
MD5 Hash
4973eb36089bde9742ad9ce224f06b8c
First release
Last update

More resources from Gouldron

Share this resource

Latest updates

  1. improvements for dedicated servers

    this update mainly adds better tooling for dedicated servers, where hosts would be essentially...

Latest reviews

Genuinely great addition. The forethought of adding compatibility to HUD elements that may otherwise conflict with the addon is great and having the pronouns readily accessible in the player objects, added with the simplicity of it all, makes it a surprisingly flexible addition to addons trying to integrate it.
Upvote 0
THEY ADDED WOKE TO MY GAME???
Jokes aside, this helps people to avoid misgendering and i like that!
Upvote 0
Gender's confusion was cured by their held Persim Berry
Upvote 1
Does exactly what it says in the title, provide pronouns to the player, and it works very well. Like one person said, now people wont have to type their pronouns into their name.
Upvote 1
Nice! This addon will avoid misgendering and will save up more space for the username.
Upvote 3
I can't believe they made SRB2 wok- (I'm kidding lol)
this is a peak mod tbh, thank you for making this, sir.
Upvote 4
Back
Top