All skills
thedivergentai avatar

/godot-genre-shooter

@9d6e91e

Expert blueprint for TPS/hybrid shooters: soft-lock aim assist, cover validation rays, SpringArm TPS camera, and genre routing to FPS sibling for viewmodel/hitscan feel. Use for third-person/cover shooters and hybrids. Keywords: TPS, soft_lock, cover, SpringArm3D, hybrid shooter, aim assist — not FPS-only movement.

Use this Skill: https://skilld.dev/gh/thedivergentai/gd-agentic-skills/godot-genre-shooter

This session only. Nothing lands on disk.

referencesadvanced-meta-systems.md

≈427 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Advanced shooter meta-systems

Load for lag compensation, explosion queries, and server rewind — pairs with godot-adapt-single-to-multiplayer.

Client prediction + server authority

# CLIENT — juice immediately
func fire_client() -> void:
    play_effects_immediate()
    local_tracer_only()
    rpc_id(1, "server_validate_shot", camera.global_transform)

# SERVER — damage only here
@rpc("any_peer")
func server_validate_shot(xform: Transform3D) -> void:
    var hit := perform_server_hitscan(xform)
    if hit and is_valid_shot(hit):
        rpc("confirm_hit", hit.victim_id, hit.damage)
  • Predict tracers locally; never sync every bullet.
  • Server wins on mismatch — show "no reg" feedback.
  • Use ENet/UDP, not TCP, for fire events.

Lag compensation (rewind)

Ring-buffer transforms; on shot, rewind targets to client timestamp, raycast, restore — lag_compensator.gd.

CAUTION: Rewind, raycast, and restore in one physics frame — leaving bodies displaced breaks other server sim.

Shape explosion query

Sphere intersect_shape without Area3D spam — shooter_patterns.gd pattern 3; also see explosion helper in patterns file.

Hit zones

Use collider/shape names or bones for head/chest multipliers — avoid == on floats; use is_equal_approx() for damage math.

Monte Carlo balance

Weapon matrices / TTK simulation → godot-monte-carlo-balancer.

Source: SKILL.md on GitHub

1 warning17d4 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    The skill provides a comprehensive set of Godot script templates and architectural guidance for implementing third-person shooter mechanics. No security risks or malicious behaviors were detected.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer7mo

    3/3 files flagged

Signed by skilld at 9d6e91e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 2 months ago

README badge

README badge for thedivergentai/gd-agentic-skills/godot-genre-shooter