AlliedModders

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

Phault 03-08-2013 13:26

NadeSkins
 
1 Attachment(s)
[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"
}


shavit 03-09-2013 23:03

Re: NadeSkins
 
Cool module.

mickael002 03-10-2013 03:31

Re: NadeSkins
 
nice thanks

Morell 03-24-2013 15:15

Re: NadeSkins
 
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()

seupoj 03-25-2013 07:40

Re: NadeSkins
 
is this plugin for tf2

ApexPredator 05-16-2013 20:58

Re: NadeSkins
 
Quote:

Originally Posted by Morell (Post 1919132)
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:28:38: [SM] Native "SetEntityModel" reported: Entity 96 is not valid
L 05/17/2013 - 10:28:38: [SM] Displaying call stack trace for plugin "store/store-nadeskins.smx":
L 05/17/2013 - 10:28:38: [SM] [0] Line 204, /home/casper/Dropbox/GitHub/store-nadeskins/scripting/store-nadeskins.sp::OnGetPlayerNadeSkin()

Franc1sco 05-17-2013 04:44

Re: NadeSkins
 
Quote:

Originally Posted by ApexPredator (Post 1953151)
I'm getting a similar error.

L 05/17/2013 - 10:28:38: [SM] Native "SetEntityModel" reported: Entity 96 is not valid
L 05/17/2013 - 10:28:38: [SM] Displaying call stack trace for plugin "store/store-nadeskins.smx":
L 05/17/2013 - 10:28:38: [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]); 


ApexPredator 05-20-2013 21:10

Re: NadeSkins
 
Quote:

Originally Posted by Morell (Post 1919132)
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 (Post 1953258)
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.

vodka00 05-20-2013 22:23

Re: NadeSkins
 
Quote:

Originally Posted by ApexPredator (Post 1955459)
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.

//.Mad 06-20-2013 09:15

Re: NadeSkins
 
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.


All times are GMT -4. The time now is 07:59.

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