33 lines
663 B
GDScript3
33 lines
663 B
GDScript3
|
class_name RunnerAbility extends Resource
|
||
|
|
||
|
@export var animation := &'ability'
|
||
|
@export var sound: AudioStream
|
||
|
@export var impetus_multiplier: float = 1.0
|
||
|
|
||
|
func available(_runner: Runner) -> bool:
|
||
|
return true
|
||
|
|
||
|
func begin(_runner: Runner) -> void:
|
||
|
pass
|
||
|
|
||
|
func integrate_forces(
|
||
|
_runner: Runner,
|
||
|
_body_state: PhysicsDirectBodyState3D
|
||
|
) -> void:
|
||
|
pass
|
||
|
|
||
|
func orientation(runner: Runner) -> Vector3:
|
||
|
return runner.linear_velocity
|
||
|
|
||
|
func animation_speed(_runner: Runner) -> float:
|
||
|
return 1.0
|
||
|
|
||
|
func end(_runner: Runner) -> void:
|
||
|
pass
|
||
|
|
||
|
func on_repeated_input(_runner: Runner) -> void:
|
||
|
pass
|
||
|
|
||
|
func passive(_runner: Runner, _delta: float, _active: bool) -> void:
|
||
|
pass
|