Skip to content

Generate skins and preview skins of others on a sourcemod csgo server.

License

Notifications You must be signed in to change notification settings

araynimax/phoskin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forks Stargazers Issues MIT License


phoskin

Sourcemod plugin to preview/generate any skins


!!!!! Valve banned servers using skin plugins in the past! Use it at your own risk !!!!!



Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Important
  3. Features
  4. Upcoming features
  5. Installation
  6. Commands
  7. Contributing
  8. License
  9. Acknowledgements

About The Project

We all know the videos where people are just using commands like !gen or !i to inspect potential crafts or existing skins. I've found out about broskins server somewhat later and since I have a own server for me and the boys (Mainly for practice mode) I thought it would be nice to have this feature there too.

I thought I could just grab a plugin online and use it but I didnt find a good one that I like.

With the help of existing skin changer plugins from kgns:

I managed to create my own version of it named - phoskin - The codebase is not the best I've made in my life, but its just a small plugin so what. Feel free to make pullrequest to change that!

Important

Valve changed rate limits. csgofloat currently blocks automatic requests from their public api. Maybe they will change it again. Currently you have to host your own version of csgofloat to use skin generation from inspect urls. Read more about it here:

How to host your own version of csgofloat:

You need to switch the url in the plugin via the convar pho_inspect_url.

Put the following line into your server.cfg:

pho_inspect_url "https://your_endpoint.de"

Keep in mind that this convar is only read on plugin start. So you have to restart the plugin after changing the convar.

Features

  • Generate skins with the known !gen and !gengl commands

  • Edit skins directly with some helper commands e.g. changing the seed with !pho seed (See more under commands)

  • Generate any skin from an inspect url by just pasting the url into the chat.

  • This plugin does not save any skin to play with it multiple rounds and it will stay like this! This is not a classical skin changer. Its for previewing skins!

Upcoming Features

There are existing convars but they are not really implemented yet. this is a thing I will work on if I find time for it.

You have an idea? Submit it here.

Dependecies

Installation

Info: WS plugins and glove plugins could make problems! I did not test it with them active so you have to find out.

  1. Make sure you have installed the depedencies. (See Dependecies)
  2. Take a look into the release section and download the newest version of phoskin
  3. Unzip the Zip-file in the servers "csgo" folder
  4. Have fun

Commands

Info: !gen and !gengl are supported but are just aliases for !pho gen
For !i <inspect-url> you should just paste the inspect url into the chat!

Syntax Description
!pho help Shows you a list of all commands in a similar fashion
!pho gen <defIndex> <paintIndex> <paintSeed> <paintWear> [<stickerslot1> <stickerslot1wear>...] Generate a skin - !gen and !gengl are still available!
!pho skin <paintIndex> Set skin index of the weapon you are currently holding
!pho seed [paintSeed] Set seed of the weapon you are currently holding to a specific one or leave the paintseed blank for a random one
!pho float <paintWear> Set float of the weapon you are currently holding
!pho sticker [<stickerslot1> <stickerslot1wear>...] Set stickers of the weapon you are currently holding (without arguments will remove any stickers)
!pho rename [newName] Add or remove nametag of weapon you are currently holding (without newName argument will remove the nametag)
!pho stattrak <1|0> [count] Enable/Disable stattrak of weapon you are currently holding
!pho gloves skin <paintIndex> Set gloves skin
!pho gloves float <paintWear> Sets gloves float to a specific float
!pho gloves seed [paintSeed] Set gloves seed to specific one (without argument will choose a random seed)

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

About

Generate skins and preview skins of others on a sourcemod csgo server.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages