AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Store (https://forums.alliedmods.net/forumdisplay.php?f=157)
-   -   Release Weapon Colors (https://forums.alliedmods.net/showthread.php?t=210283)

Phault 03-08-2013 17:00

Weapon Colors
 
1 Attachment(s)
[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.

serpentine 03-08-2013 22:19

Re: Weapon Colors
 
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 :D.

http://cloud-2.steampowered.com/ugc/...8.resizedimage

eXemplar 03-09-2013 00:55

Re: Weapon Colors
 
Great addition, be fantastic if you could specify slots/all slots (from GetPlayerWeaponSlot ?)

mickael002 03-09-2013 03:50

Re: Weapon Colors
 
Thanks

Phault 03-09-2013 06:09

Re: Weapon Colors
 
2 Attachment(s)
Quote:

Originally Posted by serpentine (Post 1909245)
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 :D.

Would you mind testing to see if this .smx fixes the issue?

serpentine 03-09-2013 07:27

Re: Weapon Colors
 
Quote:

Originally Posted by Phault (Post 1909342)
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.

Phault 03-09-2013 07:43

Re: Weapon Colors
 
Quote:

Originally Posted by serpentine (Post 1909376)
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.

serpentine 03-09-2013 16:50

Re: Weapon Colors
 
Tested the attached version, seems to have fixed the resupply locker issue. Thanks.

Phault 03-09-2013 19:30

Re: Weapon Colors
 
Quote:

Originally Posted by serpentine (Post 1909686)
Tested the attached version, seems to have fixed the resupply locker issue. Thanks.

Good to hear! Thanks for help testing it.

naldecon 03-18-2013 12:33

Re: Weapon Colors
 
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?


All times are GMT -4. The time now is 09:01.

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