Coder Social home page Coder Social logo

m60tm / sm-tfcwxbaseattributes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nosoop/sm-tfcwxbaseattributes

0.0 0.0 0.0 40 KB

Implementations of Custom Weapons 3 properties as custom attributes.

License: GNU General Public License v3.0

Python 42.53% SourcePawn 57.47%

sm-tfcwxbaseattributes's Introduction

Custom Weapons X Base Attributes

Attributes (in Custom Attributes framework format) reimplementing features that were integral to previous iterations of Custom Weapons.

While these are originally written with Custom Weapons X in mind, there is nothing preventing their use with other plugins.

Dependencies

In addition to Custom Attributes, you'll need:

Attributes

Weapon models

viewmodel_override.smx provides three different attributes: clientmodel override, viewmodel override, and worldmodel override.

  • Overwrites the view / worldmodel on the weapon. clientmodel override takes priority and sets both of those.
    • This plugin does not mark resources for download. Attribute values are evaluated at runtime; it has no knowledge of possible values on level startup. Use something like this File Precacher plugin to mark your custom resources for download by other game clients.
    • Make sure you've set sv_pure to allow custom files. (Either set it to 0 or -1, or set it to 1 and modify cfg/pure_server_whitelist.txt to specify the paths to your custom assets. If you use a strict pure setting, do keep in mind that you cannot ensure that players haven't replaced your custom models with something else on their client.)
    • Viewmodels are applied on weapon switch.
  • Attribute value is a full path to a model file (e.g. models/weapons/.../c_myweapon.mdl).

It also implements arm model override, which allows for visual replacements of the arm models. Animations are inherited from the original arms. This is quite cursed.

For known working models, use the ones in this Workshop Weapons Pack. You will need to do some additional work to use models intended as client-side replacements (e.g. those from GameBanana). I can't help you there; that's outside the scope of this plugin.

Contributing

Please do (but do file an issue first). The only reason this repository is available is because CWX would be otherwise dead in the water if a viewmodel plugin didn't exist.

License

Released under GPLv3.

sm-tfcwxbaseattributes's People

Contributors

arthurdead avatar nosoop avatar sticks-stuff avatar

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.