@@ -5,10 +5,9 @@ struct PlayerComponent :
5
5
public Component
6
6
{
7
7
PlayerComponent ();
8
- VP_JSONBODY (PlayerComponent,
9
- RecoilMode
8
+ VP_JSONBODY (PlayerComponent,RecoilMode
10
9
,HandName, CameraPosName, CameraName, FirePosName, LongswordName
11
- , MaxHP, HP, Sencitive, WalkSpeed, RunSpeed, SlideDuration, StaticFriction, DynamicFriction, JumpForce, AirControlPercent, GravityPower, WalkSoundKey1, WalkSoundKey2, Volume_Walk, RunSoundKey1, RunSoundKey2, Volume_Run, JumpSoundkey, Volume_Jump, SlideSoundkey, Volume_Slide, SitSoundKey, Volume_Sit, HurtSoundKey, Volume_Hurt, RecoilProgress, RecoilReturnTime)
10
+ , MaxHP, HP, Sencitive, WalkSpeed, RunSpeed, SlideDuration, StaticFriction, DynamicFriction, JumpForce, AirControlPercent, GravityPower, RecoilProgress, RecoilReturnTime)
12
11
13
12
VisPred::Game::GunRecoilMode RecoilMode{};
14
13
std::string HandName{};
@@ -38,9 +37,14 @@ struct PlayerComponent :
38
37
// / <summary>
39
38
// / °ÔÀÓ·ÎÁ÷À» À§ÇÑ º¯¼öµé
40
39
// / </summary>
40
+ VPMath::Vector3 DownCameraPos{};
41
41
VPMath::Vector3 SitCameraPos{};
42
+ VPMath::Vector3 SlideCameraPos{};
42
43
float SitHeight{};
43
44
float SitHeightDiff{};
45
+ float SlideHeight{};
46
+ float SlideHeightDiff{};
47
+
44
48
float CamTransDuration = 0 .07f ;
45
49
float CamTransProgress = 0 .f;
46
50
VPMath::Vector3 DefalutCameraPos{};
@@ -52,37 +56,10 @@ struct PlayerComponent :
52
56
uint32_t PreSearchedItemID{};
53
57
uint32_t GunEntityID{};
54
58
uint32_t ThrowingGunEntityID{};
55
- // std::weak_ptr<Entity> SearchedEntity;
56
- // std::weak_ptr<Entity> PreSearchedEntity;
57
- // std::weak_ptr<Entity> GunEntity;
58
- // std::weak_ptr<Entity>ThrowingGunEntity{};
59
-
60
-
61
59
VisPred::Game::GunType ShootType{};
62
60
bool HasGun=false ;
63
61
float GunprogressTime{};
64
62
bool ReadyToShoot{};
65
-
66
- float Volume_Walk { 0 .1f };
67
- float Volume_Run { 0 .1f };
68
- float Volume_Jump { 0 .1f };
69
- float Volume_Slide { 0 .1f };
70
- float Volume_Sit { 0 .1f };
71
- float Volume_Hurt { 0 .1f };
72
- std::string WalkSoundKey1 = " Player_Walk1" ;
73
- std::string WalkSoundKey2 = " Player_Walk2" ;
74
- std::string RunSoundKey1 = " Player_Run1" ;
75
- std::string RunSoundKey2 = " Player_Run2" ;
76
- std::string JumpSoundkey = " Player_Jump" ;
77
- std::string SlideSoundkey = " Player_Slide" ;
78
- std::string SitSoundKey = " Player_Sit" ;
79
- std::string HurtSoundKey = " Player_Hurt" ;
80
- bool Played_Walk1{};
81
- bool Played_Jump{};
82
- bool Played_Slide{};
83
- bool Played_Sit{};
84
- bool Played_Run1{};
85
-
86
63
bool IsRotated=false ;
87
64
bool PlayerCamereShake{};
88
65
bool IsGunRecoiling{};
0 commit comments