Files
2026-11-29 15:49:17 +03:00

17 KiB
Raw Permalink Blame History

Hunter compact context

Current shape

Roblox hunter/shooter project. Main place: Hunter.rbxl. Gameplay and presentation logic is primarily in scripts/; weapon and first-person work includes sniper/rifle viewmodels, reloads, shots, sights, damage numbers, crosshair, kill feed, goggles, bots, and lighting.

Working rules

  • Keep server authority in *.server.luau; keep input/camera/UI in *.client.luau.
  • Treat Blender files, GLB exports, textures, renders, and .rbxl as binary assets; inspect through the relevant app or previews.
  • Prefer targeted changes and preserve existing working behavior.
  • For scene modeling, textures are visual only; use mesh/collision-proxy geometry and run blender/check_collisions.py before export.
  • Luau quality baseline: --!strict, server-authoritative remotes, finite/range/state validation, and cleanup of long-lived frame connections.

Active decisions

  • Hunter.rbxl runs one arena per server, workspace.ProceduralArena at (6500, 8, 0). The retired HunterMonolithImport model and its bot spawn markers are preserved in ServerStorage. Its runes remain available as generation templates. scripts/procedural/BuildProceduralKit.luau derives 11 native box templates, two ramp meshes and a three-part flank gate from the source dimensions and textures. ProceduralArena.luau assembles a floor of 84×98 cells (about 455×531 studs) before each round from three independent citadel profiles, three tunnel networks and three ramp patterns. Each category changes between consecutive rounds, and the last five combinations cannot repeat. Ground routes link two sheltered bases, four flank galleries and 14 ramps, with ten spawns per team.

  • ArenaModes.luau routes the active procedural arena. The lobby directory opens team rosters with selectable columns. For local Connect, the server checks balance and capacity on the chosen side, reserves a seat and shows the confirmation for 1.05 seconds before deployment. After a 300-second round with an empty roster, the server immediately picks a different ruleset and regenerates the layout. Populated rounds retain results, voting and the winner reveal.

  • HostedArenaHud.client.luau renders the right-side public arena directory, team details and the Create Arena button. HostedArenaService.server.luau manages same-server private invitations (35 seconds), a paginated public directory with team snapshots and Roblox reserved sessions. A public join carries the chosen side across the transfer. The destination checks balance again and leaves the player in the hosted lobby with a notice if the chosen team is unavailable. When the owner departs, ownership passes to the earliest remaining admitted player and the directory reflects the change. The last departure retires the session and removes its public entry. Verified in local Studio and with multiplayer fixtures for platform calls. Saved to Hunter.rbxl.

  • Unpublished Hunter.rbxl previews public hosting on the existing procedural arena within the Studio session. Creation sets the card's owner and opens the existing team picker. The published path uses the Roblox memory stores and reserved server. Session registration retries transient failures and logs a specific cause before reporting a service error.

  • The arena creator selects one of eight initial rulesets and can disable mode changes for public or private sessions. Reserved servers load these options before the first round. With changes disabled, populated rounds show results and skip the ballot, and empty rounds regenerate without changing the mode. With changes enabled, voting and empty-round rotation follow the existing rules. The local public preview uses the same options.

  • MatchRules.luau lists Team Deathmatch, Hot Point, Three Points, Capture the Flag, Trophy Hunt, Citadel Siege, One Life and Hunt the Leader. ArenaObjectives.luau owns mode-specific wins, objective scores, tokens and flags, and uses ArenaObjectiveSites.luau for verified arena sites. MatchVoteHud.client.luau displays the previous round's ballot. Votes lock for the final three seconds. Ties draw among the leaders and empty ballots retain the rule. The server sends the winner for a three-second reveal before starting the next round. Participants with an accepted vote return to the same arena through the normal deployment path, keeping prior teams when balance permits.

  • ModeCard.luau renders the eight ruleset voting cards and the compact illustrated arena cards in the lobby directory. The sidebar uses the current ruleset from the local match or public directory snapshot, shows the arena identity and occupancy, and fits the list height until it reaches the viewport limit. The art map links each MatchRules ID to an image owned by Axion Games Studio (779665335). The matching 4:3 PNGs are in assets/mode-cards/, based on the approved concept renders/hunter-mode-cards-v1.png.

  • HunterMonolithImport.ArenaRunes holds 14 animated direction markers, six running jump runes and 20 pink-to-gold ramp strips. Jumps rise 48 studs while preserving horizontal velocity and normal steering. The simulation owner applies lift immediately, and the server validates the replicated activation effect. Uphill boosters raise speed by 48% for two seconds. Their chevrons glide along the ramp surface at 12 studs per second, fading before they loop back. scripts/studio/BuildArenaRunes.luau fits the editable strips to the collidable ramp faces.

  • Each procedural layout contains 14 fitted booster strips and six jump runes leading toward the four flank galleries and two citadel balconies. The generator validates each footprint and publishes runes only with a valid layout. ArenaMobility.luau registers and removes them as the layout changes. Each mode retains its own triggers and cooldown lifecycle.

  • Procedural kit v6 keeps the floor, navy and amber MaterialVariants at 5.419642 studs per cell. Native box faces start the texture at each face edge, including odd-cell widths and heights. Structural volume faces snap to the floor grid before routes and cover are validated. All orange ramps use six cells of rise, eight of run and ten along the slope. The archived model retains its imported textures.

  • Ally kill counters sit 3 px beside the portrait with scaled text. Holding RMB interrupts the F inspect and blends into aim. V is lobby-only and arena entry locks the camera to first person.

  • Ramp boosters play BLD_MACH_RUSH for the activating player at 80% playback speed. Jump runes play Dash Wind Burst for the jumping player. Both cues use local SoundService playback at .30 base volume and stop on leaving the arena.

  • ArenaMobilityScreen.luau draws outward speed streaks on boost and rising violet sigils and sparks on local jump activation. It dims the overlays when aiming. The rifle's camera adds a smoothed 6° hip-fire FOV increase during a boost and blends into the usual scope FOV.

  • SniperShots.server.luau owns rifle damage and uses ShotHistory.luau to test up to 240 ms of server-recorded poses against solid geometry and current cover. A fresh peek across an occluded sightline has a short, bounded defender grace based on measured ping. The client confirms hit feedback only from the server.

  • RifleSpray.luau defines four exact shots followed by a fixed upward, left and right sweep at one third of the configured angular amplitude. The default burst reset is 0.4 seconds. Shot tuning retains the existing spread attributes for spray growth, recovery and ADS scaling. The shared visual tracer travels at 800 studs/s.

  • Author Hunter UI with the designed desktop composition and editable artwork from ReplicatedStorage.HunterUI.Elements. New buttons use Normal, Hover and Pressed, player rows highlight on hover, and progress lines animate. Dedicated phone layouts are deferred.

  • The HUD puts timer, scores and ally portraits at upper left, a double animated streak arc near the crosshair, HP at lower left, and skin, wallet and ammo at lower right. Six HUD plates use animated contour lightning. Key 1 operates the rifle with the default backpack hidden.

  • During active arena play, the upper-left HUD shows the current ruleset and its instructions from MatchRules.luau below the timer. Live objective status or a personal flag, token or leader notice appears beneath the instructions.

  • Clients in an arena see a large red countdown at top center for the match's final five seconds. ArenaRoundHud.client.luau uses that mode's server deadline and plays one local Timer Tick cue (113416294133952) per digit through SniperEffects.luau.

  • On the arena, ArenaAtmosphere.client.luau blends in the blue-hour profile. The place's 26 existing route lights use cyan, amber, violet and mint accents. Lobby values return on leaving the arena and the grade yields to goggles.

  • In combat, E cycles six rifle skins and shows the selected name above the wallet. ArenaRounds validates requests and retains the choice through respawns and rounds within the session. The five extra skins are defined in RifleSkinCatalog.luau and RifleSkinVariants.luau.

  • The arena rifle defaults to Skin="BlueFlame". On equipped copies, RifleSkin.luau gives the rifle pearl-white panels, a shifting cobalt body, and cyan flames and glints flowing toward the stock. A shot briefly brightens the effect; aiming reduces the flames while the colors keep shifting.

  • The arena wallet stays at the lower right above ammo. Its rotating 3D gold H coin also appears in pickup flights, with a glint on arrival. Each collected coin adds its own value when it lands. The lobby shows the server balance.

  • Each PvP elimination also drops one randomly selected power sphere from PowerUpCatalog.luau. Client models have 15 distinct colors and icons, orbiting stars, a vertical beam, and a 60-second countdown. The server selects the nearest living arena player within 12 studs with clear sight, grants the effect on arrival, and sends a single pickup cue using Level_up. Spheres clear on expiration and round end. Coins and power spheres share LootMagnet.luau; the ammo sphere tops up the rifle's current magazine.

  • Future non-coin drops will use the existing magic sound 1 pickup sound (rbxassetid://117243786893013). Coins have their own pickup and 80% cues.

  • Arena PvP kills refresh the gold arcs near the crosshair for 13 seconds and update the multiplier. The multiplier resets on death or lobby return. Every confirmed hit plays hitmarker_2. Criticals add Magic Hit at 0.2 base volume, and every increase in streak (including ×1) plays Level_up.

  • «Трофеи» use gold H coins. PvP kills spawn 10–20 coins worth 10–15 each, with world labels. The killer can attract each coin within 12 studs with a clear path. Credits and MoneyCollect1 occur per arrival; CupidKnife plays at ceil(0.8 × coin count) once per drop. Unclaimed coins expire after 16 seconds or at round end. TrophyWallet.luau persists collected amounts in the published experience; plain Studio sessions are in memory.

  • Death disables weapon input and rendering immediately. The server rejects shots and reloads from dead characters. The local death screen covers the frozen camera until it follows the new living character; the original three-second respawn delay remains.

  • Hunter's match HUD uses compact team score panels and a row of teammate portraits. The team picker keeps both actions visible while its rosters scroll on smaller screens. Buttons animate on hover, focus and press; the picker fades/scales in and score changes pulse.

  • Lobby inventory is blocked on the server and the default hotbar is hidden there. HP and crosshair show only in the arena, while the lobby uses a visible free cursor and defaults to third person. Combat defaults to first person with its cursor hidden; the Studio P tuner can still show a cursor.

  • The team picker shows Roblox headshots. The match HUD shows timer, both team scores and personal kill counts for the local team. Only confirmed PvP kills earn points; team scores remain visible until the next round starts. Verified with three clients in Studio.

  • Holding Tab shows the Hunter scoreboard. Releasing it or switching window focus closes the live view. The scoreboard reuses the results layout to show live scores, avatars, kills and deaths for both teams in the player's match or selected lobby mode. The final results replace the live view at round end and use their own deadline.

  • The lobby button opens a live team picker. ArenaRounds.server.luau runs 300-second Blue/Orange rounds and 15-second breaks, caps each side at 10, limits the count difference to one, and rebalances after departures. At round end it snapshots each team's score, players, kills and deaths before sending them back to the lobby without rifles. ArenaRoundHud.client.luau presents those results to the match participants until the server's next-round deadline. Rifle template lives in ReplicatedStorage.ArenaEquipment. The old lobby gateways are archived in ServerStorage.RetiredLobbyGateways.

  • PlayerOcclusionOutlines.client.luau draws unfilled outlines behind cover and colored overhead health bars for visible players in the same arena match. Roblox Teams determine green allies and red rivals. ArenaRounds.server.luau supplies the authoritative health fraction on each character. Verified with two Studio clients and saved to local Hunter.rbxl.

  • The Studio P panel's Movement tab now adjusts base player speed and world gravity live. MovementTuning.server.luau scales the configured jump height with gravity, and aiming uses the updated base speed. The selected speed 36.2 and gravity 155 were saved to the SniperViewmodel attributes in local Hunter.rbxl. Automatic transfer from Play to Edit via the existing ViewmodelTuneSaver plugin was not observed in this Studio session.

  • The local Hunter.rbxl uses the imported static arena. HunterMonolithImport.PlayerSpawns contains eight courtyard and four gallery SpawnLocations. Initial spawn is unarmed in the lobby. Team members respawn in the arena during a round. Eight target bots spawn on the arena.

  • Import completed in place 127514573501219: Workspace.HunterMonolithImport, source origin (1600,8,0), footprint896x896. Asset94623364447810 uploaded once to group779665335; automatic textures137719708984464/82420782531753/76473273465933. All176 meshes anchored/textured;74 gate colliders,26 SpotLights;12 gate passages and20 ramps passed targeted collision ray checks. Place not published. Package remains linked; repairs are local to this instance, rerun SetupImport on fresh import/update. Full result: 3D models/game_zone/Roblox_Import/studio_import_result.json.

  • Import package: 3D models/game_zone/Roblox_Import/Hunter_Monolith_Arena.glb (13,576,976 bytes), 176 meshes, 3 embedded 2048 maps, 18,580 triangles; maximum 448 per mesh. Active-scene export fixed two foreign objects. GLB round-trip passed (250.88x250.88x33.6 m). SetupImport.luau restores 896-stud scale, anchoring, 74 gate collider boxes and 26 SpotLights. 203 intentional contacts classified in manifest.json.

  • Arena lighting: blender/add_arena_lighting.py, called by the monolith builder, adds 42 substantial fixtures/markers and 26 local lights: cyan north/center, amber south, violet west/middle gallery, mint east. Uses scene lights in Blender material preview; screenshots only. Roblox light conversion/performance remains unverified.

  • Central citadel now has three playable levels at 0/48/96 studs. Wide side decks preserve middle-gallery access beside two offset solid ramps to the top. Map now has 108 architecture meshes and 20 ramps; screenshot renders/monolith_three_levels_screenshot.png.

  • User requires viewport screenshots only; do not generate renders. Geometry must look monolithic, with no thin surfaces; minimum 2-stud thickness. Modular block sizing uses an 8-stud step; ramps are solid right-triangular prisms.

  • Current redesign: blender/build_monolith_arena.py creates 3D models/game_zone/Hunter_Monolith_Arena.blend: 896x896, 105 solids, levels 0/24/40/48, central passages, outer galleries, four corner courts and 18 ramps. blender/build_hd_grid_textures.py supplies 2048x2048 maps with 8-stud cells (512px/cell) and face-space UVs including slopes. Previous pencil arena layout was rejected. Blender visual review only; Roblox import/playtest remains outstanding.

  • Use this file plus tasks.md as the first-read context.

  • Add durable discoveries here; do not turn this into a dump of implementation details.

Entry points

  • Weapons: scripts/ThirdPersonRifle*, Sniper*, RifleSights.server.luau, EquipRifle.server.luau.
  • Combat feedback: DamageNumbers.client.luau, KillFeed.client.luau, Crosshair.client.luau.
  • World/test: TargetBots.server.luau, NightLighting.server.luau.
  • Asset automation: blender/ scripts, especially build/export helpers.
  • Collision validation: blender/check_collisions.py.
  • Luau quality guidance: C:\Users\Alex\.codex\skills\roblox-hunter-workflow\references\roblox-quality.md.
  • Spawn flow: scripts/ArenaRounds.server.luau handles lobby arrival, team selection and respawn via scripts/ArenaSpawns.luau. scripts/ArenaRoundHud.client.luau builds the team lists and timer. scripts/studio/SetupStaticArenaSpawns.luau places markers for a fresh import.
  • Current Blender map: blender/build_pencil_arena.py builds 3D models/game_zone/Hunter_Pencil_Arena.blend and overview/player renders in renders/. It is a separate 520x520 arena with imperfect hand-drawn grid textures, ground bypasses, connected elevated decks, bridges and four ramps. The user explicitly rejected the house approach; do not use build_house_prototype.py as the new map basis.