Resource icon

[Open Assets] Pronouns 1.0

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.
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 -.

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
93
Views
785
Extension type
lua
File size
5.5 KB
MD5 Hash
1486ef91e67117fbd02e4e0c8fd32141
First release
Last update
Rating
5.00 star(s) 4 ratings

More resources from Gouldron

Share this resource

Latest reviews

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, now I wont get fucking banned off a server for calling a wee/wee a he/him
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 3
Back
Top