summaryrefslogtreecommitdiffstats
path: root/assets/weapons/goo_gun
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2022-07-22 05:06:22 -0400
committerMalfurious <m@lfurio.us>2022-07-22 05:06:22 -0400
commitf1923b54231daac260950baecd0377f49b2ab641 (patch)
tree07e6201df08b817f6eb1695976188f960de5e6ef /assets/weapons/goo_gun
parent1f534358c264560662793ff72bfcc57d3d155b5b (diff)
downloadproject-s-f1923b54231daac260950baecd0377f49b2ab641.tar.gz
project-s-f1923b54231daac260950baecd0377f49b2ab641.zip
Tweak Goo Gun bullet physics to better mimic reference weapon
Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'assets/weapons/goo_gun')
-rw-r--r--assets/weapons/goo_gun/Bullet.tscn2
-rw-r--r--assets/weapons/goo_gun/GooGun.gd4
2 files changed, 4 insertions, 2 deletions
diff --git a/assets/weapons/goo_gun/Bullet.tscn b/assets/weapons/goo_gun/Bullet.tscn
index 3971cc1..4a1700c 100644
--- a/assets/weapons/goo_gun/Bullet.tscn
+++ b/assets/weapons/goo_gun/Bullet.tscn
@@ -9,6 +9,8 @@ material = ExtResource( 1 )
[node name="Bullet" type="RigidBody"]
transform = Transform( 0.3, 0, 0, 0, 0.3, 0, 0, 0, 0.3, 0, 0, 0 )
+gravity_scale = 5.0
+linear_damp = 2.0
[node name="MeshInstance" type="MeshInstance" parent="."]
mesh = SubResource( 1 )
diff --git a/assets/weapons/goo_gun/GooGun.gd b/assets/weapons/goo_gun/GooGun.gd
index 4839f09..6a6758d 100644
--- a/assets/weapons/goo_gun/GooGun.gd
+++ b/assets/weapons/goo_gun/GooGun.gd
@@ -1,9 +1,9 @@
extends Spatial
export var is_firing = false
-export var fire_rate = 0.1
+export var fire_rate = 0.075
export var projectile_spread = 0 #TODO
-export var projectile_scalar = 25
+export var projectile_scalar = 40
export var look_angle = 0
export var weapon_pitch = 0