full multiplayer plus new models
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
[ext_resource type="Texture2D" uid="uid://b54d5dc4jmlau" path="res://PCs/Universal/ClassCards/BombLauncher/bomb.png" id="3_ilhep"]
|
||||
|
||||
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_bbpul"]
|
||||
bounce = 0.3
|
||||
bounce = 0.6
|
||||
|
||||
[node name="Bomb" instance=ExtResource("1_kf2wi")]
|
||||
physics_material_override = SubResource("PhysicsMaterial_bbpul")
|
||||
|
@ -1,6 +1,7 @@
|
||||
extends ProjectileTower
|
||||
class_name BombLauncherTower
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
super._ready()
|
||||
force = sqrt((target_range * ProjectSettings.get_setting("physics/3d/default_gravity")) / sin(2 * 45))
|
||||
@ -11,7 +12,7 @@ func aim():
|
||||
var pos = Vector2(global_position.x, global_position.z)
|
||||
var t_pos = Vector2(targeted_enemy.global_position.x, targeted_enemy.global_position.z)
|
||||
var x = pos.distance_to(t_pos)
|
||||
var y = targeted_enemy.global_position.y - global_position.y
|
||||
var y = targeted_enemy.global_position.y - yaw_model.global_position.y
|
||||
var v = force
|
||||
var g = ProjectSettings.get_setting("physics/3d/default_gravity")
|
||||
var v2 = pow(v, 2)
|
||||
|
@ -1,11 +1,19 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://d2cch7qrwocg8"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://d2cch7qrwocg8"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://t0b32qb8eub2" path="res://Scenes/Towers/projectile_tower.tscn" id="1_r8hbo"]
|
||||
[ext_resource type="Script" path="res://PCs/Universal/ClassCards/BombLauncher/tower_bomb_launcher.gd" id="2_vlaa6"]
|
||||
[ext_resource type="PackedScene" uid="uid://c8oq5unisjqne" path="res://PCs/Universal/ClassCards/BombLauncher/bomb_projectile.tscn" id="3_562if"]
|
||||
[ext_resource type="Resource" uid="uid://8eaecilvan23" path="res://PCs/Universal/ClassCards/BombLauncher/tower_stats.tres" id="4_xgwj1"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://ckst32066g4vg" path="res://bombamodel.res" id="5_yixga"]
|
||||
|
||||
[node name="BombLauncherTower" instance=ExtResource("1_r8hbo")]
|
||||
script = ExtResource("2_vlaa6")
|
||||
projectile_scene = ExtResource("3_562if")
|
||||
stats = ExtResource("4_xgwj1")
|
||||
|
||||
[node name="Pitch" parent="." index="1"]
|
||||
visible = false
|
||||
|
||||
[node name="Yaw" parent="." index="2"]
|
||||
transform = Transform3D(0.4, 0, 0, 0, 0.4, 0, 0, 0, 0.4, 0, 0.870628, 0)
|
||||
mesh = ExtResource("5_yixga")
|
||||
|
@ -1,11 +1,19 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://c3fqlkytyc62u"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://c3fqlkytyc62u"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bqdllitxbbpyp" path="res://Scenes/Weapons/projectile_weapon.tscn" id="1_gbycb"]
|
||||
[ext_resource type="Script" path="res://PCs/Universal/ClassCards/BombLauncher/weapon_bomb_launcher.gd" id="2_g5ihb"]
|
||||
[ext_resource type="Resource" uid="uid://co6eorobj1xuu" path="res://PCs/Universal/ClassCards/BombLauncher/weapon_stats.tres" id="3_73ol1"]
|
||||
[ext_resource type="PackedScene" uid="uid://c8oq5unisjqne" path="res://PCs/Universal/ClassCards/BombLauncher/bomb_projectile.tscn" id="3_jxt6m"]
|
||||
[ext_resource type="Texture2D" uid="uid://3qcdx7n440sc" path="res://PCs/Universal/ClassCards/BombLauncher/grenade_launcher.png" id="5_iyrt8"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4fobv"]
|
||||
atlas = ExtResource("5_iyrt8")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
|
||||
[node name="BombLauncherWeapon" instance=ExtResource("1_gbycb")]
|
||||
script = ExtResource("2_g5ihb")
|
||||
projectile_scene = ExtResource("3_jxt6m")
|
||||
stats = ExtResource("3_73ol1")
|
||||
|
||||
[node name="Sprite3D" parent="." index="0"]
|
||||
texture = SubResource("AtlasTexture_4fobv")
|
||||
|
Reference in New Issue
Block a user