Tagz mod
Posted: Sat Feb 03, 2018 3:37 pm
If you've ever played TeamFortress 2 or a number of Valve games you've seen the ability to use personal spray tags. I always liked that idea so I made it in UT. Here's a demo:
You can see that the rotation is not clamped but that is fixed in this current code. Players may use by binding a password to a mutate command like this:
mutate <password>
and it will spray their tag onto whatever surface they are looking at if it is close. This prevents other players from spoofing your tag or you from using theirs.
Edit/Update:
Here's a new video of the working mod code. You can see the sprays now orient correctly. These are just a few quick grabs I pulled down from google images to show you what it will look like in game. I'll get the mod+code posted tonight after I do a final check and cleanup. The readme is going to take a bit to get done too.
Finally, got it ready... Here's the readme (included in the zip)
You can see that the rotation is not clamped but that is fixed in this current code. Players may use by binding a password to a mutate command like this:
mutate <password>
and it will spray their tag onto whatever surface they are looking at if it is close. This prevents other players from spoofing your tag or you from using theirs.
Edit/Update:
Here's a new video of the working mod code. You can see the sprays now orient correctly. These are just a few quick grabs I pulled down from google images to show you what it will look like in game. I'll get the mod+code posted tonight after I do a final check and cleanup. The readme is going to take a bit to get done too.
Finally, got it ready... Here's the readme (included in the zip)
Spoiler
Simple mod to allow players to use personal spray tags. This was quite fun in TeamFortress2 as you could spray your tag deep in the enemy base to show them you can make it that far.
How to set it up:
Add the files and you can test it out easily. It comes pre-configured with seven tags for demo use. Add the mod to any game type, walk up to a wall or any surface that will take decals and enter in console:
mutate one
and if you are close enough to where you are looking you'll get a tag sprayed on the wall. Each spray can only exist once on a server so if you respray it will remove the old one and update it to where you are now spraying.
Why passwords?
Kid porn and really gruesome images. No kidding, you should see some of the racist, hateful, violent shit people will spray tag if you let them decide on their own. I promise you if I coded this to let the player decide you'd have swastikas and DeathTube.com images the first day. Nope, that isn't going to happen on my watch so I'm forcing the admins to allow each and every image and tying that to a password.
This lets each person have their very own spray tag that no one else can use. Just have your players pick out any texture that is 128X128 and have them create a password. You then edit the ini file and add them in, paying attention to the number you are assigning them. Here's an example...my player wants to use the control panel texture from starship and wants to use the password kitty43. I edit my ini like this:
[goTagz.goTagz]
Tagz1Password=kitty43
[goTagz.Tagz1]
Tag1TextureChoice=starship.wsh6
and you're all done. Please remember that if you use some obscure texture there must be a serverpackage line for it on the server or other players will not see it. Be sure to tell players not to share their passwords or others can use their tag.
Binding the spray:
Easily done. Just edit your user.ini and set an unused letter to the command. In this example I'll bind "M" to it:
M=mutate kitty43
Now each time I hit M it will try to spray the starship tag. Easy peazy. The mod is limited to 24 tags but can easily be extended by following how I did it if you need more. As always use this mod/code/idea any way you like.
For coders (how does it work?)-
When you call the mutate command it spawns a very tiny, silent, non-damaging rocketMK2 that shoots out to where you are looking. When it hits something it attempts to place a Tagz decal on that surface. I did it this way since the spawned decal is properly replicated in native code. You will never see or hear the rocket so it appears the spray just appears on the surface. I wanted to get all fancy and create a "spray" mist that looked like paint going on the wall but then I thought "Fuck that, I'm lazy." I guess it's on you now to do it. Enjoy!
Kelly
"gopostal"
How to set it up:
Add the files and you can test it out easily. It comes pre-configured with seven tags for demo use. Add the mod to any game type, walk up to a wall or any surface that will take decals and enter in console:
mutate one
and if you are close enough to where you are looking you'll get a tag sprayed on the wall. Each spray can only exist once on a server so if you respray it will remove the old one and update it to where you are now spraying.
Why passwords?
Kid porn and really gruesome images. No kidding, you should see some of the racist, hateful, violent shit people will spray tag if you let them decide on their own. I promise you if I coded this to let the player decide you'd have swastikas and DeathTube.com images the first day. Nope, that isn't going to happen on my watch so I'm forcing the admins to allow each and every image and tying that to a password.
This lets each person have their very own spray tag that no one else can use. Just have your players pick out any texture that is 128X128 and have them create a password. You then edit the ini file and add them in, paying attention to the number you are assigning them. Here's an example...my player wants to use the control panel texture from starship and wants to use the password kitty43. I edit my ini like this:
[goTagz.goTagz]
Tagz1Password=kitty43
[goTagz.Tagz1]
Tag1TextureChoice=starship.wsh6
and you're all done. Please remember that if you use some obscure texture there must be a serverpackage line for it on the server or other players will not see it. Be sure to tell players not to share their passwords or others can use their tag.
Binding the spray:
Easily done. Just edit your user.ini and set an unused letter to the command. In this example I'll bind "M" to it:
M=mutate kitty43
Now each time I hit M it will try to spray the starship tag. Easy peazy. The mod is limited to 24 tags but can easily be extended by following how I did it if you need more. As always use this mod/code/idea any way you like.
For coders (how does it work?)-
When you call the mutate command it spawns a very tiny, silent, non-damaging rocketMK2 that shoots out to where you are looking. When it hits something it attempts to place a Tagz decal on that surface. I did it this way since the spawned decal is properly replicated in native code. You will never see or hear the rocket so it appears the spray just appears on the surface. I wanted to get all fancy and create a "spray" mist that looked like paint going on the wall but then I thought "Fuck that, I'm lazy." I guess it's on you now to do it. Enjoy!
Kelly
"gopostal"