Raised This Month: $51 Target: $400
 12% 

[TF2] Weapon Attribute Setter


Post New Thread Reply   
 
Thread Tools Display Modes
Author
JoinedSenses
Senior Member
Join Date: Sep 2013
Plugin ID:
6141
Plugin Version:
1.1.1
Plugin Category:
Technical/Development
Plugin Game:
Team Fortress 2
Plugin Dependencies:
Servers with this Plugin:
85 
Plugin Description:
Modify attributes of client weapons on the fly
Old 05-29-2018 , 00:39   [TF2] Weapon Attribute Setter
Reply With Quote #1

.
Weapon Attribute Setter
v1.1.1

Description:
Modify attributes of client's active weapon on the fly
This plugin was created for development and testing. Attributes reset on class change.
Similar to this plugin, but instead of targeting clients, targets active weapons.

Requires smlib and tf2attributes

Commands:
sm_attribute (target) // Change attributes of targetted client's active weapon
sm_resetattributes (target|blank) // Reset attributes on all weapons of target. If blank, resets attributes of self.
sm_getweapon (target) // Displays client active weapon name and entity#

How:
/attribute playerName intAttribute floatValue
/resetattributes playerName
/getweapon playerName

Example:
/attribute joinedsenses 819 1.0
This would add no_jump to my active weapon, preventing me from jumping.

List of attributes:
https://wiki.teamfortress.com/wiki/L...tem_attributes




Project here:
Github

.

Last edited by JoinedSenses; 03-01-2020 at 18:34. Reason: Updated version to 1.1.1
JoinedSenses is offline
Mr_panica
Senior Member
Join Date: Jan 2017
Location: Russia, Saint-Petersburg
Old 05-30-2018 , 07:05   Re: [TF2] Weapon Attribute Setter
Reply With Quote #2

Thank you, very useful plugin.
__________________
Sorry for my English.
Mr_panica is offline
Mr_panica
Senior Member
Join Date: Jan 2017
Location: Russia, Saint-Petersburg
Old 05-30-2018 , 08:47   Re: [TF2] Weapon Attribute Setter
Reply With Quote #3

Need a command to reset attributes.
__________________
Sorry for my English.
Mr_panica is offline
JoinedSenses
Senior Member
Join Date: Sep 2013
Old 05-30-2018 , 22:46   Re: [TF2] Weapon Attribute Setter
Reply With Quote #4

Updated to v1.1.0

Changes:
  • Changed formatting of float to allow setting it to 0.0
  • Added command sm_resetattributes

Click here to see changes.


.

Last edited by JoinedSenses; 05-30-2018 at 23:56.
JoinedSenses is offline
KiddleyWiffers
Junior Member
Join Date: Aug 2017
Old 01-07-2019 , 10:58   Re: [TF2] Weapon Attribute Setter
Reply With Quote #5

Do you think you could make another version that allows adding attributes to weapons permanently to everyone on the server? Something that would allow Owners and Devs make their own balances to weapons without having to use some of the ones that that the regular balance mods force upon you.
KiddleyWiffers is offline
JoinedSenses
Senior Member
Join Date: Sep 2013
Old 01-07-2019 , 11:05   Re: [TF2] Weapon Attribute Setter
Reply With Quote #6

Fortunately, that is already a thing.

https://forums.alliedmods.net/showthread.php?t=115100
__________________
JoinedSenses is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:35.


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