Giter Club home page Giter Club logo

blap-donation-plugin's Introduction

blap-donation-plugin

Sourcemod plugin for Blap Summer Jam. Displays donation total ingame among other things.

Features

  • Ingame donation total displays. Shown above objectives and next to resupplies by default, but can be added to any entity with custom positioning, rotation and size
  • Supports amounts from $1 to $9999999
  • Donations above $25, $50, $100 and which cross $x000, have their own effects and spawned props
  • Blap medals drop on player kills
  • Blap reskinned control points

Requirements

  • SteamWorks extension - For HTTP requests
  • Socket extension - For socket connections (not currently used)
  • Smjansson extension - For json parsing

Configuration

Donation displays can be added to arbitrary entities on a per map basis, in the blap.cfg config file. More documentation can be found there.

Cvars

  • blap_ducks_enabled - Whether blap medal drops are enabled.
  • blap_cps_enabled- Whether blap reskinned control points are enabled. Will take effect on map changes.
  • blap_sounds_enabled - Whether donation displays can make sounds.
  • blap_props_enabled - Whether donation displays can spawn props.
  • blap_donations_enabled - Whether blap donation total displays are enabled. Will destroy/recreate displays immediately as required.

Known issues

  • Displays created at certain rotations can look incorrect
  • If a display is recreated while an entity is rotated (i.e a payload on a hill, rotating control point), the rotation will be incorrect.
  • Multiple prop spawning milestones in a row may stop spawning props, due to hitting the cl_phys_props_max limit. You'll need to increase it.

License

This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.

blap-donation-plugin's People

Contributors

blackoutjon avatar fortytwofortytwo avatar jlyne avatar kenzzer avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

blap-donation-plugin's Issues

Capturing a control point does not change hologram

Pre-captured control points have the correct hologram colour, but when a point is captured it does not trigger a change of the hologram colour.

KOTH https://i.imgur.com/dmXd7Sz.jpg
5CP pre-captured https://i.imgur.com/U1Ytu7R.jpg
5CP post-capture https://i.imgur.com/U1Ytu7R.jpg
PL past CP https://i.imgur.com/NPGAgCI.jpg
Also tested on Attack/Defend CP, same thing.
(some meme map too https://i.imgur.com/QeLvgRX.jpg)

Was tested on redsun.tf servers.

Note: the Stop That Tank (STT) gamemode replaces the holograms of captured control points with the MvM bot walking direction holograms (the blue arrows with the walking soldier). The STT plugin does this correctly, perhaps there's something from their code you can borrow.

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.