STEAM GROUP
Custom TF2 Weapons cTF2w
STEAM GROUP
Custom TF2 Weapons cTF2w
1,263
IN-GAME
6,806
ONLINE
Founded
19 June, 2015
Language
English
Location
United States 
So I've got this attribute plugin I've been working on, what should I do with it?
Disclaimer: I'm not very familiar with steam group discussions, so let me know if I'm doing something wrong here.
----------------------------------------------------------------------

Hi everyone!

So I got into TF2 modding recently, and the first thing I did was an attributes plugin for Custom Weapons 2. It was more an exercise in learning the language than anything else, but I kept working on it and adding more, so now it’s a bit… big. The code itself is a complete mess, because it was mostly a result of me experimenting, but the important thing is that it works, eh? And it does! Well, some of the attributes do.

Point is, I’ve gotten this monstrosity to the point where it’s usable. Only a handful of the attributes I’m absolutely certain work, but you can do a lot with them. Want to make a gun that fires any projectile in the game you want it to, with fully customizable stats for those projectiles? Sure, go for it. I made a jarate gun that heals buildings. Among more sensible things, of course :P. Most of the attributes I’m just not sure whether work or not, because there’s a lot of them by now, I haven’t been able to really test them thoroughly enough to feel confident about them.

So… yeah. I’m kinda proud of this thing, and it’s gotten to the point where enough of the attributes are functional that I feel like I should start doing something with it, rather than just let it gather dust on my hard drive. I’ll probably be making some demonstration videos on YouTube or something, but I do eventually want to release this so people can play it.

So now comes the fun bit: Questions and confusion. There is of course the question of custom weapons 3. Will incorporating attribute plugins work basically the same way? I would assume so, but I’d like to be prepared. The main issues I have right now, however, are that I can’t run a server reliably, and the newest version of CW2 that I could find doesn’t seem to be very up-to-date. Letting people play with these attributes isn’t something I’m really clear on how to do. What are the options there? Now that I've created this thing, what should I do with it?

Thanks for reading this great big discussion topic. Good lord, that ended up being more words than I was expecting. I appreciate any advice or comments people can give. Like I said, I’ll probably get around to making a few demonstration videos at some point, so you can see what the hell I’m talking about. I’ve got a few other little custom-weapon-related projects that may show up in that form as well, but they’re a secret for the moment ;)


-Tobias / The_Evil_Pickle


=====
Oh, one last thing! A small request to the developers, if there are any reading, for a very simple feature that could be added to Custom Weapons 3: A keyvalue that can be placed in weapon config files - sort of like that “nobots” one from CW2 – that just makes it so that the weapon doesn’t appear on the menu. CW3 would still know it exists and would store the data for it normally, but players wouldn’t be able to actually equip it manually. I want this because of reasons. I know you all get like ~38 requests to add something each day, so I’m not trying to pressure you or anything, just keep it in mind; it would open up some nice opportunities for making use of the natives in ways attribute plugins can’t right now.


:balloonicorn:
< >
Showing 1-4 of 4 comments
[cTF2w] Crafting 1 Jun, 2016 @ 5:47pm 
Good to see another person interested in coding!

For CW3, I don't know the extact changes required, but some attributes have to be slightly changed to work with CW3. Hopefully Theray can make a video tutorial, but he did tell me it's better to do a one-on-one walkthrough.

Theray will be making a new post for CW3 on allied modders website once all of the changes and bugs have been made. For any sugguested additions, Theray will look into adding features.

Now for CW2, you can use the github to use the verison I use for the server (I belive).
https://github.com/404UserNotFound/CustomWeapons2

I am always curious, what custom attributes have you gotten to work?
Last edited by [cTF2w] Crafting; 1 Jun, 2016 @ 9:38pm
The_Evil_Pickle 1 Jun, 2016 @ 8:28pm 
Originally posted by Crafting | cTF2w:
I am always curious, what custom attributes have you gotten to work?

My best one thus far is probably "primary fire spawn projectile". The value string defines what projectile the weapon should spawn on attack, as well as the projectile velocity, random spread, damage, etc. There's a lot of different stuff that can be done with this one attribute; I've made both a pistol that shoots a continuous stream of jarate and a scattergun that shoots a burst of rockets.

There's also a handful of attributes that effect the weapon's projectiles, such as ones that cause rockets to bounce off walls or for the projectile to heal buildings it hits.

I've made a few attributes that are based around addition a condition to a player (like with the addcond command), all of which take an integer for the condition id. These include adding a condition while the weapon is held, when the player gets a kill with the weapon, etc.

Then there are a few miscellaneous ones. I've got an attribute for knives that makes them attack automatically when you get behind someone, an attribute that makes a weapon use the player's cloak meter as ammo, an attribute that makes a weapon more accurate while the player is crouching, an attribute that causes the weapon to launch the player in the direction it is fired, an attribute that lets the player disguise as a dispenser while crouching, and a handful I haven't gotten around to testing out yet.

And then there are ones that aren't working, but seem to be pretty close. An attribute that transforms the weapon into a random custom weapon for the same class and slot each time it runs out of ammo, for example, is one attribute that seems to work sometimes and not others. An attribute that makes the weapon fire random projectiles from a list defined by the value works for about 2 seconds before the server crashes for some unknown reason. It could be something else entirely that actually causes the problem, but I need to do more testing to really be sure.

And my computer is now pissing off the V.A.C. system for some reason.
Thanks valve.
[cTF2w] Crafting 1 Jun, 2016 @ 9:37pm 
Originally posted by The_Evil_Pickle:
Originally posted by Crafting | cTF2w:
I am always curious, what custom attributes have you gotten to work?

My best one thus far is probably "primary fire spawn projectile". The value string defines what projectile the weapon should spawn on attack, as well as the projectile velocity, random spread, damage, etc. There's a lot of different stuff that can be done with this one attribute; I've made both a pistol that shoots a continuous stream of jarate and a scattergun that shoots a burst of rockets.

There's also a handful of attributes that effect the weapon's projectiles, such as ones that cause rockets to bounce off walls or for the projectile to heal buildings it hits.

I've made a few attributes that are based around addition a condition to a player (like with the addcond command), all of which take an integer for the condition id. These include adding a condition while the weapon is held, when the player gets a kill with the weapon, etc.

Then there are a few miscellaneous ones. I've got an attribute for knives that makes them attack automatically when you get behind someone, an attribute that makes a weapon use the player's cloak meter as ammo, an attribute that makes a weapon more accurate while the player is crouching, an attribute that causes the weapon to launch the player in the direction it is fired, an attribute that lets the player disguise as a dispenser while crouching, and a handful I haven't gotten around to testing out yet.

And then there are ones that aren't working, but seem to be pretty close. An attribute that transforms the weapon into a random custom weapon for the same class and slot each time it runs out of ammo, for example, is one attribute that seems to work sometimes and not others. An attribute that makes the weapon fire random projectiles from a list defined by the value works for about 2 seconds before the server crashes for some unknown reason. It could be something else entirely that actually causes the problem, but I need to do more testing to really be sure.

And my computer is now pissing off the V.A.C. system for some reason.
Thanks valve.

Wow, most of thoses sound awesome. I would love to check them out!
The655 | cTF2w 1 Jun, 2016 @ 10:53pm 
Cool
< >
Showing 1-4 of 4 comments
Per page: 1530 50