chore: created rifle ammo pickup

This commit is contained in:
Sara Gerretsen 2026-02-09 14:06:26 +01:00
parent 18c8154576
commit a575aee294
3 changed files with 91 additions and 0 deletions

Binary file not shown.

View file

@ -0,0 +1,60 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://hmnpg2lm6u02"
path="res://.godot/imported/rifle_ammo_pickup.blend-1eb75be7fa8245442a1ac1a89edb80c2.scn"
[deps]
source_file="res://assets/models/pickups/rifle_ammo_pickup.blend"
dest_files=["res://.godot/imported/rifle_ammo_pickup.blend-1eb75be7fa8245442a1ac1a89edb80c2.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/root_script=null
nodes/apply_root_scale=true
nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false
nodes/use_name_suffixes=true
nodes/use_node_type_suffixes=true
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
animation/import_rest_as_RESET=false
import_script/path=""
materials/extract=0
materials/extract_format=0
materials/extract_path=""
_subresources={}
blender/nodes/visible=0
blender/nodes/active_collection_only=false
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/export_geometry_nodes_instances=false
blender/meshes/gpu_instances=false
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
gltf/naming_version=2

View file

@ -0,0 +1,31 @@
[gd_scene format=3 uid="uid://c4ocislhm428e"]
[ext_resource type="PackedScene" uid="uid://hmnpg2lm6u02" path="res://assets/models/pickups/rifle_ammo_pickup.blend" id="1_nigrf"]
[sub_resource type="SphereShape3D" id="SphereShape3D_txvix"]
[sub_resource type="GDScript" id="GDScript_nigrf"]
resource_name = "RifleAmmoPickup"
script/source = "extends Interactable
func _activated(interactor: PlayerInteractor) -> void:
interactor.get_inventory().pistol_ammo += 10
get_parent().queue_free()
func _process(delta : float):
$\"../rifle_ammo_pickup\".global_rotate(Vector3(0, 1, 0), delta)
"
[node name="RifleAmmoPickup" type="StaticBody3D" unique_id=384637127]
collision_layer = 16
collision_mask = 0
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=41210596]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.4182733, 0)
shape = SubResource("SphereShape3D_txvix")
[node name="Interactable" type="Interactable" parent="." unique_id=1018953245]
script = SubResource("GDScript_nigrf")
[node name="rifle_ammo_pickup" parent="." unique_id=775409181 instance=ExtResource("1_nigrf")]
transform = Transform3D(0.9304751, -0.3154218, 0.1863468, 0.3663551, 0.80111384, -0.4732869, 0, 0.5086508, 0.8609729, 0, 1.3961476, 0)