Code Monkey home page Code Monkey logo

bombingrun's Introduction

Bombing Run

Custom "Global Offensive" gamemode for Titanfall2.

It requires you to plant a bomb in a base, and defend it until it explodes to get the win.

A pilot is defusing a bomb.

Changelog

v0.0.4

  • Bomb icon is not displayed to bomb holder anymore
  • "Plant the bomb" message is not displayed to players close to friendly bases

v0.0.3

  • Update Thunderstore upload CI configuration

v0.0.2

  • Update Thunderstore upload CI configuration

v0.0.1 (initial release)

  • Players can carry a bomb
  • When killed, bomb holder will drop it
  • Bomb can be planted in enemy base
  • When planted, bomb can be defused

Development

Gamemode configuration

Rules

By setting br_rules configuration variable, you can use given rules sets:

  • 0 (default rules): one bomb spawns at the center of the map, both teams must fight for the bomb control, respawn is enabled.
  • 1 (TODO): one team must plant the bomb, the other must prevent it from doing so; roles are switched at half-time; respawn is disabled.
  • 2 (TODO): both teams must plant the bomb in the enemy base; respawn is disabled.

Bomb ticks

You can setup bomb ticking duration (= time from bomb planted to bomb explosion) by setting number of ticks for each of the following duration:

  • 2 seconds
  • 1 second
  • 0.5 second

By default, the bomb will tick 5 times with 2 seconds delay between ticks, 5 times with 1 second delay, and 10 times with 0.5 second delay before exploding.

Classes

Bomb

When creating a new Bomb(), a bomb appears on the floor, which is defusable by the enemy team. Bomb ticking duration can be modified through convars.

BombingZone

By instanciating a BombingZone, you can declare a zone where bombs can be planted.

It will send a message to nearby bomb holder (indicating that he can go and plant the bomb there), and will prevent him from moving when planting the bomb.

TODOs

Features

  • Statistics (bombs planted/defused, deaths)
  • Put some light effects on the bomb
  • Bomb holder indicator (YOU HAVE THE BOMB)
  • Bomb carrying system (being able to give the bomb to somebody else)
  • Translate prompt messages
  • Find out why bomb icon fades out when player goes more than 84m away from the bomb
  • Hide RUI bomb icon to bomb holder
  • Chat team messages
  • Bomb sites UI indicators

Credits

Publication CI stolen from https://github.com/GreenTF/NSModTemplate

bombingrun's People

Contributors

alystrasz avatar

Stargazers

 avatar

Watchers

 avatar  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.