- name
SKILL.md
Tệp skill vẫn nằm trong kho mã của nhà phát hành.
Dán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill fps-shooter -a cursor -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill fps-shooter -a claude-code -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill fps-shooter -a codex -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill fps-shooter -a grok -yGửi tin nhắn đã sao chép trong cuộc trò chuyện Grok Bot. Bot sẽ lấy tệp SKILL.md này từ GitHub và thêm vào bộ skill mà mọi Bot của bạn dùng chung.
Install this skill: https://github.com/gamedev-skills/awesome-gamedev-agent-skills/tree/HEAD/skills/genres/fps-shooterTừ nhà phát hành
Owns how shooting works and feels: the shot model, the damage and TTK numbers, recoil and spread, fire timing, aim scaling and how enemies fight back. The engine skills supply the controller body, raycasts and networking.
When not to use: camera follow, orbit and look smoothing (camera-systems); juice
(game-feel); the raycast API (godot-physics, unity-physics, unreal-cpp-gameplay);
replication and prediction (engine multiplayer skill, roblox-networking on Roblox).
fire_rate * 10 within 1;Worked TTK: the Vandal against 150 HP kills in 4 body shots, so (4 - 1) / 9.75 = 0.31 s,
or one headshot at any range.
Vertical and horizontal FOV: h = 2 * atan(tan(v / 2) * aspect). Godot's default
vertical 75° is about 107.5° horizontal at 16:9. Store the player's FOV setting as horizontal
at a reference aspect and convert, or ultrawide players get a zoomed-in view.
ADS sensitivity: multiply look speed by tan(ads_fov / 2) / tan(hip_fov / 2) (both the
same axis). The crosshair then moves across targets at the same rate on screen near the centre.
# Pseudocode, per frame. Schedule shots on a clock; never reset the timer to "now".
interval = 1.0 / FIRE_RATE # 9.75 rounds/s -> 0.1026 s
if trigger_held and ammo > 0:
if next_shot_time < now - interval: # idle gap: do not bank shots
next_shot_time = now
while next_shot_time <= now and ammo > 0: # several shots in one long frame
fire(spread_for(shot_index)); ammo -= 1; shot_index += 1
next_shot_time += interval
Resetting with last_shot = now throws away the remainder each frame, so a 600 rpm gun fires
at about 450-600 rpm depending on frame rate.
def ttk(hp, dmg_per_shot, rate): # first shot at t = 0
shots = ceil(hp / dmg_per_shot)
return shots, (shots - 1) / rate
for w in weapons:
for hp in TARGET_HPS: # e.g. 100, 150 (armour), boss values
for zone, mult in (("head", w.head), ("body", 1.0), ("legs", w.legs)):
print(w.id, hp, zone, *ttk(hp, w.damage(range_band) * mult, w.rate))
dt. Mouse delta is
already a distance; only stick input is a rate that needs dt.references/shooting-and-feel.md: read when comparing hitscan and projectiles, writing the
ray query per engine (shooter exclusion, triggers, start-inside rules), falloff, disc spread
and recoil offset code, TTK trade-offs, lag compensation, or the PvE enemy state machine.Related: camera-systems, game-feel, input-systems (rebinding, aim assist input),
game-ai (enemy decisions), audio-design (weapon and hit sounds), godot-3d-essentials,
unreal-cpp-gameplay, unity-physics.
Last verified: 2026-11-11.
sv_maxunlag default and maximum 1 s:
https://developer.valvesoftware.com/wiki/Lag_Compensation.Camera3D.fov default 75, vertical under the default keep_aspect
(doc/classes/Camera3D.xml).>
---name: fps-shooterdescription: >---# skills/genres/fps-shooter/SKILL.mdCâu hỏi thường gặp
Tải skills/genres/fps-shooter/SKILL.md từ nhà phát hành, hoặc sao chép đường dẫn và mở kho mã. PlugMCP chỉ liệt kê skill và không lưu trữ tệp này.
Nhà phát hành duy trì nó tại https://github.com/gamedev-skills/awesome-gamedev-agent-skills.
Claude, Cursor, Codex và Grok Build có thể đọc tệp SKILL.md mà bạn thêm từ kho mã của nhà phát hành. Grok Bot cài đặt skill khi bạn gửi liên kết thư mục GitHub của skill trong cuộc trò chuyện.