bazar_alea/client/player/Global.gd

29 lines
1 KiB
GDScript3
Raw Normal View History

2023-11-14 21:41:08 +00:00
extends Node
#------------------ Player Enums ------------------#
2023-11-20 22:18:02 +00:00
# Demarche (Marcher, Courir, Pic de vitesse
enum GAIT {walking , running , sprinting}
2023-11-19 19:41:38 +00:00
# Sol, Air, Couverture, poupee de chiffon
enum MOVEMENT_STATE {none , grounded , in_air , mantling, ragdoll}
#
enum MOVEMENT_ACTION {none ,low_mantle , high_mantle , rolling , getting_up}
# Fusis, Pistolet
enum OVERLAY_STATE {default , rifle , pistol}
#
enum ROTATION_MODE {velocity_direction , looking_direction , aiming}
# Position (debout, accroupi)
enum STANCE {standing , crouching}
#
enum VIEW_MODE {third_person , first_person}
#
enum VIEW_ANGLE {right_shoulder , left_shoulder , head}
# Type de cape/manteau
enum MANTLE_TYPE {high_mantle , low_mantle, falling_catch}
# Direction du mouvement (devant, droite, gauche, arriere)
enum MOVEMENT_DIRECTION {forward , right, left, backward}
2023-11-14 21:41:08 +00:00
func map_range_clamped(value,InputMin,InputMax,OutputMin,OutputMax):
value = clamp(value,InputMin,InputMax)
return ((value - InputMin) / (InputMax - InputMin) * (OutputMax - OutputMin) + OutputMin)