PreFire: Difference between revisions
No edit summary |
|||
Line 29: | Line 29: | ||
== Commands == | == Commands == | ||
=== Admin Commands === | |||
{| class="wikitable" width="750" | |||
|+ADMIN - Commands | |||
|- | |||
!Commands!!Description | |||
|- | |||
|!help||Lists all available commands | |||
|- | |||
|!map||Switches to the desired map e.g. !map dust2 ''or'' de_dust2 | |||
|- | |||
|!rr||Restarts the server after a few seconds (alias: !restart) | |||
|- | |||
|!5on5||Loads a 5on5 Setup and restarts the game (alias !bo1, !startmatch)>> ''!force'' with [[MatchZy]] | |||
|- | |||
|!scrim | |||
|Ativates scrim mode, enables the command !coach | |||
|- | |||
|'''!rcon <command>''' | |||
|Execute RCON commands - Example: ''!rcon say test'' - [https://wiki-en.ckras.com/wiki/index.php?title=CS2#RCON_Commands RCON commands] | |||
|- | |||
|!train | |||
|<nowiki>Starts Training | Pracc Mode (alias: !training, !pracc)</nowiki> | |||
|- | |||
|!clinch | |||
|You can set with this cmd. that a ''!5on5'' ends after winner is determined | |||
|- | |||
|!playout | |||
|Toggles playout (all rounds would be played irrespective of winner. Useful in !scrim) | |||
|- | |||
|!impact | |||
|<nowiki>Displays damage caused (only in !pracc | !train mode)</nowiki> | |||
|- | |||
|!stopimpact | |||
|<nowiki>Ends the !impact damage display in (!train | !pracc mode)</nowiki> | |||
|- | |||
|!rethrow | |||
|This command will rethrow the exact same smoke, flash, molly or HE you threw. (only in !train) | |||
|- | |||
|!stop | |||
|Ends !5on5 ,!train or !scrim Mode (alias: !matchend, !endgame, !endmatch) | |||
|- | |||
|!record | |||
|Start a demo on your [[CSTV]] Server (alias !startrecord !record) | |||
''NOTE'': [[CSTV]] - [https://wiki-en.ckras.com/wiki/index.php?title=CSTV#TV_PORT Port] (tv_enable 1 must be set in the [https://wiki-en.ckras.com/wiki/index.php?title=Webinterface#Config_.2F.2F_Server.cfg_edit server.cfg]) | |||
|- | |||
|!tvstop | |||
|Stops a demo on your [[CSTV]] server (alias !stoprecord, !stoptv, !stop) | |||
|- | |||
|!config <NAME> | |||
|Loads a custom config !config name = name.cfg | |||
Example: !config train | |||
(loads the traing.cfg) | |||
Use your own customized Config. (alias: !exec) | |||
|- | |||
|!knife | |||
|<nowiki>Activates Knife Mode - Then !swap | !stay if won</nowiki> | |||
|- | |||
|!botadd | |||
|Add Bots (alias: !addbot) - [https://wiki-en.ckras.com/wiki/index.php?title=Bots Bots commands] | |||
|- | |||
|<s>!dm</s> | |||
|<s>Enables Deathmatch (DM)</s> | |||
|- | |||
|!overtime | |||
|Enables Overtime (only !5on5) | |||
|- | |||
|!restore | |||
|Backup of the desired round - "!restore 5" [Round 5] | |||
|- | |||
|!restorelast | |||
|Backup of the last Round | |||
|} | |||
* '''!prefire''' (start prefire mode and open menu) | * '''!prefire''' (start prefire mode and open menu) | ||
* !1 - 4 follow the menu instructions<br /> | * !1 - 4 follow the menu instructions<br /> | ||
PreFire is compatible with our [[CKRAS BOT]] | PreFire is compatible with our [[CKRAS BOT]] | ||
Line 43: | Line 119: | ||
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.</blockquote> | 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.</blockquote> | ||
== Prefire Pracs available == | == Prefire Pracs available == |
Revision as of 20:28, 26 April 2024
PreFire Practice for CS2 is perfect tool to train prefire on competive maps, with PreFire Addon you can start the training scenarios with !prefire on the currently available maps as indicated in the menu.
An open-source CounterStrikeSharp powered server-side practicing plugin for CS2. It provides multiple prefire practices on competitive map pool maps and support multiplayer practicing concurrently.
|
We will install this addon for you at any time on request, alternatively see the link to the installation files at the end of the article |
CURRENT MAPPOOL:
- de_ancient
- de_anubis
- de_dust2
- de_inferno
- de_mirage
- de_overpass
The tool is an open-source project and is currently still under development. Additional maps and training paths will be updated regularly. PreFire need CSS installed.
Commands
Admin Commands
Commands | Description |
---|---|
!help | Lists all available commands |
!map | Switches to the desired map e.g. !map dust2 or de_dust2 |
!rr | Restarts the server after a few seconds (alias: !restart) |
!5on5 | Loads a 5on5 Setup and restarts the game (alias !bo1, !startmatch)>> !force with MatchZy |
!scrim | Ativates scrim mode, enables the command !coach |
!rcon <command> | Execute RCON commands - Example: !rcon say test - RCON commands |
!train | Starts Training | Pracc Mode (alias: !training, !pracc) |
!clinch | You can set with this cmd. that a !5on5 ends after winner is determined |
!playout | Toggles playout (all rounds would be played irrespective of winner. Useful in !scrim) |
!impact | Displays damage caused (only in !pracc | !train mode) |
!stopimpact | Ends the !impact damage display in (!train | !pracc mode) |
!rethrow | This command will rethrow the exact same smoke, flash, molly or HE you threw. (only in !train) |
!stop | Ends !5on5 ,!train or !scrim Mode (alias: !matchend, !endgame, !endmatch) |
!record | Start a demo on your CSTV Server (alias !startrecord !record)
NOTE: CSTV - Port (tv_enable 1 must be set in the server.cfg) |
!tvstop | Stops a demo on your CSTV server (alias !stoprecord, !stoptv, !stop) |
!config <NAME> | Loads a custom config !config name = name.cfg
Example: !config train (loads the traing.cfg) Use your own customized Config. (alias: !exec) |
!knife | Activates Knife Mode - Then !swap | !stay if won |
!botadd | Add Bots (alias: !addbot) - Bots commands |
!overtime | Enables Overtime (only !5on5) |
!restore | Backup of the desired round - "!restore 5" [Round 5] |
!restorelast | Backup of the last Round |
- !prefire (start prefire mode and open menu)
- !1 - 4 follow the menu instructions
PreFire is compatible with our CKRAS BOT
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
Finished Practices:
- 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)
- Attack B site from mid
- Attack A site from underpass
- Retake B site from CT spawn
- de_overpass
- Attack B site from B long
- Attack B site from B short
- Clear underpass and go upwards to mid
- Clear underpass and go towards B short
- Attack A site from A long
- Attack A site from A short (mid)
- de_dust2
- Attack A site from A long
- Attack A site from A short
- de_anubis
- Attack B site from B main
- Attack B site from mid (B connector)
- Attack B site from water
- Attack A site from mid (A connector)
- Attack A site from A main
Values
Now the plugin supports loading default settings of difficulty and training mode from a json file. You can rename default_cfg.json.example to default_cfg.json and modify the value as you like.
Explanation of values:
Difficulty 0: No healing. 1: Init hp 500 with no healing. 2: +25hp for each kill. 3: +100hp for each kill. 4: +500hp for each kill. Training Mode 0: Random mode, randomly spawn some targets. 1: Full mode, all targets.
Development
TODO:
- Create prefire profiles for all maps.
- Draw guiding lines on the floor.
- Improve bot logic.
- Improve localization support (The supporting framework is done. Submitting translations is warmly welcomed.).
- Reroute saperate logs into one gathered place for better debug experience.
Source: https://github.com/lengran/OpenPrefirePrac
Download: https://github.com/lengran/OpenPrefirePrac/releases
CS2 Server: https://www.ckras.com/
(PreFire needs CounterStrikeSharp)