This is a tool to help you calculate the theroretical time to kill (TTK) for a given weapon. It is based on the aspects of the BWAE Battle Bot. There will be both a python script as well as a web app in this repo.
Features of the tool (to include or not active in current version):
[X] Variable Weapon
[X] Variable Distance
[ ] Where bullets land (Headshots/Bodyshots)
[X] Heavy Overshield
[ ] Soft Point Ammo and Hard Velocity Ammo
- This project relies on python dependencies.
- A discord bot application and channels have to be created.
- To retrieve Planetside2 information a Daybreak Census ID has to be provided.
- Python 3.8 or above is required to run the project.
- Alternatively, the dependencies are also listed in the
requirements.txt
file (compatible with venv)
Communication with the Daybreak Census API is required to retrieve weapon information, therefore you have to supply a Service ID.
You can apply for one at the Daybreak Census website.
Once you obtained an ID, add it the configuration as api_key
:
[General]
api_key = Daybreak_Registered_Service_ID
This project uses the Django framework to implement its web version, in order for it to work, you need to set up a django token on the config file:
[Django]
django_key=Generated_Django_Secret_Key
This project uses a PostgreSQL database to store and query the weapon information used to calculate the TTK.
[Database]
host= Database Host
name= Database Name
user= Database User
password= Database Password
Run the web server with the following commands:
Windows:
python manage.py runserver
Linux:
python3 manage.py runserver