Initial Commit
This commit is contained in:
16
assets/Weapons/Gun/Bob.gd
Normal file
16
assets/Weapons/Gun/Bob.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
extends Node3D
|
||||
|
||||
|
||||
var pos = Vector2.ZERO
|
||||
var y = 0
|
||||
|
||||
func _ready():
|
||||
pos.x = 0.3 # Replace with function body.
|
||||
pos.y = -1
|
||||
y = -0.5
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
if(transform.basis.x != 0.3 || transform.basis.z != -1):
|
||||
transform.basis.y = y + sin(1 * delta)
|
||||
9
assets/Weapons/Gun/Gun.tres
Normal file
9
assets/Weapons/Gun/Gun.tres
Normal file
@@ -0,0 +1,9 @@
|
||||
[gd_resource type="StandardMaterial3D" load_steps=3 format=3 uid="uid://cui8yu4njh1td"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://670hioiwiwy0" path="res://assets/Weapons/Gun/untitled.png" id="1_2k5kb"]
|
||||
[ext_resource type="Texture2D" uid="uid://bsfkj480gegj3" path="res://assets/Weapons/Gun/Revolver_Material_Metallic.png" id="2_3065p"]
|
||||
|
||||
[resource]
|
||||
albedo_texture = ExtResource("1_2k5kb")
|
||||
metallic = 1.0
|
||||
metallic_texture = ExtResource("2_3065p")
|
||||
173
assets/Weapons/Gun/Revolver.gltf
Normal file
173
assets/Weapons/Gun/Revolver.gltf
Normal file
@@ -0,0 +1,173 @@
|
||||
{
|
||||
"asset": {
|
||||
"generator": "FBX2glTF",
|
||||
"version": "2.0"
|
||||
},
|
||||
"scene": 0,
|
||||
"buffers": [
|
||||
{
|
||||
"byteLength": 66576,
|
||||
"uri": "buffer.bin"
|
||||
}
|
||||
],
|
||||
"bufferViews": [
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 7824,
|
||||
"byteOffset": 0,
|
||||
"target": 34963
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 22032,
|
||||
"byteOffset": 7824,
|
||||
"target": 34962
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 22032,
|
||||
"byteOffset": 29856,
|
||||
"target": 34962
|
||||
},
|
||||
{
|
||||
"buffer": 0,
|
||||
"byteLength": 14688,
|
||||
"byteOffset": 51888,
|
||||
"target": 34962
|
||||
}
|
||||
],
|
||||
"scenes": [
|
||||
{
|
||||
"name": "Root Scene",
|
||||
"nodes": [
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"accessors": [
|
||||
{
|
||||
"componentType": 5123,
|
||||
"type": "SCALAR",
|
||||
"count": 3912,
|
||||
"bufferView": 0,
|
||||
"byteOffset": 0
|
||||
},
|
||||
{
|
||||
"componentType": 5126,
|
||||
"type": "VEC3",
|
||||
"count": 1836,
|
||||
"bufferView": 1,
|
||||
"byteOffset": 0,
|
||||
"min": [
|
||||
-0.015752213075757,
|
||||
-0.00636364426463842,
|
||||
-0.056483943015337
|
||||
],
|
||||
"max": [
|
||||
0.015752213075757,
|
||||
0.131857424974442,
|
||||
0.00461326725780964
|
||||
]
|
||||
},
|
||||
{
|
||||
"componentType": 5126,
|
||||
"type": "VEC3",
|
||||
"count": 1836,
|
||||
"bufferView": 2,
|
||||
"byteOffset": 0
|
||||
},
|
||||
{
|
||||
"componentType": 5126,
|
||||
"type": "VEC2",
|
||||
"count": 1836,
|
||||
"bufferView": 3,
|
||||
"byteOffset": 0
|
||||
}
|
||||
],
|
||||
"samplers": [
|
||||
{}
|
||||
],
|
||||
"materials": [
|
||||
{
|
||||
"name": "Material",
|
||||
"alphaMode": "OPAQUE",
|
||||
"extras": {
|
||||
"fromFBX": {
|
||||
"shadingModel": "Phong",
|
||||
"isTruePBR": false
|
||||
}
|
||||
},
|
||||
"pbrMetallicRoughness": {
|
||||
"baseColorFactor": [
|
||||
0.800000011920929,
|
||||
0.800000011920929,
|
||||
0.800000011920929,
|
||||
1.0
|
||||
],
|
||||
"metallicFactor": 0.400000005960464,
|
||||
"roughnessFactor": 0.229415729641914
|
||||
}
|
||||
}
|
||||
],
|
||||
"meshes": [
|
||||
{
|
||||
"name": "Cube.011",
|
||||
"primitives": [
|
||||
{
|
||||
"material": 0,
|
||||
"mode": 4,
|
||||
"attributes": {
|
||||
"NORMAL": 2,
|
||||
"POSITION": 1,
|
||||
"TEXCOORD_0": 3
|
||||
},
|
||||
"indices": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"nodes": [
|
||||
{
|
||||
"name": "RootNode",
|
||||
"translation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"rotation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"scale": [
|
||||
1.0,
|
||||
1.0,
|
||||
1.0
|
||||
],
|
||||
"children": [
|
||||
1
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Cube.011",
|
||||
"translation": [
|
||||
-1.86264514923096e-09,
|
||||
1.2553083896637,
|
||||
3.58785033226013
|
||||
],
|
||||
"rotation": [
|
||||
-0.707106828689575,
|
||||
0.0,
|
||||
0.0,
|
||||
0.707106709480286
|
||||
],
|
||||
"scale": [
|
||||
100.0,
|
||||
100.0,
|
||||
100.0
|
||||
],
|
||||
"mesh": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
36
assets/Weapons/Gun/Revolver.gltf.import
Normal file
36
assets/Weapons/Gun/Revolver.gltf.import
Normal file
@@ -0,0 +1,36 @@
|
||||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://cnk2fusin4ewy"
|
||||
path="res://.godot/imported/Revolver.gltf-1c0c2c3864f727f53cf3435925795736.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/Weapons/Gun/Revolver.gltf"
|
||||
dest_files=["res://.godot/imported/Revolver.gltf-1c0c2c3864f727f53cf3435925795736.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type="Node3D"
|
||||
nodes/root_name="Scene Root"
|
||||
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
|
||||
skins/use_named_skins=true
|
||||
animation/import=true
|
||||
animation/fps=30
|
||||
import_script/path=""
|
||||
_subresources={
|
||||
"materials": {
|
||||
"Material": {
|
||||
"use_external/enabled": true,
|
||||
"use_external/path": "res://assets/Weapons/Gun/Gun.tres"
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
assets/Weapons/Gun/Revolver_Material_Metallic.png
Normal file
BIN
assets/Weapons/Gun/Revolver_Material_Metallic.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 65 KiB |
36
assets/Weapons/Gun/Revolver_Material_Metallic.png.import
Normal file
36
assets/Weapons/Gun/Revolver_Material_Metallic.png.import
Normal file
@@ -0,0 +1,36 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bsfkj480gegj3"
|
||||
path.s3tc="res://.godot/imported/Revolver_Material_Metallic.png-09ddab5aa35e1ae97c0eefe8e355e0f2.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/Revolver_Material_Metallic.png-09ddab5aa35e1ae97c0eefe8e355e0f2.etc2.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc", "etc2"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/Weapons/Gun/Revolver_Material_Metallic.png"
|
||||
dest_files=["res://.godot/imported/Revolver_Material_Metallic.png-09ddab5aa35e1ae97c0eefe8e355e0f2.s3tc.ctex", "res://.godot/imported/Revolver_Material_Metallic.png-09ddab5aa35e1ae97c0eefe8e355e0f2.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
BIN
assets/Weapons/Gun/buffer.bin
Normal file
BIN
assets/Weapons/Gun/buffer.bin
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 65 KiB |
BIN
assets/Weapons/Gun/untitled.png
Normal file
BIN
assets/Weapons/Gun/untitled.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 33 KiB |
36
assets/Weapons/Gun/untitled.png.import
Normal file
36
assets/Weapons/Gun/untitled.png.import
Normal file
@@ -0,0 +1,36 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://670hioiwiwy0"
|
||||
path.s3tc="res://.godot/imported/untitled.png-171f6a3e6ab8f7068ee4dcf93c2569b8.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/untitled.png-171f6a3e6ab8f7068ee4dcf93c2569b8.etc2.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc", "etc2"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/Weapons/Gun/untitled.png"
|
||||
dest_files=["res://.godot/imported/untitled.png-171f6a3e6ab8f7068ee4dcf93c2569b8.s3tc.ctex", "res://.godot/imported/untitled.png-171f6a3e6ab8f7068ee4dcf93c2569b8.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
Reference in New Issue
Block a user