Giter Club home page Giter Club logo

Comments (2)

fdittz avatar fdittz commented on July 1, 2024

I'll borrow some code from Classic Fortress and make some modifications, but in the end it will work in a similar way to what they have done.

When you use you spanner on the sentry gun the game will try to execute an action without showing the menus, respecting this priorities: Try to Upgrade, Try to Repair and Try to reload.

1 - At first, if the sentry is not at level 3 and the engineer has enough cells, it will perform an upgrade (therefore restoring the HP and ammo to the max).
2 - If the sentry is on level 3 or the engineer doesn't have enough cells to upgrade it, it will check the Sentry Gun's HP and if it's not at the maximum levels, it will repair it.
3 - If upgrading is not possible (either Sentry is already on max level or the engineer doesn't have enough cells) and the Sentry Gun's HP is full, then it will check if it is full of ammo. If its not, it will reload the Sentry Gun until it's full again.

Finally if no upgrading, repairing and reloading is possible the game will show a menu with three options:

  1. Rotate 45 degrees to the left
  2. Rotate 180 degrees
  3. Rotate 45 degrees to the right

I think in Classic Fortress this menu is persistent, but in HueTF you will need one Spanner Hit for each single rotation action

from huetf.

gmtandi avatar gmtandi commented on July 1, 2024

@fdittz i think it is done yet? can we close this?

from huetf.

Related Issues (8)

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.