summaryrefslogtreecommitdiffstats
path: root/assets/characters/base_character/BaseCharacter.gd
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2023-04-24 07:50:00 -0400
committerMalfurious <m@lfurio.us>2023-04-24 07:50:00 -0400
commit97dd79339284b033774ac74a04dd4a255475261a (patch)
tree951d3c29e676c14c9f165b32143e9aaae8ec4f6a /assets/characters/base_character/BaseCharacter.gd
parent53091fce91ce03aae208bd0c61ee28830b34387d (diff)
downloadproject-s-97dd79339284b033774ac74a04dd4a255475261a.tar.gz
project-s-97dd79339284b033774ac74a04dd4a255475261a.zip
Move Godot 3 project to a new subdirectoryHEADmaster
Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'assets/characters/base_character/BaseCharacter.gd')
-rw-r--r--assets/characters/base_character/BaseCharacter.gd22
1 files changed, 0 insertions, 22 deletions
diff --git a/assets/characters/base_character/BaseCharacter.gd b/assets/characters/base_character/BaseCharacter.gd
deleted file mode 100644
index f9df8e9..0000000
--- a/assets/characters/base_character/BaseCharacter.gd
+++ /dev/null
@@ -1,22 +0,0 @@
-extends KinematicBody
-
-export var material : Material = null
-export var is_firing = false
-export var look_angle = 0
-export var weapon_pitch = 0
-export var weapon_pitch_bias = deg2rad(20)
-
-func _ready():
- look_angle = rotation.y
- if material != null:
- $Body.set("material/0", material)
- $GooGun.projectile_material = material
-
-func _process(_delta):
- var effective_weapon_pitch = weapon_pitch - weapon_pitch_bias if is_firing else weapon_pitch
- effective_weapon_pitch = clamp(effective_weapon_pitch, deg2rad(-90), deg2rad(90))
- $GooGun.is_firing = is_firing
- $GooGun.look_angle = look_angle
- $GooGun.weapon_pitch = effective_weapon_pitch
- $GooGun.rotation.x = effective_weapon_pitch
- rotation.y = look_angle