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

TF2Items - Items with custom attributes.


Post New Thread Closed Thread   
 
Thread Tools Display Modes
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 07-24-2011 , 00:07   Re: TF2Items - Items with custom attributes.
#991

Recompile tf2items_manager.sp with the #define DEBUG line uncommented, see if it attempts to read "*" or not.
Also, paste your configs using either [ php ] tags or pastebin.
__________________
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.

Last edited by FlaminSarge; 07-24-2011 at 00:32.
FlaminSarge is offline
Mev
Senior Member
Join Date: Apr 2011
Old 07-24-2011 , 01:47   Re: TF2Items - Items with custom attributes.
#992

A while ago I had the .txt set up to give my donators with "o" flag Hearts effect around their primary weapons...
Is this still possible after all the updates?

If so could somebody please really quickly put up what I would need to give "o" flag donators unusual effect around their weps!
Mev is offline
dbmiller5
Senior Member
Join Date: Jun 2011
Old 07-24-2011 , 05:23   Re: TF2Items - Items with custom attributes.
#993

Quote:
Originally Posted by FlaminSarge View Post
Recompile tf2items_manager.sp with the #define DEBUG line uncommented, see if it attempts to read "*" or not.
Also, paste your configs using either [ php ] tags or pastebin.
I don't know how to compile tf2items_manager.sp. However, I removed the comment slashes in front of #define DEBUG and saved it, but it didn't work. I have not setup any configs for tf2items. However, I am able to get the particle effect working when I assign each individually.
dbmiller5 is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 07-24-2011 , 10:53   Re: TF2Items - Items with custom attributes.
#994

.sp files never go serverside, they're just source files. To compile into an smx, you have a source directory on your local computer with compile.exe and spcomp.exe, as well as an include folder where you put all the includes (all of this is in the sourcemod download). Tf2items.inc from the tf2items download goes in the include folder. Tf2items_manager.sp goes in with compile.exe, and you run it with compile.

I'm not sure if there's a wiki page for that process.

Mev: it should still work.
__________________
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
dbmiller5
Senior Member
Join Date: Jun 2011
Old 07-24-2011 , 15:14   Re: TF2Items - Items with custom attributes.
#995

@FlaminSarge
OK, the file that I compiled did not even work let alone all weapons with effects. I really dont want to make a whole statement for every weapon. I was hoping to offer a few effects to my donators, which would mean thousands of lines of redundant code. I imagine run-time efficiency would be terrible with a massive function like I explained.

NOTE: "*" works for the steam id part, but not for the weapon part
Sorry for being a noob.

Last edited by dbmiller5; 07-24-2011 at 15:48.
dbmiller5 is offline
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 07-24-2011 , 18:41   Re: TF2Items - Items with custom attributes.
#996

What attributes can this change exactly? Can it change the weapon damage/add new abilities to weapons?
PAL-18 is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 07-24-2011 , 18:52   Re: TF2Items - Items with custom attributes.
#997

PAL-18: yes. You modify weapons for certain clients or all clients, etc.
__________________
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
PAL-18
AlliedModders Donor
Join Date: Jul 2010
Old 07-24-2011 , 19:03   Re: TF2Items - Items with custom attributes.
#998

Cool.

Do items with custom attributes replace the items players already have? Or can the player choose the custom item.
PAL-18 is offline
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 07-24-2011 , 22:37   Re: TF2Items - Items with custom attributes.
#999

Quote:
Originally Posted by FlaminSarge View Post
Recompile tf2items_manager.sp with the #define DEBUG line uncommented, see if it attempts to read "*" or not.
Also, paste your configs using either [ php ] tags or pastebin.
Just gave that a try and reloaded the plugin. It shoes the attributes etc, but where I used "*" it just says Item: 65535 for all players.
Snaggle is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-24-2011 , 22:40   Re: TF2Items - Items with custom attributes.
#1000

Paste the complete output in [code][/code] tags, paraphrasing debugging output is pretty useless.
__________________
asherkin 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 02:25.


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