Giter VIP home page Giter VIP logo

ttt2-tapir's Introduction

[TTT2] Tapir [Class]

Includes a silly TTT2 Class that can spawn a friendly Tapir which fights for you. Players damaged by the Tapir will suffer the "drowsy" status effect which will obscure their screen and play Touhou music on their end. The concept is inspired by Doremy Sweet.

If you're not using the class but want to spawn a tapir in your own code, use the global function SpawnTapir(owner: Player).

Dependencies

ConVars

ConVar Default Description
ttt_tapir_health 400 How much health should the tapir have?
ttt_tapir_damage 4 How much damage should the tapir do with its attacks?
ttt_tapir_close_distance 100 How closely should the tapir follow its owner? (in hammer units)
ttt_tapir_drowsy_duration 30 How long should the drowsiness effect last in seconds? (def: 30, set to 0 to disable)
ttt_tapir_drowsy_volume 1.0 How loud shoud the drowsiness music be? (1.0 means 100%, i.e. the normal volume of the file)
ttt_tapir_drowsy_audio touhou/eternal_spring_dream_short.ogg The audio file to play for drowsy players, relative to "sound/" (set to empty string to disable)
ttt_tapir_drowsy_audio_length 51.25 How long does the audio file play in seconds before it should be looped? (def: 51.25)
ttt_tapir_drowsy_overlay_enable 1 Should drowsy players have a disorienting screen overlay effect?

Copyright

The files in the sound/touhou/ directory belong to the Touhou Project and therefore do not fall under the terms of this project's LICENSE. As such, any derivative works of this project that also include that content will have to follow the Guidelines for Touhou Project Fan Creators.

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.