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

Release Weapon Colors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Phault
Junior Member
Join Date: Mar 2013
Old 03-08-2013 , 17:00   Weapon Colors
Reply With Quote #1

[Store] Weapon Colors (1.1-alpha)


Description:Requirements:Acknowledgements:
  • The player using the weapon color do not see the change in color (unless in thirdperson), but other players do.
Features:
  • Customizable - You can have any amount of weapon colors you want.
Installation:

Download the attached store-weaponcolors.zip archive and extract to your sourcemod folder intact. Then open your store web panel, navigate to Import/Export System under the Tools menu, and import configs/store/json-import/weaponcolors.json

Adding more colors:

You can use the web panel to add weapon colors. Open the web panel, navigate to Add New Item under the Items menu. In type and loadout_slot, type weaponcolors. Change name, display_name, description and attrs to customize the new color.

The attrs field should look like:

Code:
{
        "color": [255, 0, 0, 255]
}
Values are RGBA, for example the above makes the weapon red and fully visible.
Attached Files
File Type: zip store-weaponcolors.zip (43.7 KB, 2489 views)

Last edited by Phault; 03-09-2013 at 19:33. Reason: Updated attachment
Phault is offline
serpentine
I don't have a problem
Join Date: Feb 2011
Location: Madison, WI
Old 03-08-2013 , 22:19   Re: Weapon Colors
Reply With Quote #2

Cool stuff. I love releases that don't require clients to download custom files. Will test and post with any issues.

edit: Works with TF2. Only issue I've run into is the colors go away when you touch the resupply cabinet. Other than that, cool! It even recolors the guitar during the shred alert taunt .

__________________

Last edited by serpentine; 03-09-2013 at 00:22.
serpentine is offline
eXemplar
Member
Join Date: Feb 2013
Old 03-09-2013 , 00:55   Re: Weapon Colors
Reply With Quote #3

Great addition, be fantastic if you could specify slots/all slots (from GetPlayerWeaponSlot ?)
eXemplar is offline
mickael002
Senior Member
Join Date: Jul 2010
Old 03-09-2013 , 03:50   Re: Weapon Colors
Reply With Quote #4

Thanks
__________________
mickael002 is offline
Phault
Junior Member
Join Date: Mar 2013
Old 03-09-2013 , 06:09   Re: Weapon Colors
Reply With Quote #5

Quote:
Originally Posted by serpentine View Post
Cool stuff. I love releases that don't require clients to download custom files. Will test and post with any issues.

edit: Works with TF2. Only issue I've run into is the colors go away when you touch the resupply cabinet. Other than that, cool! It even recolors the guitar during the shred alert taunt .
Would you mind testing to see if this .smx fixes the issue?
Attached Files
File Type: smx store-weaponcolors.smx (12.4 KB, 477 views)
File Type: sp Get Plugin or Get Source (store-weaponcolors.sp - 470 views - 5.6 KB)

Last edited by Phault; 03-09-2013 at 07:42. Reason: Added source file
Phault is offline
serpentine
I don't have a problem
Join Date: Feb 2011
Location: Madison, WI
Old 03-09-2013 , 07:27   Re: Weapon Colors
Reply With Quote #6

Quote:
Originally Posted by Phault View Post
Would you mind testing to see if this .smx fixes the issue?
I will later today. You may want to attach the souce with it though, one of the mods here will probably delete the attachment without it.
__________________
serpentine is offline
Phault
Junior Member
Join Date: Mar 2013
Old 03-09-2013 , 07:43   Re: Weapon Colors
Reply With Quote #7

Quote:
Originally Posted by serpentine View Post
I will later today. You may want to attach the souce with it though, one of the mods here will probably delete the attachment without it.
Thanks, I added the source file.
Phault is offline
serpentine
I don't have a problem
Join Date: Feb 2011
Location: Madison, WI
Old 03-09-2013 , 16:50   Re: Weapon Colors
Reply With Quote #8

Tested the attached version, seems to have fixed the resupply locker issue. Thanks.
__________________
serpentine is offline
Phault
Junior Member
Join Date: Mar 2013
Old 03-09-2013 , 19:30   Re: Weapon Colors
Reply With Quote #9

Quote:
Originally Posted by serpentine View Post
Tested the attached version, seems to have fixed the resupply locker issue. Thanks.
Good to hear! Thanks for help testing it.
Phault is offline
naldecon
Member
Join Date: Sep 2012
Old 03-18-2013 , 12:33   Re: Weapon Colors
Reply With Quote #10

Hello,

Found the following errors on CSGO:

Code:
L 03/18/2013 - 02:24:20: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 03/18/2013 - 02:24:20: [SM] Displaying call stack trace for plugin "store\store-backend.smx":
L 03/18/2013 - 02:24:20: [SM]   [0]  Line 1228, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::GetEquippedItemsByType()
L 03/18/2013 - 02:24:20: [SM]   [1]  Line 1762, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::Native_GetEquippedItemsByType()
L 03/18/2013 - 02:24:20: [SM] Native "Store_GetEquippedItemsByType" reported: Error encountered while processing a dynamic native
L 03/18/2013 - 02:24:20: [SM] Displaying call stack trace for plugin "store\store-weaponcolors.smx":
L 03/18/2013 - 02:24:20: [SM]   [0]  Line 153, D:\Dropbox\GitHub\store-weaponcolors\scripting\store-weaponcolors.sp::OnItemPickup()

L 03/18/2013 - 02:24:20: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 03/18/2013 - 02:24:20: [SM] Displaying call stack trace for plugin "store\store-backend.smx":
L 03/18/2013 - 02:24:20: [SM]   [0]  Line 1228, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::GetEquippedItemsByType()
L 03/18/2013 - 02:24:20: [SM]   [1]  Line 1762, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::Native_GetEquippedItemsByType()
L 03/18/2013 - 02:24:20: [SM] Native "Store_GetEquippedItemsByType" reported: Error encountered while processing a dynamic native
L 03/18/2013 - 02:24:20: [SM] Displaying call stack trace for plugin "store\store-weaponcolors.smx":
L 03/18/2013 - 02:24:20: [SM]   [0]  Line 162, D:\Dropbox\GitHub\store-weaponcolors\scripting\store-weaponcolors.sp::OnPlayerSpawn()
Any ideas?
naldecon 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 10:01.


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