b0c83af092
Complete replacement of the tactical-shooter project with the netfox-cs-sample (MIT) — a CS 1.6 inspired multiplayer FPS built with Godot 4 and netfox. ## What's new - Full CS-style gameplay: teams (T/CT), rounds, economy, buy menu - 6 weapons: Knife, Glock, USP, AK-47, M4A1, AWP - Bomb plant/defuse with 2 bombsites - Flashbang & smoke grenades - Proper netfox rollback netcode at 64 tick - Network popup UI for host/join - HUD, crosshair, round timer, scoreboard - All netfox singletons registered as autoloads (works in exported builds) ## Architecture - Listen-server (host from client, no dedicated server binary) - Multiplayer-fps game lives at examples/multiplayer-fps/ - Netfox addons registered as autoloads for exported build compat - Godot 4.7 with Forward+ renderer ## Removed - Old headless-server architecture (client_main, server_main, player.gd, etc.) - Custom netfox bootstrap with ENet fallback - Old ChaffGames FPS template (2,420 lines, 844 KB) - SimulationServer GDExtension stub - Godot-jolt physics (netfox sample uses default Godot physics) - Duplicate weapon_data.gd, anti_cheat.gd, round_manager.gd, etc. - Server browser API Python venv (87 MB) - test_range map and modular assets ## Preserved - Git history - Server config at config/default_server_config.cfg - Windows export preset - Build directory (gitignored) Co-authored-by: naxIO <naxIO@users.noreply.github.com>
95 lines
11 KiB
Plaintext
95 lines
11 KiB
Plaintext
[gd_scene load_steps=9 format=3 uid="uid://c5dweds7vxp6r"]
|
|
|
|
[ext_resource type="MeshLibrary" uid="uid://do0y7f0sy12jg" path="res://examples/forest-brawl/models/forest-blocks.meshlib" id="1_wxqy3"]
|
|
[ext_resource type="PackedScene" uid="uid://ijqx6kjl3qf4" path="res://examples/forest-brawl/scenes/powerup.tscn" id="2_brprm"]
|
|
[ext_resource type="PackedScene" uid="uid://ble0j0npslm4j" path="res://examples/forest-brawl/models/kenney-platformer-kit/flowers.glb" id="3_k5qfl"]
|
|
[ext_resource type="PackedScene" uid="uid://b16iwdgqjfxgo" path="res://examples/forest-brawl/models/kenney-platformer-kit/mushrooms.glb" id="4_2jkmf"]
|
|
[ext_resource type="PackedScene" uid="uid://dsk6x773uq4ej" path="res://examples/forest-brawl/models/kenney-platformer-kit/plant.glb" id="5_sshuf"]
|
|
|
|
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_xjsj7"]
|
|
|
|
[sub_resource type="Sky" id="Sky_g0uhm"]
|
|
sky_material = SubResource("ProceduralSkyMaterial_xjsj7")
|
|
|
|
[sub_resource type="Environment" id="Environment_c7ydc"]
|
|
background_mode = 2
|
|
sky = SubResource("Sky_g0uhm")
|
|
tonemap_mode = 2
|
|
glow_enabled = true
|
|
|
|
[node name="Legacy Islands Map" type="Node3D"]
|
|
|
|
[node name="GridMap" type="GridMap" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8, 0, -8)
|
|
mesh_library = ExtResource("1_wxqy3")
|
|
cell_size = Vector3(1, 1, 1)
|
|
cell_center_y = false
|
|
data = {
|
|
"cells": PackedInt32Array(0, 65531, 0, 65535, 65531, 0, 0, 65530, 0, 65535, 65530, 0, 65534, 65532, 655362, 65535, 65532, 1048576, 0, 65532, 655361, 65534, 65531, 1048577, 65534, 65530, 1048577, 5, 65530, 1441793, 5, 65531, 1441793, 5, 65532, 1441794, 65534, 65525, 1048578, 65535, 65525, 1, 0, 65525, 1, 5, 65525, 2, 1, 65531, 1441792, 1, 65530, 1441792, 2, 65530, 1441792, 2, 65531, 1441792, 3, 65531, 1441792, 3, 65530, 1441792, 4, 65530, 1441792, 4, 65531, 1441792, 4, 65529, 1441792, 4, 65528, 1441792, 4, 65527, 1441792, 4, 65526, 1441792, 3, 65526, 1441792, 2, 65526, 1441792, 1, 65527, 1441792, 1, 65526, 1441792, 0, 65526, 1441792, 0, 65527, 1441792, 65535, 65527, 1441792, 65535, 65526, 1441792, 65535, 65528, 1441792, 65535, 65529, 1441792, 0, 65529, 1441792, 0, 65528, 1441792, 1, 65529, 1441792, 1, 65528, 1441792, 2, 65528, 1441792, 2, 65527, 1441792, 3, 65527, 1441792, 3, 65528, 1441792, 3, 65529, 1441792, 2, 65529, 1441792, 65534, 65529, 1048577, 65534, 65528, 1048577, 65534, 65527, 1048577, 65534, 65526, 1048577, 1, 65525, 1, 2, 65525, 1, 3, 65525, 1, 4, 65525, 1, 5, 65526, 1441793, 5, 65527, 1441793, 5, 65528, 1441793, 5, 65529, 1441793, 4, 65532, 655361, 3, 65532, 655361, 2, 65532, 655361, 1, 65532, 655361, 20, 2, 1048578, 20, 3, 1048577, 20, 4, 1048577, 20, 5, 1048577, 20, 6, 1048576, 20, 7, 1048577, 20, 8, 1048577, 20, 9, 655362, 21, 2, 1, 21, 3, 1441792, 21, 4, 1441792, 21, 5, 1441792, 21, 6, 1048576, 21, 7, 0, 21, 8, 0, 21, 9, 655361, 22, 2, 1, 22, 3, 1441792, 22, 4, 1441792, 22, 5, 1441792, 22, 6, 1441792, 22, 7, 1048576, 22, 8, 0, 22, 9, 655361, 23, 2, 1, 23, 3, 1441792, 23, 4, 1441792, 23, 5, 1441792, 23, 6, 1441792, 23, 7, 1048576, 23, 8, 1441792, 23, 9, 655361, 24, 2, 1, 24, 3, 1441792, 24, 4, 1441792, 24, 5, 1441792, 24, 6, 1441792, 24, 7, 1048576, 24, 8, 1441792, 24, 9, 655361, 25, 2, 1, 25, 3, 1441792, 25, 4, 1441792, 25, 5, 1441792, 25, 6, 1441792, 25, 7, 1441792, 25, 8, 1441792, 25, 9, 655361, 26, 2, 1, 26, 3, 1441792, 26, 4, 1441792, 26, 5, 1441792, 26, 6, 1441792, 26, 7, 1441792, 26, 8, 1441792, 26, 9, 655361, 27, 2, 2, 27, 3, 1441793, 27, 4, 1441793, 27, 5, 1441793, 27, 6, 1441793, 27, 7, 1441793, 27, 8, 1441793, 27, 9, 1441794, 65525, 13, 1048578, 65525, 14, 1048577, 65525, 15, 1048577, 65525, 16, 1048577, 65525, 17, 1048577, 65525, 18, 1048577, 65525, 19, 1048577, 65525, 20, 655362, 65526, 13, 1, 65526, 14, 1441792, 65526, 15, 1441792, 65526, 16, 1441792, 65526, 17, 1441792, 65526, 18, 0, 65526, 19, 0, 65526, 20, 655361, 65527, 13, 1, 65527, 14, 1441792, 65527, 15, 1441792, 65527, 16, 1441792, 65527, 17, 1441792, 65527, 18, 0, 65527, 19, 0, 65527, 20, 655361, 65528, 13, 1, 65528, 14, 1441792, 65528, 15, 1441792, 65528, 16, 1441792, 65528, 17, 1441792, 65528, 18, 1441792, 65528, 19, 1441792, 65528, 20, 655361, 65529, 13, 1, 65529, 14, 1441792, 65529, 15, 1441792, 65529, 16, 1441792, 65529, 17, 1441792, 65529, 18, 1441792, 65529, 19, 1441792, 65529, 20, 655361, 65530, 13, 1, 65530, 14, 1441792, 65530, 15, 1441792, 65530, 16, 1441792, 65530, 17, 1441792, 65530, 18, 1441792, 65530, 19, 1441792, 65530, 20, 655361, 65531, 13, 1048576, 65531, 14, 1048576, 65531, 15, 1441792, 65531, 16, 1441792, 65531, 17, 1441792, 65531, 18, 1441792, 65531, 19, 1441792, 65531, 20, 655361, 65532, 13, 1048576, 65532, 14, 1441793, 65532, 15, 1441793, 65532, 16, 1441793, 65532, 17, 1441793, 65532, 18, 1441793, 65532, 19, 1441793, 65532, 20, 1441794, 13, 5, 655360, 12, 5, 655360, 11, 5, 655360, 10, 5, 655360, 9, 5, 655360, 8, 5, 655360, 7, 5, 655360, 6, 5, 655360, 6, 6, 655360, 5, 6, 655360, 4, 7, 655360, 4, 8, 655360, 4, 9, 655360, 4, 10, 655360, 5, 11, 655360, 5, 12, 655360, 6, 12, 655360, 7, 12, 655360, 7, 13, 655360, 8, 13, 655360, 9, 13, 655360, 10, 12, 655360, 11, 11, 655360, 12, 11, 655360, 13, 10, 655360, 14, 9, 655360, 14, 8, 655360, 14, 7, 655360, 13, 7, 655360, 12, 6, 655360, 5, 7, 655360, 5, 8, 655360, 5, 9, 655360, 6, 10, 655360, 7, 11, 655360, 8, 11, 655360, 9, 11, 655360, 10, 10, 655360, 11, 10, 655360, 11, 9, 655360, 12, 9, 655360, 12, 8, 655360, 13, 8, 655360, 13, 6, 655360, 14, 6, 655360, 14, 5, 655360, 12, 10, 655360, 10, 11, 655360, 8, 12, 655360, 9, 12, 655360, 6, 11, 655360, 6, 9, 655360, 5, 10, 655360, 6, 8, 655360, 6, 7, 655360, 7, 6, 655360, 8, 6, 655360, 9, 6, 655360, 10, 6, 655360, 11, 6, 655360, 13, 9, 655360, 12, 7, 655360, 10, 7, 655360, 9, 7, 655360, 8, 7, 655360, 8, 8, 655360, 7, 8, 655360, 7, 9, 655360, 8, 10, 655360, 8, 9, 655360, 7, 7, 655360, 7, 10, 655360, 9, 10, 655360, 9, 9, 655360, 9, 8, 655360, 10, 8, 655360, 11, 8, 655360, 11, 7, 655360, 10, 9, 655360, 5, 5, 655360, 4, 5, 655360, 3, 5, 655360, 3, 6, 655360, 3, 7, 655360, 4, 11, 655360, 4, 12, 655360, 4, 13, 655360, 3, 12, 655360, 3, 8, 655360, 4, 6, 655360, 3, 9, 655360, 3, 10, 655360, 3, 11, 655360, 3, 13, 655360, 5, 13, 655360, 6, 13, 655360, 12, 13, 655360, 13, 13, 655360, 14, 13, 655360, 15, 13, 655360, 15, 12, 655360, 14, 12, 655360, 15, 11, 655360, 14, 11, 655360, 14, 10, 655360, 15, 10, 655360, 13, 12, 655360, 13, 11, 655360, 15, 9, 655360, 15, 8, 655360, 15, 7, 655360, 15, 6, 1048576, 15, 5, 655360, 15, 14, 655361, 14, 14, 655361, 13, 14, 655361, 12, 14, 655361, 11, 14, 655361, 10, 14, 655361, 9, 14, 655361, 5, 14, 655361, 4, 14, 655361, 3, 14, 655361, 2, 13, 1048577, 2, 12, 1048577, 2, 11, 1048577, 2, 10, 1048577, 2, 9, 1048577, 2, 8, 1048577, 2, 7, 1048576, 2, 6, 1048577, 2, 5, 1048577, 3, 4, 1, 4, 4, 1, 5, 4, 1, 6, 4, 1, 7, 4, 1, 8, 4, 1, 9, 4, 1, 10, 4, 1, 11, 4, 1, 12, 4, 1, 13, 4, 1, 14, 4, 1, 15, 4, 1, 16, 5, 1441793, 16, 6, 1048576, 16, 7, 1441793, 16, 8, 1441793, 16, 9, 1441793, 16, 10, 1441793, 16, 11, 1441793, 16, 12, 1441793, 16, 13, 1441793, 16, 4, 2, 16, 14, 1441794, 2, 14, 655362, 2, 4, 1048578, 12, 12, 655360, 11, 12, 655360, 11, 13, 655360, 10, 13, 655360, 8, 14, 655361, 7, 14, 655361, 6, 14, 655361, 65535, 65533, 1048576, 65535, 65534, 1048576, 65535, 65535, 1048576, 65535, 0, 1048576, 65535, 1, 1048576, 65535, 2, 1048576, 65535, 4, 1048576, 0, 4, 1048576, 0, 5, 1048576, 0, 6, 1048576, 0, 7, 1048576, 1, 7, 1048576, 1, 65535, 1048576, 0, 65535, 1048576, 65534, 65535, 1048576, 65534, 0, 1048576, 1, 0, 1048576, 65535, 5, 1048576, 65535, 6, 1048576, 65535, 7, 1048576, 65535, 8, 1048576, 65535, 9, 1048576, 65534, 10, 1048576, 65533, 10, 1048576, 65533, 11, 1048576, 65532, 11, 1048576, 65532, 12, 1048576, 17, 6, 1048576, 18, 6, 1048576, 19, 6, 1048576, 65535, 3, 1048576, 0, 0, 1048576, 65534, 9, 0, 65535, 10, 0, 65534, 11, 0, 65533, 12, 0, 65531, 12, 0)
|
|
}
|
|
metadata/_editor_floor_ = Vector3(0, 0, 0)
|
|
|
|
[node name="Powerup" parent="." instance=ExtResource("2_brprm")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.00248, 3, 0.00557518)
|
|
|
|
[node name="Powerup2" parent="." instance=ExtResource("2_brprm")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.99752, 3, -14.9944)
|
|
|
|
[node name="Powerup3" parent="." instance=ExtResource("2_brprm")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -14.9975, 3, 9.00558)
|
|
|
|
[node name="Foliage" type="Node" parent="."]
|
|
|
|
[node name="flowers" parent="Foliage" instance=ExtResource("3_k5qfl")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.45702, 1, -1.05848)
|
|
|
|
[node name="flowers2" parent="Foliage" instance=ExtResource("3_k5qfl")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.543, 1, 3.9415)
|
|
|
|
[node name="flowers3" parent="Foliage" instance=ExtResource("3_k5qfl")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.2015, 1, 0.84537)
|
|
|
|
[node name="flowers4" parent="Foliage" instance=ExtResource("3_k5qfl")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.5772, 1, 1.49496)
|
|
|
|
[node name="mushrooms" parent="Foliage" instance=ExtResource("4_2jkmf")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.6467, 1, -13.6528)
|
|
|
|
[node name="mushrooms2" parent="Foliage" instance=ExtResource("4_2jkmf")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.6467, 1, -17.6528)
|
|
|
|
[node name="mushrooms3" parent="Foliage" instance=ExtResource("4_2jkmf")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7.07012, 1, -15.1469)
|
|
|
|
[node name="plant" parent="Foliage" instance=ExtResource("5_sshuf")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -13.6591, 1, 6.7486)
|
|
|
|
[node name="plant2" parent="Foliage" instance=ExtResource("5_sshuf")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -12.5256, 1, 10.0441)
|
|
|
|
[node name="plant3" parent="Foliage" instance=ExtResource("5_sshuf")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -17.3956, -2.20899, 10.0441)
|
|
|
|
[node name="Spawn Points" type="Node" parent="."]
|
|
|
|
[node name="Spawn" type="Node3D" parent="Spawn Points" groups=["Spawn Points"]]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4, 0)
|
|
|
|
[node name="Spawn2" type="Node3D" parent="Spawn Points" groups=["Spawn Points"]]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -17, 4, 11)
|
|
|
|
[node name="Spawn3" type="Node3D" parent="Spawn Points" groups=["Spawn Points"]]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16, 4, -2)
|
|
|
|
[node name="Spawn4" type="Node3D" parent="Spawn Points" groups=["Spawn Points"]]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8, 4, -18)
|
|
|
|
[node name="Environment" type="Node" parent="."]
|
|
|
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="Environment"]
|
|
transform = Transform3D(0.5, 0.612372, -0.612372, 0, 0.707107, 0.707107, 0.866025, -0.353553, 0.353553, -6.7361, 8.77817, 3.88909)
|
|
shadow_enabled = true
|
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="Environment"]
|
|
environment = SubResource("Environment_c7ydc")
|