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

Release NadeSkins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Phault
Junior Member
Join Date: Mar 2013
Old 03-08-2013 , 13:26   NadeSkins
Reply With Quote #1

[Store] NadeSkins (1.1-alpha)


Description:
  • This plugin allows players to buy custom appearances for their grenades in the store.
  • The most recent source code is available at this project's GitHub repository: https://github.com/Phault/store-nadeskins.
Requirements:Features:
  • Customizable - You can have any amount of nade skins you want.
  • Models are downloaded automatically - You don't need to configure that.
Installation:

Download the attached store-nadeskins.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/nadeskins.json

Adding more skins:

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

The attrs field should look like:

Code:
{
        "model": "models/props/de_tides/Vending_turtle.mdl"
}
Attached Files
File Type: zip store-nadeskins.zip (51.4 KB, 2111 views)

Last edited by Phault; 03-14-2013 at 13:40. Reason: Update: Now checks whether the spawned entity is valid
Phault is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 03-09-2013 , 23:03   Re: NadeSkins
Reply With Quote #2

Cool module.
__________________
retired
shavit is offline
mickael002
Senior Member
Join Date: Jul 2010
Old 03-10-2013 , 03:31   Re: NadeSkins
Reply With Quote #3

nice thanks
__________________
mickael002 is offline
Morell
AlliedModders Donor
Join Date: Jun 2010
Location: World
Old 03-24-2013 , 15:15   Re: NadeSkins
Reply With Quote #4

I have this problem and client crash:
L 03/24/2013 - 20:09:20: [SM] Native "SetEntityModel" reported: Entity 1024 is not valid
L 03/24/2013 - 20:09:20: [SM] Displaying call stack trace for plugin "store/store-nadeskins.smx":
L 03/24/2013 - 20:09:20: [SM] [0] Line 201, D:\Dropbox\GitHub\store-nadeskins\scripting\store-nadeskins.sp::OnGetPlayerNadeSkin()
Morell is offline
seupoj
Senior Member
Join Date: Mar 2013
Location: India
Old 03-25-2013 , 07:40   Re: NadeSkins
Reply With Quote #5

is this plugin for tf2
__________________
seupoj is offline
Send a message via Skype™ to seupoj
ApexPredator
SourceMod Donor
Join Date: Apr 2013
Old 05-16-2013 , 20:58   Re: NadeSkins
Reply With Quote #6

Quote:
Originally Posted by Morell View Post
I have this problem and client crash:
L 03/24/2013 - 20:09:20: [SM] Native "SetEntityModel" reported: Entity 1024 is not valid
L 03/24/2013 - 20:09:20: [SM] Displaying call stack trace for plugin "store/store-nadeskins.smx":
L 03/24/2013 - 20:09:20: [SM] [0] Line 201, D:\Dropbox\GitHub\store-nadeskins\scripting\store-nadeskins.sp::OnGetPlayerNadeSkin()
I'm getting a similar error.

L 05/17/2013 - 10:288: [SM] Native "SetEntityModel" reported: Entity 96 is not valid
L 05/17/2013 - 10:288: [SM] Displaying call stack trace for plugin "store/store-nadeskins.smx":
L 05/17/2013 - 10:288: [SM] [0] Line 204, /home/casper/Dropbox/GitHub/store-nadeskins/scripting/store-nadeskins.sp::OnGetPlayerNadeSkin()
ApexPredator is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 05-17-2013 , 04:44   Re: NadeSkins
Reply With Quote #7

Quote:
Originally Posted by ApexPredator View Post
I'm getting a similar error.

L 05/17/2013 - 10:288: [SM] Native "SetEntityModel" reported: Entity 96 is not valid
L 05/17/2013 - 10:288: [SM] Displaying call stack trace for plugin "store/store-nadeskins.smx":
L 05/17/2013 - 10:288: [SM] [0] Line 204, /home/casper/Dropbox/GitHub/store-nadeskins/scripting/store-nadeskins.sp::OnGetPlayerNadeSkin()
Add a checker for valid entity and log errors will disappear, like this:
PHP Code:
if(IsValidEntity(entity)) SetEntityModel(entityg_skins[skin][SkinModelPath]); 
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
ApexPredator
SourceMod Donor
Join Date: Apr 2013
Old 05-20-2013 , 21:10   Re: NadeSkins
Reply With Quote #8

Quote:
Originally Posted by Morell View Post
I have this problem and client crash:
L 03/24/2013 - 20:09:20: [SM] Native "SetEntityModel" reported: Entity 1024 is not valid
L 03/24/2013 - 20:09:20: [SM] Displaying call stack trace for plugin "store/store-nadeskins.smx":
L 03/24/2013 - 20:09:20: [SM] [0] Line 201, D:\Dropbox\GitHub\store-nadeskins\scripting\store-nadeskins.sp::OnGetPlayerNadeSkin()
Quote:
Originally Posted by Franc1sco View Post
Add a checker for valid entity and log errors will disappear, like this:
PHP Code:
if(IsValidEntity(entity)) SetEntityModel(entityg_skins[skin][SkinModelPath]); 
I am new here, I don't know how/where to add this.
ApexPredator is offline
vodka00
Veteran Member
Join Date: Jun 2012
Location: Los Angeles
Old 05-20-2013 , 22:23   Re: NadeSkins
Reply With Quote #9

Quote:
Originally Posted by ApexPredator View Post
I am new here, I don't know how/where to add this.
Probably have to open the nadeskins .sp file and go to line 204 and probably would have to nest that line inside of it. I am not sure, I haven't taken a look at it.
__________________
cw main:

cw speedruns:
vodka00 is offline
//.Mad
Junior Member
Join Date: Jul 2010
Old 06-20-2013 , 09:15   Re: NadeSkins
Reply With Quote #10

This is cool and all, but would it ever be possible to get this to work when you see the grenades on peoples belts, or when they are holding them as well? It just seems a bit weird them turning into something else mid air.
//.Mad is offline
Reply


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 13:16.


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