[TF2] Set Client Attribute
2 Attachment(s)
This plugin makes the player (you or anyone) have attributes on their class, just like "CharacterAttributes" on MvM Popfiles or Class Upgrades in MvM but you set the attribute yourself
The commands to this plugin are:
Note this plugin requires TF2Attributes to work, if not then the plugin will not even work. Changelog Version 1.0.0 - Initial Release Version 1.0.1 - Added sm_removeallattribsclient to remove all the attributes from client Version 1.0.2 - Updated details of the plugin, removed filter alive players only since attributes doesn't remove when dead. Credits The credits are on the plugin's code. If there's any problem with the plugin, please reply, i would be glad to help. |
Re: [TF2] Set Client Attribute
Out of curiousity, what's the purpose of "COMMAND_FILTER_ALIVE|args < 1" in the ProcessTargetString call?
Also, is there any functionality this provides that isn't currently in the tf2attributes_example plugin attached to TF2Attributes? If so, it'd be cool to highlight that in the plugin description. Lastly, you should add TF2Attributes' plugin ID (on the plugin page) to this plugin's "Requirements" field. If you edit your post with a full edit (not a quick edit), you should see a field for dependencies/requirements. |
Re: [TF2] Set Client Attribute
Quote:
2. I just noticed the TF2Attributes example plugin, i did not know it can add attributes like this one but the one i made, was just to make people easily get that just incase some don't know the example does this, and this one i made only adds attributes to the client and not the weapons, and easier to use (a little bit), so yeah, it's not that functionable since some attributes can't seem to work well with my plugin (recharge bar attribute for example) 3. I did, it just doesn't show up sometimes, but i will try again. |
Re: [TF2] Set Client Attribute
I've thought about doing something like this. Nice job!
|
Re: [TF2] Set Client Attribute
Wow! Incredible! Amazing job man!
May i ask you where did you begin learning SourcePawn @StormishJustice ? Also, have you ever tought of implementing a MySQL database for the plugin so it saves the attributes on player even after disconnect? |
Re: [TF2] Set Client Attribute
Quote:
2. No, i don't even know how to use a MySQL database plus i don't think applying attributes to the player even after disconnect will make it work a ton, it's that there's alot of plugins that use attributes on client and that's the worst part. |
Re: [TF2] Set Client Attribute
So... How does one do this correctly? I kept doing something like
!sm_setattribclient @me "damage bonus" "600" But it keeps giving me the help message on how to do it. Help please, thanks. |
Re: [TF2] Set Client Attribute
Double quote marks don't work properly in chat. You'll have to use this command through console.
|
Re: [TF2] Set Client Attribute
Quote:
|
Re: [TF2] Set Client Attribute
Interesting! I'm willing to learn SourcePawn when i get enough free time.
A small but worthy feature you should add is a message that confirms the Attribute Add on the client was sucessfully made. Also goes for removing attributes from the client. So we know it suceed on doing it! |
| All times are GMT -4. The time now is 21:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.