AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [REQ] Auto Name Changer (TF2) (https://forums.alliedmods.net/showthread.php?t=66146)

Extreme_One 01-24-2008 14:47

[REQ] Auto Name Changer (TF2)
 
This is an idea for a plugin I'd love to have running on my TF2 server.

If a player types a command; "!addme" is the command I'd want to use but it would be better if the command were definable by the server admin, then the plugin adds a string (definable by the server admin) to the end of their player name.

The player's STEAM ID is stored in a database and every time they joined the server (or the map changed) then their name was changed to incorporate the additional string.

For example:
  • So on my TF2 server I've defined the string the plugin will add as "added"
  • I join with my nick set as "myname"
  • I type "!addme" and my name's changed to "myname added"
  • Then when the map changes and the next time I connect to the server my ingame name is automatically changed to "myname added"
Also a "!removeme" command would be needed :)
  • So I join the server as "myname added" and type "!removeme"
  • The plugin searches my name for the defined string and finds "added" within my name and strips it out to make my nick "myname"
  • The plugin then removes my Steam ID from it's database
If a plugin to do this was made fully featured then the config for this plugin would ask the admin whether to add the string to the end of the player name or if it was to be prefixed.

Would be excellent if or someone/ anyone could make this!

Extreme_One 01-28-2008 15:09

Re: Auto Name Changer
 
This will be such a good plugin for getting my regulars to tag up when they're on the server.

The database aspect is mainly for TF2 since your in-game name is handled by Steam Friends rather than a .cfg file.

I really hope someone will consider making this, if it's made and people fully understand what it's for I think people would really appreciate it.

Extreme_One 02-22-2008 06:16

Re: Auto Name Changer
 
I was wondering if anybody had the skill or the inclination to attempt this?

FrostbyteX 02-22-2008 10:25

Re: Auto Name Changer
 
Could you please give a specific example.

What I'm envisioning is a configuration file:

Code:

"tag-up"
{
              "pattern" "[tag] [name]"
         
              "steam-ids"
              {
                          "player1"
                          {
                                        "tag" "YourTagHere"
                                        "id" "STEAM_0:0:82414"
                          }
                 
                          "player2"
                          {
                                        "tag" "YourTagHere"
                                        "id" "STEAM_0:0:1337"
                          }
        }
}

The plugin will hook the say command, search for "!addme" and, when found, will replace the calling player's name (in this case we will assume the player's name is "Larry" and his steamid is in the configuration file) with "YourTagHere Larry".

Is this what you want it to do?

Steve

Extreme_One 02-22-2008 11:14

Re: Auto Name Changer
 
Thanks for the reply Steve.

I can't be explaining it clearly enough.

I had a similar pluigin running using an Eventscript for CS:S ages ago but I can't use Eventscripts with TF2

What I'm wanting is for a quick method for my regular players to add a a predefined tag to their in-game name to show support to our clan / server.

Any player can type "!addme" and the tag as defined by a cvar is added to the end of their name.

So let's say I defined the tag to be "|Evil" with a cvar something like sm_customtag "|Evil"

Then let's say you come on the server and type "!addme" in chat.
The plugin will then add "|Evil" to the end of your in-game name.

Now here's the interesting part: as a name change will only last until the end of the map in TF2 (player's names are pulled from the nick defined in Steam Friends settings) then a SQL-lite database is used to store your SteamID and remembers you so that after the map change and for each and every time you connect to the server afterwards you will get "|Evil" added to your in-game name.

A command like "!removeme" will be used for removing a player from the SQL-lite database and stopping the autonamer from running on them.

A great additional cvar to make this useful for other admins would also be to decide whether the tag is added to the end of a player's name or in front of it. (I choose after it)

There's an apparent difficulty to overcome in changing a players name in TF2.
As I said already an in-game nick is handled by the name set in Steam Friends options but if I can change name in console using :
Code:

setinfo name <NEWNAME>
This change is only temporary though, hence the requirement for SQL-Lite support.

I hope that clears up the request and that you or someone will give it a go.

Extreme_One 05-27-2008 09:04

Re: Auto Name Changer
 
Bump? :oops:

toazron1 05-27-2008 09:19

Re: [REQ] Auto Name Changer (TF2)
 
its not possible to execute setinfo on a client in TF2 AFAIK

Extreme_One 05-27-2008 15:10

Re: [REQ] Auto Name Changer (TF2)
 
Quote:

Originally Posted by toazron1 (Post 630708)
its not possible to execute setinfo on a client in TF2 AFAIK


Apparently bl4nk has it sussed.

bl4nk 05-27-2008 15:19

Re: [REQ] Auto Name Changer (TF2)
 
Quote:

Originally Posted by Extreme_One (Post 630881)
Apparently bl4nk has it sussed.

Not exactly. The way Nephyrin has it working is that it doesn't issue the command on the client, it just handles the server-side stuff the same way as if the client were to change their name. Nothing gets changed on the client side, so if they go to a different server, they will retain their old name.

Extreme_One 05-27-2008 15:39

Re: [REQ] Auto Name Changer (TF2)
 
Quote:

Originally Posted by bl4nk (Post 630886)
Not exactly. The way Nephyrin has it working is that it doesn't issue the command on the client, it just handles the server-side stuff the same way as if the client were to change their name. Nothing gets changed on the client side, so if they go to a different server, they will retain their old name.

ahh ok.

Well that method would be wholly compatible with my request :)


All times are GMT -4. The time now is 05:23.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.