OpenPrefirePrac: Difference between revisions

From CKRAS Wiki

Line 8: Line 8:
== Commands ==
== Commands ==


* '''!prefire''' (start prefire mode)
* '''!prefire''' (start prefire mode and open menu)
* !1 - 4 follow the menu instructions<br />
* !1 - 4 follow the menu instructions<br />



Revision as of 14:35, 11 March 2024

PreFire Pracite for CS2 is available on demand (CounterStrikeSharp), simply click on Install (we install if you want) PreFirePrac and you start the training scenarios with !prefire on the currently available maps as indicated in the menu. PreFire need CSS installed.

  • de_ancient
  • de_mirage
  • de_inferno
  • de_dust2

Commands

  • !prefire (start prefire mode and open menu)
  • !1 - 4 follow the menu instructions

Important: PreFire is still under development, if you have any questions or suggestions please contact us at any time.

For custom maps you can insert these commands

pos_x pos_y pos_z ang_x ang_y ang_z The first 3 floating numbers are the position and the other 3 are the rotation.

pos_x pos_y pos_z ang_x ang_y ang_z is_crouching The rest lines describe how to place bots. The first 3 numbers is position, following 3 numbers of the rotation. The 7th value is either True of False indicating whether the bot is crouching.

python3 calculate_height.py [PATH TO YOUR FILE] The positions and facing rotations can be retrived from in-game get_pos command. But please notice that, the height values used in profiles should be the values returned by get_pos minus 65. I made a python script that does this calculation for you. You can stack the strings retured by get_pos and put them in a txt file, and pass the file to the python script as described below and the script will automatically print out the formatted bot positions.


Prefire Pracs available

   de_inferno
       A short to A site
       A long to A site
       A apartments to A site
       Banana to B site
       Retake B from CT spawn
   de_ancient
       B ramp to B site
       B house to B site
       Mid to A site
       A main to A site
       Retake A from CT spawn
   de_mirage
       Attack A site from A ramp (to CT spawn)
       Attack B site from B apartments
       Attack A site from A palace (to jungle)
   de_dust2
       Attach A site from A long
       Attach A site from A short


Development

TODO:

  1. Create prefire profiles for all maps.
  2. Draw guiding lines on the floor.
  3. Improve bot logic.
  4. Improve localization support (The supporting framework is done. Submitting translations is warmly welcomed.).
  5. Reroute saperate logs into one gathered place for better debug experience.

Source: https://github.com/lengran/OpenPrefirePrac