AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Store (https://forums.alliedmods.net/forumdisplay.php?f=157)
-   -   Release Equipment (1.1-alpha) (https://forums.alliedmods.net/showthread.php?t=208125)

alongub 02-10-2013 07:57

Equipment (1.1-alpha)
 
1 Attachment(s)
[Store] Equipment (1.1-alpha)


Description:
  • This plugin allows players to buy custom wearable items in the store (hats, armors, or anything the administrator sets in the server) to customize the visuals of the characters.
  • Based off Zephyrus's Hats plugin.
  • This plugin is not supported in TF2 due to Valve's policy on attachments.
  • The most recent source code is available at this project's GitHub repository: https://github.com/alongubkin/store-equipment.
Requirements:Features:
  • Custom attachments - You can set different attachments for every equipment item, not just the forward attachment.
  • Support for custom player models - You can set different positions and angles for every player model that you have in your server.
  • Zombie:Reloaded support (optional) - Only humans can wear equipment.
  • ToggleEffects support (optional)
  • Models and materials are downloaded automatically - You don't need to configure that.
Installation:

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

Adding more equipment:

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

If you don't want to support any custom player models, the attrs value should look like:

Code:

{
    "model": "models/sam/antlers.mdl",
    "position": [0, 0, 2.4],
    "angles": [0, 0, 0],
    "attachment": "forward"
}

If you do have custom player models, you'll need to extend it with the playermodels property:

Code:

{
    "model": "models/props_junk/trafficcone001a.mdl",
    "position": [0.0, -1.0, 20.0],
    "angles": [0.0, 0.0, 0.0],
    "attachment": "forward",
    "playermodels": [
        {
            "playermodel": "models/player/techknow/scream/scream.mdl",
            "position": [0, -5.4, 20],
            "angles": [0, 0, 90]
        },
        {
            "playermodel": "models/player/csctm/bandit/black.mdl",
            "position": [0, -5.4, 20],
            "angles": [0, 0, 90]
        }
    ]
}


mickael002 02-10-2013 13:44

Re: [Store] Equipment (1.0.7-alpha)
 
Quote:

Originally Posted by alongub (Post 1891709)
Using the attrs field of the hat.

For the next time, if you have any questions regarding equipment, please ask them in the equipment thread:
https://forums.alliedmods.net/showthread.php?t=208125

I type "attrs" in my console and i have :


] attrs
]
Unknown command "attrs"


I need to have the position "In Game"

vodka00 02-10-2013 17:14

Re: [Store] Equipment (1.0.7-alpha)
 
Quote:

Originally Posted by mickael002 (Post 1891790)
I type "attrs" in my console and i have :


] attrs
]
Unknown command "attrs"


I need to have the position "In Game"

You have to connect to your mysql database and edit the attrs field there.

Vulmest 02-10-2013 22:32

Re: [Store] Equipment (1.0.7-alpha)
 
Is it possible for you to make it compatible with this plugin?

alongub 02-11-2013 02:00

Re: [Store] Equipment (1.0.7-alpha)
 
Quote:

Originally Posted by Vulmest (Post 1892087)
Is it possible for you to make it compatible with this plugin?

Should be compatible...

Vulmest 02-11-2013 06:54

Re: [Store] Equipment (1.0.7-alpha)
 
Core module disabled when I used it with thc rpg

anthonyjr 02-13-2013 20:03

Re: [Store] Equipment (1.0.7-alpha)
 
You said there would be an update to this to resolve a bug today, just wondering when.

alongub 02-14-2013 06:39

Re: [Store] Equipment (1.0.7-alpha)
 
Quote:

Originally Posted by anthonyjr (Post 1893931)
You said there would be an update to this to resolve a bug today, just wondering when.

Sorry, what are we talking about?

anthonyjr 02-14-2013 16:55

Re: [Store] Equipment (1.0.7-alpha)
 
Quote:

Originally Posted by alongub (Post 1894089)
Sorry, what are we talking about?

Quote:

Originally Posted by anthonyjr (Post 1892713)
I currently have a problem with this. If a player tries to join for the first time, their CS:S client will crash. The only way they can join is if I restart the server. I've looked in the console and I see a list of the currently equipped items on users:

Late precache of materials/sprites/store/trails/ice.vmt
Late precache of models/gmod_tower/tophat.mdl
Late precache of models/gmod_tower/3dglasses.mdl
Late precache of materials/sprites/store/trails/bulletbill.vmt
Late precache of models/gmod_tower/androssmask.mdl
Late precache of models/gmod_tower/seusshat.mdl
Late precache of materials/sprites/store/trails/potleaf.vmt

All of those hats/trails are the ones that users have equipped. I don't know why but for some reason players don't seem to download the trails/equipment once we change maps. Any ideas?

Quote:

Originally Posted by alongub (Post 1893426)
This is a bug in store-equipment, I'll release a fix today.


alongub 02-14-2013 19:24

Re: [Store] Equipment (1.0.7-alpha)
 
This bug has been fixed in 1.1-alpha, which will be released soon:
https://github.com/alongubkin/store-...b2e06c6fabd8a9


All times are GMT -4. The time now is 08:54.

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