Comments (2)
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:
- Rotate 45 degrees to the left
- Rotate 180 degrees
- 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.
@fdittz i think it is done yet? can we close this?
from huetf.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from huetf.