PreFire: Difference between revisions

From CKRAS Wiki

 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#seo:
{{#seo:
|title=Practice CS2 Server - www.ckras.com - CKRAS WIKI
|title=Practice Training for CS2 Server -CKRAS WIKI
|title_mode=append
|title_mode=append
|keywords=ckras, wiki, cs2, gameserver, help, guide, webinterface, prefire, prac, opensource, training, control, gslt, area, wiki, help
|keywords=ckras, wiki, cs2, gameserver, help, guide, webinterface, prefire, prac, opensource, training, control, gslt, area, wiki, help
|description=PreFire Prac for CS2 Gameserver, helps you to perform various prefire trainings on competitive maps, available at www.ckras.com
|description=PreFire Prac Training for CS2 Gameserver, helps you to perform various prefire trainings on competitive or workshop maps, available at www.ckras.com
|image=Target-practice.png
|image=Target-practice.png
|image_alt=PreFire Practice for CS2 Gameserver - CKRAS.com
|image_alt=PreFire Practice Training for CS2 Gameserver - CKRAS.com
}}
}}
[[File:Target-practice.png|left|20x20px|PREFIRE]]
[[File:Target-practice.png|left|20x20px|PREFIRE]]
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.  
PreFire Practice for '''[[CS2]]''' is the perfect tool to train prefire on competitive and custom Counter-Strike 2 maps, with '''PreFire''' Addon you can start the training scenarios with '''!prefire''' on the currently available maps as indicated in the menu. >> [https://wiki.ckras.com/wiki/index.php?title=PreFire Deutsch] [[File:Germany.png|alt=Deutsch|20x20px|link=https://wiki.ckras.com/wiki/index.php?title=PreFire]]


''<small>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.</small>''


{{infobig|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}}
{{infobig|We will install this addon for you at any time on request (soon available in the panel), alternatively see the link to the installation files at the end of the article}}






[[PreFire]]
'''CURRENT PREFIRE MAPPOOL:'''


'''CURRENT MAPPOOL:'''
{{checkbox|de_ancient}}
{{checkbox|de_anubis}}
{{checkbox|de_dust2}}
{{checkbox|de_inferno}}
{{checkbox|de_mirage}}
{{checkbox|de_nuke}}
{{checkbox|de_overpass}}
<br>Prefire Practice for [[CS2]] [[Gameserver|gameservers]] will soon be fully integrated into the CKRAS [[Webinterface|webpanel]] and will be available to all customers free of charge. PreFire requires [[CounterStrikeSharp|CSS]].


* de_ancient
''<small>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.</small>''
* 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 [[CounterStrikeSharp|CSS]] installed.


== Commands ==
== Commands ==


=== Admin Commands ===
{| class="wikitable" width="750"
{| class="wikitable" width="750"
|+ADMIN - Commands
|+
|-
|-
!Commands!!Description
!Commands!!Description
|-
|-
|!help||Lists all available commands
|!prefire||Start menu
|-
|!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
|!prefire prac [number]||Start practicing on a selected route.
|<nowiki>Starts Training | Pracc Mode (alias: !training, !pracc)</nowiki>
|-
|-
|!clinch
|!prefire map [map name]||Switch to another map.
|You can set with this cmd. that a ''!5on5'' ends after winner is determined
|-
|-
|!playout
|!prefire df [1-5]||Set the difficulty.
|Toggles playout (all rounds would be played irrespective of winner. Useful in !scrim)
|-
|-
|!impact
|!prefire mode [rand/full]
|<nowiki>Displays damage caused (only in !pracc | !train mode)</nowiki>
|Set training mode, full or random.
|-
|-
|!stopimpact
|!prefire bw [rand/ump/ak/sct/awp]
|<nowiki>Ends the !impact damage display in (!train | !pracc mode)</nowiki>
|Set weapons for bots.
|-
|-
|!rethrow
|!prefire lang [en/pt/zh]
|This command will rethrow the exact same smoke, flash, molly or HE you threw. (only in !train)
|Set language. en for English, pt para português, 中文选择 zh。
|-
|-
|!stop
|!prefire exit
|Ends !5on5 ,!train or !scrim Mode (alias: !matchend, !endgame, !endmatch)
|''Stop'' practicing PreFire.
|-
|-
|!record
|!prefire help
|Start a demo on your [[CSTV]] Server (alias !startrecord !record)
|Help Menu
''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)
* !1 - 4 follow the menu instructions<br />


PreFire is compatible with our [[CKRAS BOT]]
PreFire is not compatible with our [[CKRAS BOT]]


'''Important:''' PreFire is still under development, if you have any questions or suggestions please contact us at any time.
'''Important:''' PreFire is still under development, if you have any questions or suggestions please contact us at any time.
Line 124: Line 77:
  <code>Finished Practices:</code>
  <code>Finished Practices:</code>


* 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_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
** Add a practice route for aggressive CT pushing from A main.
** Add a practice route for aggressive CT pushing from B main.
* de_dust2
** Attack A site from A long
** Attack A site from A short
** Attack B site from tunnel
**Attack B site from mid
* de_inferno
* de_inferno
** A short to A site
** A short to A site
Line 130: Line 102:
** Banana to B site
** Banana to B site
** Retake B from CT spawn
** 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
* de_mirage
** Attack A site from A ramp (to CT spawn)
** Attack A site from A ramp (to CT spawn)
Line 143: Line 109:
** Attack A site from underpass
** Attack A site from underpass
** Retake B site from CT spawn
** Retake B site from CT spawn
*de_nuke
**Attack A site from hut
** Attack B site from ramp
** Entrance of lobby (T side)
**  From radio to ramp
** Attack A site from Ramp/J-Hall
** From T-side outside to secret
** Attack B site from secret
** Fast pace rush MINI from Silo
** Attack A site from MINI
* de_overpass
* de_overpass
** Attack B site from B long
** Attack B site from B long
Line 150: Line 127:
** Attack A site from A long
** Attack A site from A long
** Attack A site from A short (mid)
** 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 ==
== Values ==
Line 179: Line 147:
== Development ==
== Development ==
'''TODO:'''
'''TODO:'''
# Create prefire profiles for all maps.
 
# Draw guiding lines on the floor.
#Create prefire profiles for all maps.
# Improve bot logic.
#Improve bot logic.
# Improve localization support (The supporting framework is done. Submitting translations is warmly welcomed.).
#Improve localization support (The supporting framework is done. Submitting translations is warmly welcomed.).
# Reroute saperate logs into one gathered place for better debug experience.
#Reroute separate logs into one gathered place for better debug experience.
 
 
<br>
<br>
Source: https://github.com/lengran/OpenPrefirePrac<br>
Source: https://github.com/lengran/OpenPrefirePrac<br>

Latest revision as of 20:01, 15 May 2024

PREFIRE

PreFire Practice for CS2 is the perfect tool to train prefire on competitive and custom Counter-Strike 2 maps, with PreFire Addon you can start the training scenarios with !prefire on the currently available maps as indicated in the menu. >> Deutsch Deutsch


Info.png

We will install this addon for you at any time on request (soon available in the panel), alternatively see the link to the installation files at the end of the article


CURRENT PREFIRE MAPPOOL:

de_ancient
de_anubis
de_dust2
de_inferno
de_mirage
de_nuke
de_overpass


Prefire Practice for CS2 gameservers will soon be fully integrated into the CKRAS webpanel and will be available to all customers free of charge. PreFire requires CSS.

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.

Commands

Commands Description
!prefire Start menu
!prefire prac [number] Start practicing on a selected route.
!prefire map [map name] Switch to another map.
!prefire df [1-5] Set the difficulty.
!prefire mode [rand/full] Set training mode, full or random.
!prefire bw [rand/ump/ak/sct/awp] Set weapons for bots.
!prefire lang [en/pt/zh] Set language. en for English, pt para português, 中文选择 zh。
!prefire exit Stop practicing PreFire.
!prefire help Help Menu


PreFire is not 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_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_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
    • Add a practice route for aggressive CT pushing from A main.
    • Add a practice route for aggressive CT pushing from B main.
  • de_dust2
    • Attack A site from A long
    • Attack A site from A short
    • Attack B site from tunnel
    • Attack B site from mid
  • 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_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_nuke
    • Attack A site from hut
    • Attack B site from ramp
    • Entrance of lobby (T side)
    • From radio to ramp
    • Attack A site from Ramp/J-Hall
    • From T-side outside to secret
    • Attack B site from secret
    • Fast pace rush MINI from Silo
    • Attack A site from MINI
  • 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)

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:

  1. Create prefire profiles for all maps.
  2. Improve bot logic.
  3. Improve localization support (The supporting framework is done. Submitting translations is warmly welcomed.).
  4. Reroute separate 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)