diff options
author | Malfurious <m@lfurio.us> | 2022-10-30 01:59:06 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2022-10-30 01:59:06 -0400 |
commit | 57eaeff00597f8ae6289b935dec0c408e21759ab (patch) | |
tree | 37d052e275b1937a760350339be465f19cc4acf3 /assets/characters | |
parent | acaea7bf1657f02670c2551357be178b0bf16f75 (diff) | |
download | project-s-57eaeff00597f8ae6289b935dec0c408e21759ab.tar.gz project-s-57eaeff00597f8ae6289b935dec0c408e21759ab.zip |
Convert script tabs to spaces
and other whitespace fixes!
Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to '')
-rw-r--r-- | assets/characters/base_character/BaseCharacter.gd | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/assets/characters/base_character/BaseCharacter.gd b/assets/characters/base_character/BaseCharacter.gd index 5d1b013..f9df8e9 100644 --- a/assets/characters/base_character/BaseCharacter.gd +++ b/assets/characters/base_character/BaseCharacter.gd @@ -7,16 +7,16 @@ 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 + 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 + 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 |