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

TF2Items - Items with custom attributes.


Post New Thread Closed Thread   
 
Thread Tools Display Modes
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 07-27-2011 , 11:49   Re: TF2Items - Items with custom attributes.
#1021

Some attributes work that way but most only take effect when the weapon is out.
__________________
pheadxdll is offline
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 07-27-2011 , 14:32   Re: TF2Items - Items with custom attributes.
#1022

Can weapons be renamed?
PAL-18 is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 07-27-2011 , 15:10   Re: TF2Items - Items with custom attributes.
#1023

No.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 07-28-2011 , 13:48   Re: TF2Items - Items with custom attributes.
#1024

should the hItem handle be a valid handle in the OnGiveNamedItem forward?

Last edited by Zephyrus; 07-28-2011 at 14:08.
Zephyrus is offline
Pawn 3-pg
Senior Member
Join Date: Jul 2009
Old 07-28-2011 , 16:17   Re: TF2Items - Items with custom attributes.
#1025

Quote:
Originally Posted by Zephyrus View Post
should the hItem handle be a valid handle in the OnGiveNamedItem forward?
It will be invalid for the first plugin that receives the TF2Items_OnGiveNamedItem call. If that plugin modifies the item handle, every other plugin that has TF2Items_OnGiveNamedItem will see the last handle used.
Pawn 3-pg is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 07-28-2011 , 16:24   Re: TF2Items - Items with custom attributes.
#1026

Quote:
Originally Posted by Pawn 3-pg View Post
It will be invalid for the first plugin that receives the TF2Items_OnGiveNamedItem call. If that plugin modifies the item handle, every other plugin that has TF2Items_OnGiveNamedItem will see the last handle used.

is it possible to modify someone's stuff without recreating it? like if he has a green paint applied and id like to make his hat unusual type but i want to keep his paint applied too, can i do that somehow?
Zephyrus is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 07-28-2011 , 18:35   Re: TF2Items - Items with custom attributes.
#1027

preserve-attributes in the config. PRESERVE_ATTRIBUTES flag in the native.

The tf2items_manager plugin (using the config) was built specifically to modify a player's existing items.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 07-28-2011 , 18:48   Re: TF2Items - Items with custom attributes.
#1028

Quote:
Originally Posted by FlaminSarge View Post
preserve-attributes in the config. PRESERVE_ATTRIBUTES flag in the native.

The tf2items_manager plugin (using the config) was built specifically to modify a player's existing items.
if i create an item, set that flag, change the attributes then give it to a player, will it automatically merge the attributes?
Zephyrus is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-28-2011 , 18:58   Re: TF2Items - Items with custom attributes.
#1029

Yes.
__________________
asherkin is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 07-28-2011 , 19:01   Re: TF2Items - Items with custom attributes.
#1030

Quote:
Originally Posted by asherkin View Post
Yes.
thank you very much
Zephyrus is offline
Closed Thread


Thread Tools
Display Modes

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 09:19.


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