Giter Club home page Giter Club logo

custom_decals's Introduction

Custom Decals

A SourceMod plugin for TF2 which allows players to apply custom images as decals for eligible weapons and cosmetics. This plugin uses econ data to fetch all eligible items and thus will not need to be updated in case Valve (ever) adds more decal-able items to TF2.

Requirements

Commands

  • sm_forcedecal <#userid|name> <UGC ID> - Admin command (ADMFLAG_GENERIC) which applies a decal to a specified player's item
  • sm_decal <UGC ID> - User command which applies a decal to your own item
  • sm_decalhelp - Displays the below help message in-game

Usage

  1. Get a 128x128 image (same image used for colored decals)
  2. Make a TF2 guide and upload the image as an icon (branding image)
  3. Save the guide and preview it (WITHOUT publishing it!)
  4. Copy the icon URL. The URL MUST start with steamuserimages...
  5. Copy the number after the /ugc/ part
    • Example: for steamuserimages-a.akamaihd.net/ugc/123456789123456789/..., the UGC ID would be 123456789123456789
  6. Wait 15-30 seconds then run the command
    • Example command for the UGC ID above: sm_decal 123456789123456789
  7. If the decal hasn't changed, check the console for a GetUGCDetails failed? error
    • Reasons include incorrect UGC ID (mistyped?), incorrect image size, not a TF2 guide, guide being published, or decal applied too soon

custom_decals's People

Contributors

brokenphilip avatar

Stargazers

HatMann avatar John avatar  avatar

Watchers

 avatar

Forkers

pmarkive

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.