quick tweaks
This commit is contained in:
@@ -128,8 +128,6 @@ pickupType = 0
|
||||
|
||||
[node name="rocketlauncher1_pickup" parent="." instance=ExtResource("9_r8miu")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -25, 1, 8)
|
||||
pickupType = 0
|
||||
|
||||
[node name="mac10_pickup" parent="." instance=ExtResource("10_pos4p")]
|
||||
transform = Transform3D(0.866025, -0.5, 0, 0.5, 0.866025, 0, 0, 0, 1, -28, 1, 10)
|
||||
pickupType = 0
|
||||
|
||||
@@ -1169,7 +1169,6 @@ gun_2 = ExtResource("3_umpon")
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("2_f87c2")]
|
||||
transform = Transform3D(-0.866025, 0, -0.5, 0, 1, 0, 0.5, 0, -0.866025, -16.0295, 1.4435, 12.1166)
|
||||
AUDIO = false
|
||||
weapon_sway_amount = 0.07
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
|
||||
@@ -15,6 +15,7 @@ var player
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
add_to_group("pickup")
|
||||
add_to_group("spawned")
|
||||
#find player
|
||||
player = level_control.player
|
||||
|
||||
|
||||
@@ -77,8 +77,8 @@ func _process(delta):
|
||||
turret_look_next.look_at(player.global_position,Vector3.UP)
|
||||
turret_look.rotation = lerp(turret_look.rotation,turret_look_next.rotation,delta * turret_look_speed)
|
||||
else:
|
||||
body.rotation.y = lerp(body.rotation.y, body.rotation.y + 10, delta * .5)
|
||||
turret_look.rotation.y = lerp(turret_look.rotation.y,turret_look.rotation.y - 5,delta * 1)
|
||||
body.rotation.y = lerp(body.rotation.y, body.rotation.y + 10, delta * .1)
|
||||
turret_look.rotation.y = lerp(turret_look.rotation.y,turret_look.rotation.y - 10,delta * .5)
|
||||
|
||||
#apply gravity
|
||||
if !is_on_floor():
|
||||
|
||||
Reference in New Issue
Block a user