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 ------------------#
# Demarche (Attend, Marche, Cours, sprint
2023-11-24 23:00:05 +00:00
enum GAIT {WAITING, WALKING , RUNNING , SPRINTING}
2023-11-19 19:41:38 +00:00
# Sol, Air, Couverture, poupee de chiffon
2023-11-24 23:00:05 +00:00
enum MOVEMENT_STATE {NONE , GROUNDED , IN_AIR , MANTLING, RAGDOLL}
2023-11-19 19:41:38 +00:00
#
2023-11-24 23:00:05 +00:00
enum MOVEMENT_ACTION {NONE ,LOW_MANTLE , HIGH_MANTLE , ROLLING , GETTING_UP}
2023-11-19 19:41:38 +00:00
# Fusis, Pistolet
2023-11-24 23:00:05 +00:00
enum OVERLAY_STATE {DEFAULT , RIFLE , PISTOL}
2023-11-19 19:41:38 +00:00
#
2023-11-24 23:00:05 +00:00
enum ROTATION_MODE {VELOCITY_DIRECTION , LOOKING_DIRECTION , AIMING}
2023-11-19 19:41:38 +00:00
# Position (debout, accroupi)
2023-11-24 23:00:05 +00:00
enum STANCE {STANDING , CROUCHING}
2023-11-19 19:41:38 +00:00
#
2023-11-24 23:00:05 +00:00
enum VIEW_MODE {THIRD_PERSON , FIRST_PERSON}
2023-11-19 19:41:38 +00:00
#
2023-11-24 23:00:05 +00:00
enum VIEW_ANGLE {RIGHT_SHOULDER , LEFT_SHOULDER , HEAD}
2023-11-19 19:41:38 +00:00
# Type de cape/manteau
2023-11-24 23:00:05 +00:00
enum MANTLE_TYPE {HIGH_MANTLE , LOW_MANTLE, FALLING_CATCH}
2023-11-19 19:41:38 +00:00
# Direction du mouvement (devant, droite, gauche, arriere)
2023-11-24 23:00:05 +00:00
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)