Skip to content

Commit

Permalink
replace ccsplayercontroller with player slot as function argument & 2…
Browse files Browse the repository at this point in the history
… new dust2 routes
  • Loading branch information
lengran committed May 18, 2024
1 parent 02b279e commit 63d5c37
Show file tree
Hide file tree
Showing 11 changed files with 288 additions and 155 deletions.
348 changes: 198 additions & 150 deletions OpenPrefirePrac.cs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion PlayerStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class PlayerStatus
*/
public int HealingMethod = 3;

public readonly List<CCSPlayerController> Bots = new();
public readonly List<int> Bots = new(); // slot of bots
public readonly Dictionary<string, int> LocalizedPracticeNames = new();
public readonly Dictionary<string, int> LocalizedDifficultyNames = new();

Expand Down
2 changes: 2 additions & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@
"map.de_dust2.a_short": "Attack A site from A short",
"map.de_dust2.b_tunnel": "Attack B site from tunnel",
"map.de_dust2.mid_to_b": "Attack B site from mid",
"map.de_dust2.ct_push_lower": "CT aggresively push from lower tunnel",
"map.de_dust2.ct_push_mid": "CT aggresively push top mid",
"map.de_nuke.hut_to_a": "Attack A site from hut",
"map.de_nuke.ramp_to_b": "Attack B site from ramp",
"map.de_nuke.t_side_entrance_of_lobby": "Entrance of lobby (T side)",
Expand Down
2 changes: 2 additions & 0 deletions lang/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@
"map.de_dust2.a_short": "Ataque ao site A do A curto",
"map.de_dust2.b_tunnel": "Atacar o local B a partir do túnel",
"map.de_dust2.mid_to_b": "Atacar o local B a partir do meio",
"map.de_dust2.ct_push_lower": "CT empurra agressivamente a partir do túnel inferior",
"map.de_dust2.ct_push_mid": "CT empurra agressivamente a parte superior do meio",
"map.de_nuke.hut_to_a": "Atacar o local do A a partir do HUT",
"map.de_nuke.ramp_to_b": "Atacar o local B a partir da rampa",
"map.de_nuke.t_side_entrance_of_lobby": "Entrada do saguão (lado T)",
Expand Down
2 changes: 2 additions & 0 deletions lang/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@
"map.de_dust2.a_short": "A 小到 A 包点",
"map.de_dust2.b_tunnel": "从 B 洞进攻 B 包点",
"map.de_dust2.mid_to_b": "从中门进攻 B 包点",
"map.de_dust2.ct_push_lower": "CT 前压 B 下洞",
"map.de_dust2.ct_push_mid": "CT 中路前顶",
"map.de_nuke.hut_to_a": "从黄房进攻 A 包点",
"map.de_nuke.ramp_to_b": "从铁板进攻 B 包点",
"map.de_nuke.t_side_entrance_of_lobby": "(匪家侧)匪厅入口",
Expand Down
2 changes: 1 addition & 1 deletion maps/de_dust2/a_long.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
a_short mid_to_b
a_short mid_to_b ct_push_mid
6 0.65
210.656403 -297.095825 15.011093 0.308004 53.541485 0.000000
646.371460 1180.628906 0.8446809999999942 -0.057739 -90.550735 0.000000 False
Expand Down
2 changes: 1 addition & 1 deletion maps/de_dust2/a_short.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
a_long b_tunnel mid_to_b
a_long b_tunnel mid_to_b ct_push_lower ct_push_mid
4 0.8
-43.860657 308.031250 63.804863 1.232004 108.665337 0.000000
-634.198425 2550.131592 -82.83689100000001 -2.217645 -76.230713 0.000000 False
Expand Down
2 changes: 1 addition & 1 deletion maps/de_dust2/b_tunnel.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
a_short mid_to_b
a_short mid_to_b ct_push_lower
6 0.7
-1970.519653 351.260742 22.282043 5.103965 60.626129 0.000000
-1682.031372 1386.968750 41.196304 0.286028 -91.908150 0.000000 False
Expand Down
46 changes: 46 additions & 0 deletions maps/de_dust2/ct_push_lower.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
b_tunnel a_short mid_to_b ct_push_mid
5 0.6
-547.897766 1879.828979 -104.865974 6.819927 -54.622746 0.000000
-218.698853 530.268066 -1.1909709999999976 5.807819 100.446167 0.000000 False
-381.400208 -461.908936 63.0625 5.565824 91.030304 0.000000 True
-520.236938 601.537537 7.140647999999999 7.721840 83.783936 0.000000 False
-561.575134 1334.027588 -110.131775 3.255878 57.075550 0.000000 False
-489.968750 1582.370605 -125.075211 2.419881 -11.080419 0.000000 False
-275.031372 1516.968750 -125.179337 1.935885 168.629562 0.000000 False
-883.773193 1381.536865 -111.935501 1.671878 11.372628 0.000000 False
-1175.968750 1519.969238 -75.96875 3.585878 -5.479394 0.000000 False
-275.030518 1345.377441 -122.845268 -1.936107 161.148895 0.000000 False
-556.031311 1517.968750 -111.11050399999999 -1.342104 -64.791077 0.000000 False
-1250.843994 1158.547119 32.033905000000004 18.127850 38.646328 0.000000 False
-1186.015503 1261.470825 32.03125 47.541771 8.718757 0.000000 False
-874.031250 1344.031250 -110.735214 1.055890 72.775452 0.000000 False
-1045.191040 1209.296021 -85.094803 6.181767 86.599068 0.000000 False
-1575.029053 1042.137939 33.954514 9.547791 11.262598 0.000000 False
-1352.031250 1261.971924 70.78125 20.195782 -41.466656 0.000000 False
-1682.030640 1284.389038 35.703368999999995 6.753759 -19.928858 0.000000 False
-2168.782471 1042.031372 39.709114 3.783765 3.919141 0.000000 False
-1790.468140 991.663086 39.01451900000001 6.599757 14.149152 0.000000 False
-1942.031738 1410.062866 30.758865 -0.176229 -27.087616 0.000000 False
-1804.061157 1386.969849 40.182716 -0.770221 -39.971298 0.000000 False
-1724.004395 679.543945 32.004784 -1.320220 71.897682 0.000000 False
-1837.968018 -389.371948 73.875214 1.275756 80.896149 0.000000 False
-1569.055664 -357.376099 129.396103 4.245756 93.260391 0.000000 False
-1605.257080 679.968750 32.027733 -0.440259 92.394775 0.000000 False
-1682.050049 1386.968628 42.197722999999996 0.329739 -85.299103 0.000000 False
-1459.923828 460.557678 8.282043000000002 -3.894260 124.881760 0.000000 False
-1865.396118 476.756775 11.122292000000002 -3.300263 55.559776 0.000000 False
-1902.968750 679.968750 34.868774 -0.000270 0.955824 0.000000 False
-1425.029541 679.940674 35.862961 1.143731 178.707932 0.000000 False
-1943.009766 466.990295 10.048598999999996 -3.256287 30.604548 0.000000 False
-375.613770 1609.097168 -118.36492899999999
-391.376526 1534.189453 -117.382286
-465.216980 1428.761963 -117.246475
-515.291016 1431.512085 -103.02404
-1081.383179 1415.569702 -103.094482
-1087.869873 1284.122681 -103.171577
-1092.388672 1198.495850 -70.037354
-1132.625854 1107.700439 -23.508995
-1203.830566 1091.111816 10.466232000000005
-1271.024292 1092.821777 41.03125
-1663.110474 1090.750122 40.018433
-1665.229126 557.716064 41.007628999999994
33 changes: 33 additions & 0 deletions maps/de_dust2/ct_push_mid.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
a_long a_short ct_push_lower mid_to_b
5 0.75
-548.451965 1915.421021 -106.119720 6.819927 -54.622746 0.000000
-218.698853 530.268066 -1.1909709999999976 5.807819 100.446167 0.000000 False
-381.400208 -461.908936 63.0625 5.565824 91.030304 0.000000 True
-520.236938 601.537537 7.140647999999999 7.721840 83.783936 0.000000 False
-561.575134 1334.027588 -110.131775 3.255878 57.075550 0.000000 False
-489.968750 1582.370605 -125.075211 2.419881 -11.080419 0.000000 False
-275.031372 1516.968750 -125.179337 1.935885 168.629562 0.000000 False
-883.773193 1381.536865 -111.935501 1.671878 11.372628 0.000000 False
-1175.968750 1519.969238 -75.96875 3.585878 -5.479394 0.000000 False
-275.030518 1345.377441 -122.845268 -1.936107 161.148895 0.000000 False
-556.031311 1517.968750 -111.11050399999999 -1.342104 -64.791077 0.000000 False
-88.981079 1581.968384 1.740432999999996 5.873681 -132.087524 0.000000 False
199.931747 159.150757 7.778931 2.727723 131.573196 0.000000 False
-633.969482 615.646484 8.370475999999996 1.209724 12.157047 0.000000 False
-725.007080 493.971863 15.253296000000006 1.715730 8.474422 0.000000 False
716.310242 -173.977356 0.7026670000000053 -0.506258 141.750534 0.000000 True
722.014587 -42.199890 2.320205999999999 -0.858256 148.416733 0.000000 True
580.084717 210.514328 -0.6972960000000015 -0.726256 158.141129 0.000000 False
459.968628 453.899994 2.1087109999999996 -0.638257 178.623184 0.000000 False
383.515656 -660.031738 2.135536000000002 -0.176269 103.544800 0.000000 False
148.027496 35.968750 8.000991999999997 -3.432265 91.018906 0.000000 True
681.865662 308.339020 0.7581019999999938 -0.990264 -157.543640 0.000000 False
148.031311 -182.029724 8.100562999999994 -1.870271 51.822819 0.000000 True
-73.633545 -660.027893 19.824264999999997 -0.000272 53.560455 0.000000 True
732.838562 -82.599976 2.615318000000002 -1.342267 123.685074 0.000000 True
-531.395935 1774.765503 -110.5783
-383.802490 1578.519653 -117.792366
-401.824097 1285.646118 -113.56500199999999
-394.841858 733.484680 8.807251
-261.178467 465.276794 6.031619999999997
626.745117 103.392700 6.461238999999999
2 changes: 1 addition & 1 deletion maps/de_dust2/mid_to_b.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
a_short a_long b_tunnel
a_short a_long b_tunnel ct_push_lower ct_push_mid
8 0.65
-1970.519653 351.260742 22.282043 5.103965 60.626129 0.000000
-1682.031372 1386.968750 41.196304 0.286028 -91.908150 0.000000 False
Expand Down

0 comments on commit 63d5c37

Please sign in to comment.