Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Convert Crab Bombs into a Global Script

未關閉
#118 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 2 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
重構
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
cpp
領域
game-dev

研究方向

Read commit ce87d4051b6f25cf0c3fcac60f937b5018828a85 to locate the crab bomb settings in SettingsMan and the related C++ hacks. Then inspect the global script system to see how scripts are enabled; implement the behavior there with the threshold set to 42. Done means the old settings and C++ hacks are removed and the script can restore crab bombing when enabled.

由索引模型根據 Issue 內容生成。

描述

enhancement good first issue

Describe the Problem and Suggested Improvement
Crab bombing was an effect caused by old technical limitations to the game that were removed a long, long time ago. Effectively, the combination of crabs being free with very restrictive MOID limit meant that spamming crabs would quickly blow this limit, causing all non-brain actors to gib.

In CCCP build, this was readded to the code as an explicit 'feature' for nostalgia purposes, but it's such a specific detail that it ought to be removed from the C++ entirely and done via script.

Describe Additional Work Required Before Improvement Can be Made
The old crab bomb settings will need to be removed from SettingsMan, and have the vestigial crab bomb C++ hacks removed. Afterwards, a global script can be created that, when enabled, will re-introduce the crab bomb behaviour.

Note that global scripts, as of yet, lack the ability to have user-variable settings, e.g the crab bomb threshold. I suggest that the theshold is just set to its default value of 42 in the script.

Additional context
The commit that added the crab bombs was ce87d4051b6f25cf0c3fcac60f937b5018828a85.

主要語言
C++
星號
329
分支
47
平均合併
6 天 10 小時
30 天內合併 PR
14

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

cortex-command-community/Cortex-Command-Community-Project 的其他 Issue

查看 cortex-command-community/Cortex-Command-Community-Project 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。