added money and money counter

This commit is contained in:
derek
2024-07-17 12:22:05 -05:00
parent 119d12b3da
commit a917dd2c88
17 changed files with 217 additions and 31 deletions

BIN
assets/Models/money1.blend Normal file

Binary file not shown.

View File

@@ -0,0 +1,50 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://txjpkuh4uft6"
path="res://.godot/imported/money1.blend-55847a66decb2b901945ba8bde1230b8.scn"
[deps]
source_file="res://assets/Models/money1.blend"
dest_files=["res://.godot/imported/money1.blend-55847a66decb2b901945ba8bde1230b8.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
import_script/path=""
_subresources={}
gltf/naming_version=1
gltf/embedded_image_handling=1
blender/nodes/visible=0
blender/nodes/punctual_lights=true
blender/nodes/cameras=true
blender/nodes/custom_properties=true
blender/nodes/modifiers=1
blender/meshes/colors=false
blender/meshes/uvs=true
blender/meshes/normals=true
blender/meshes/tangents=true
blender/meshes/skins=2
blender/meshes/export_bones_deforming_mesh_only=false
blender/materials/unpack_enabled=true
blender/materials/export_materials=1
blender/animation/limit_playback=true
blender/animation/always_sample=true
blender/animation/group_tracks=true

BIN
assets/Models/money1.blend1 Normal file

Binary file not shown.

View File

@@ -394,10 +394,10 @@ _data = {
[node name="mac10" node_paths=PackedStringArray("flare_light", "anim_player", "barrel_raycast", "casing_ejector", "mag_ejector", "audio_fire", "audio_empty", "audio_reload") instance=ExtResource("1_nb4p5")]
script = ExtResource("2_6i1l4")
gun_name = "Mac 10"
recoil_amount = 0.4
recoil_amount = 1.0
max_ammo = 30
bullet_drop = 0.1
random_spread_amt = 0.3
random_spread_amt = 0.5
fire_pitch_scale_amt = 0.1
flare_light = NodePath("mac10/SpotLight3D")
bullet = ExtResource("3_pyl20")

123
assets/money_1.tscn Normal file

File diff suppressed because one or more lines are too long

View File

@@ -180,7 +180,7 @@ skeleton = NodePath("")
transform = Transform3D(-3.23167e-06, 0, -0.892729, 0, 0.892728, 0, 0.892728, 0, -3.23167e-06, 0, -0.000397999, 0)
shape = SubResource("ConvexPolygonShape3D_vl0tx")
[node name="Area3D" type="Area3D" parent="."]
[node name="Area3D" type="Area3D" parent="." groups=["pickup"]]
collision_layer = 4
collision_mask = 4

View File

@@ -35,9 +35,8 @@ collision_layer = 3
safe_margin = 0.2
script = ExtResource("1_x7wms")
SENSITIVITY = 0.008
BOB_AMP = 0.085
weapon_holder = NodePath("Head/Camera3D/WeaponHolder")
weapon_sway_amount = 0.1
weapon_rotation_amount = 0.1
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
visible = false

View File

@@ -424,10 +424,11 @@ _data = {
script = ExtResource("2_7rsti")
gun_name = "Ye Ol' Revolver"
fire_mode = 1
fov_zoom_amt = 0.95
recoil_amount = 1.0
fov_zoom_amt = 0.96
recoil_amount = 2.0
max_ammo = 6
bullet_damage = 5
bullet_force_mod = 100
bullet_speed = 300
bullet_drop = 0.0
random_spread_amt = 0.1