feat: integrate ChaffGames FPS template as local player controller
Replaces the overhead box-mesh view with a full FPS character: - mouse look, WASD movement, jump (Space), crouch (C), sprint (Shift), lean (Q/E) - 6 weapons (LMB shoot, R reload, scroll switch, F melee, G drop) - Crosshair HUD, ammo counter, sprint bar - Client sends position to server at 20Hz for multiplayer visibility - Server broadcasts positions to all peers - Remote players shown as boxes (placeholder) source: https://godotengine.org/asset-library/asset/2652 (MIT license)
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
[gd_resource type="Resource" script_class="WeaponResource" format=3 uid="uid://c1jg0ifn7yvve"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ca7h24lxxrtvx" path="res://client/template/scripts/Weapon_State_Machine/weapon_resource.gd" id="1_oxrhl"]
|
||||
[ext_resource type="PackedScene" uid="uid://dc48o4niy1mok" path="res://client/template/Spawnable_Objects/Projectiles_To_Load/basic_hitscan_projectile.tscn" id="1_xr7bm"]
|
||||
[ext_resource type="PackedScene" uid="uid://gtthejj2wmyj" path="res://client/template/Spawnable_Objects/Weapons/blaster_n.tscn" id="3_c38hr"]
|
||||
[ext_resource type="PackedScene" uid="uid://3mb12hvruajh" path="res://client/template/Spawnable_Objects/SprayProfiles/spray_profile_2.tscn" id="4_rk8dx"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_oxrhl")
|
||||
weapon_name = "blaster_n"
|
||||
pick_up_animation = "Global/blasterN Active"
|
||||
shoot_animation = "Global/blasterN Shoot"
|
||||
reload_animation = "Global/blasterN Reload"
|
||||
change_animation = "Global/blasterN De-Activate"
|
||||
drop_animation = "Global/blasterN Drop"
|
||||
out_of_ammo_animation = "Global/blasterN OOA"
|
||||
melee_animation = "Global/blasterN Melee"
|
||||
magazine = 5
|
||||
max_ammo = 15
|
||||
damage = 1
|
||||
melee_damage = 1.0
|
||||
fire_range = 100
|
||||
can_be_dropped = true
|
||||
weapon_drop = ExtResource("3_c38hr")
|
||||
weapon_spray = ExtResource("4_rk8dx")
|
||||
projectile_to_load = ExtResource("1_xr7bm")
|
||||
Reference in New Issue
Block a user