npc move procvess

This commit is contained in:
VDH
2025-10-01 15:07:18 +07:00
parent 1b2de221b4
commit 4198c2f968
14 changed files with 79053 additions and 78 deletions
@@ -7112,7 +7112,349 @@ AnimationClip:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 0, y: 0, z: 0}
m_ClipBindingConstant:
genericBindings: []
genericBindings:
- serializedVersion: 2
path: 1548992875
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 739261982
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3165594511
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3588154945
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 177866777
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2077104094
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 583775788
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2832288586
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3624317076
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3150112662
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 1446295590
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 536822058
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 889917279
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2073034191
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2048140909
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 1270510562
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 1882584463
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 824592154
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 582302429
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3588154945
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 177866777
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2077104094
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 583775788
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2832288586
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3624317076
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3150112662
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 1446295590
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 536822058
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 889917279
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2073034191
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2048140909
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 1270510562
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 1882584463
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 824592154
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 582302429
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 1548992875
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 739261982
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3165594511
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
pptrCurveMapping: []
m_AnimationClipSettings:
serializedVersion: 2
@@ -7124,7 +7466,7 @@ AnimationClip:
m_Level: 0
m_CycleOffset: 0
m_HasAdditiveReferencePose: 0
m_LoopTime: 0
m_LoopTime: 1
m_LoopBlend: 0
m_LoopBlendOrientation: 0
m_LoopBlendPositionY: 0
@@ -8768,7 +8768,673 @@ AnimationClip:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 0, y: 0, z: 0}
m_ClipBindingConstant:
genericBindings: []
genericBindings:
- serializedVersion: 2
path: 1553072196
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 1553072196
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3794494049
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2918168913
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 841542414
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 1877093891
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3038080548
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 4233991993
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 547903152
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2510321711
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3697139523
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 1541605989
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 486769470
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 1954387546
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 178413764
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2178717712
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3257014812
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 1599663298
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2057707112
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 4239499392
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2739976190
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 503811722
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 930716125
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2085615554
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3611313351
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 707874989
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 1566896129
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 1389862394
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2353132389
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 183424841
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2453772014
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2080827023
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2866186647
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3197222909
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3460359746
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 582302429
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3794494049
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2918168913
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 841542414
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 1877093891
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3038080548
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 4233991993
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 547903152
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2510321711
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3697139523
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 1541605989
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 486769470
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 1954387546
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 178413764
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2178717712
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3257014812
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 1599663298
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2057707112
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 4239499392
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2739976190
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 503811722
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 930716125
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2085615554
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3611313351
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 707874989
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 1566896129
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 1389862394
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2353132389
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 183424841
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2453772014
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2080827023
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2866186647
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2330114996
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3197222909
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2482604789
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 3460359746
attribute: 1
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 582302429
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2330114996
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
- serializedVersion: 2
path: 2482604789
attribute: 2
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
isIntCurve: 0
isSerializeReferenceCurve: 0
pptrCurveMapping: []
m_AnimationClipSettings:
serializedVersion: 2
@@ -8780,7 +9446,7 @@ AnimationClip:
m_Level: 0
m_CycleOffset: 0
m_HasAdditiveReferencePose: 0
m_LoopTime: 0
m_LoopTime: 1
m_LoopBlend: 0
m_LoopBlendOrientation: 0
m_LoopBlendPositionY: 0
@@ -31,11 +31,24 @@ public class CECNPCMan : CECObject, IMsgHandler
{
case long value when value == EC_MsgDef.MSG_NM_NPCINFO: OnMsgNPCInfo(Msg); break;
case long value when value == EC_MsgDef.MSG_NM_NPCMOVE: OnMsgNPCMove(Msg); break;
case long value when value == EC_MsgDef.MSG_NM_NPCSTOPMOVE: OnMsgNPCStopMove(Msg); break;
}
}
return true;
}
private bool OnMsgNPCStopMove(ECMSG msg)
{
cmd_object_stop_move pCmd = EC_Utility.ByteArrayToStructure<cmd_object_stop_move>((byte[])msg.dwParam1);
CECNPC pNPC = SeekOutNPC(pCmd.id);
BrewMonster.Logger.Log("HoangDev : OnMsgNPCStopMove pNPC:" + pNPC);
if (pNPC)
pNPC.StopMoveTo(pCmd);
return true;
}
private bool OnMsgNPCMove(ECMSG msg)
{
cmd_object_move pCmd = EC_Utility.ByteArrayToStructure<cmd_object_move>((byte[])msg.dwParam1);
+251 -20
View File
@@ -13,7 +13,7 @@ public class CECNPC : CECObject
protected INFO m_NPCInfo;
protected private uint m_dwStates;
protected private uint m_dwStates2;
protected private A3DVECTOR3 m_vServerPos;
protected private Vector3 m_vServerPos;
protected private int m_iRandomProp;
protected private int m_iMoveEnv;
protected int m_idMaster;
@@ -24,7 +24,7 @@ public class CECNPC : CECObject
protected OtherPlayer_Move_Info m_cdr;
protected float m_fTouchRad;
protected ROLEBASICPROP m_BasicProps;
protected A3DVECTOR3 m_vMoveDir;
protected Vector3 m_vMoveDir;
protected int m_iPassiveMove;
protected bool m_bStopMove;
protected bool m_bStartFight;
@@ -33,9 +33,13 @@ public class CECNPC : CECObject
protected int m_idSelTarget;
protected int m_iCurWorkType;
protected int m_iCurWork;
protected int m_DisappearCnt;
protected bool m_bAboutToDie;
protected Vector3 m_vStopDir;
protected ROLEEXTPROP m_ExtProps;
protected CECNPCModelPolicy m_pNPCModelPolicy;
[SerializeField] protected float m_fMoveSpeed;
[SerializeField] protected CharacterController _characterController;
protected static CECStringTab m_ActionNames;
@@ -43,7 +47,7 @@ public class CECNPC : CECObject
public virtual void SetUpCECNPC(CECNPCMan pNPCMan)
{
base.SetUpCECObject();
m_vServerPos = new A3DVECTOR3();
m_vServerPos = new Vector3();
m_iCID = (int)ClassID.OCID_NPC;
}
public virtual bool Init(int tid, in info_npc info, ReadOnlySpan<byte> packet, int infoOffset)
@@ -53,17 +57,22 @@ public class CECNPC : CECObject
m_NPCInfo.vis_tid = info.vis_tid;
m_dwStates = (uint)info.state;
m_dwStates2 = (uint)info.state2;
m_vServerPos = info.pos;
m_vServerPos = EC_Utility.ToVector3(info.pos);
m_iRandomProp = (info.state & 0x0f00) >> 8;
m_pNPCModelPolicy = new CECNPCModelDefaultPolicy(this);
m_idSelTarget = 0;
m_iCurWorkType = -1;
m_fMoveSpeed = 1.0f;
m_iCurWork = 0;
m_bStartFight = false;
m_bAboutToDie = false;
m_DisappearCnt = 5000;
m_BasicProps = new ROLEBASICPROP(true); // struct mặc định, các trường số = 0, mảng đã tạo
m_ExtProps = new ROLEEXTPROP(true);
_characterController = GetComponent<CharacterController>();
m_iMoveEnv = (int)((info.state & PlayerNPCState.GP_STATE_NPC_FLY) != 0 ? EnviromentMoveType.MOVEENV_AIR
: (info.state & PlayerNPCState.GP_STATE_NPC_SWIM) != 0 ? EnviromentMoveType.MOVEENV_WATER
: EnviromentMoveType.MOVEENV_GROUND);
@@ -128,7 +137,7 @@ public class CECNPC : CECObject
var pHost = GameController.Instance.GetHostPlayer();
if (pHost != null)
{
m_fDistToHost = Vector3.Distance(EC_Utility.ToVector3(m_vServerPos), pHost.transform.position);
m_fDistToHost = Vector3.Distance(m_vServerPos, pHost.transform.position);
m_fDistToHostH = Vector2.Distance(
new Vector2(m_vServerPos.x, m_vServerPos.z),
new Vector2(pHost.transform.position.x, pHost.transform.position.z));
@@ -136,6 +145,123 @@ public class CECNPC : CECObject
return true;
}
private void Update()
{
switch (m_iCurWork)
{
case (int)WorkID.WORK_MOVE: TickWork_Move(Time.deltaTime); break;
}
}
public void TickWork_Move(float dwDeltaTime)
{
if (m_bAboutToDie)
{
WorkFinished((int)WorkID.WORK_MOVE);
}
else if (MovingTo(dwDeltaTime))
{
/* if (!IsDirFixed())
{
SetDestDirAndUp(m_vStopDir, g_vAxisY, 150);
}*/
WorkFinished((int)WorkID.WORK_MOVE);
// when stopped, we should rebuild the convex brushes for collision detection.
//RebuildTraceBrush();
}
}
public bool MovingTo(float deltaTime)
{
BrewMonster.Logger.LogError("HoangDev : MovingTo ");
bool reachedDestination = false;
Vector3 curPos = transform.position;
if (m_bStopMove)
{
// Tính hướng đến serverPos
Vector3 dir = (m_vServerPos - curPos);
float dist = dir.magnitude;
if (dist > 0.001f)
{
dir.Normalize();
// Di chuyển một bước
Vector3 moveDelta = dir * m_fMoveSpeed * deltaTime;
if (moveDelta.magnitude >= dist)
{
// Nếu vượt quá đích thì teleport
_characterController.enabled = false;
transform.position = m_vServerPos;
_characterController.enabled = true;
reachedDestination = true;
}
else
{
_characterController.Move(moveDelta);
}
}
}
else // đang move bình thường
{
float dist = (m_vServerPos - curPos).magnitude;
BrewMonster.Logger.LogError("HoangDev : MovingTo dist : " + dist);
if (IsLag(dist))
{
// Teleport nếu lag xa
_characterController.enabled = false;
transform.position = m_vServerPos;
_characterController.enabled = true;
m_vStopDir = transform.forward;
return true;
}
Vector3 dir = m_vMoveDir.normalized;
Vector3 moveDelta = dir * m_fMoveSpeed * deltaTime;
BrewMonster.Logger.LogError($"HoangDev : MovingTo dist : {moveDelta } speed : {m_fMoveSpeed} dir : {dir} " +
$"deltaTime : {deltaTime}");
_characterController.Move(moveDelta);
}
return reachedDestination;
}
public void WorkFinished(int iWorkID)
{
// Note: below judge can prevent many problems when we attempt to
// finish a work but don't assure we are doing this work
BrewMonster.Logger.Log("HoangDev : WorkFinished :"+ iWorkID);
if (m_iCurWork != iWorkID)
return;
// ASSERT equivalent
if (m_iCurWork <= 0 || m_iCurWorkType < 0)
{
throw new InvalidOperationException("Invalid work state in WorkFinished");
}
// Release current work
ReleaseWork(m_iCurWorkType);
for (int i = m_iCurWorkType - 1; i >= 0; i--)
{
if (m_aWorks[i] != 0) // giả định m_aWorks là mảng int workIDs
{
m_iCurWorkType = i;
StartWorkByID(m_aWorks[i], 0);
break;
}
}
// clear passive move flag
if (iWorkID == (int)WorkID.WORK_MOVE)
m_iPassiveMove = 0;
}
public static bool InitStaticRes()
{
m_ActionNames = new CECStringTab();
@@ -260,25 +386,134 @@ public class CECNPC : CECObject
|| iAct == (int)NPCActionIndex.ACT_ATTACK2
|| iAct == (int)NPCActionIndex.ACT_NPC_ATTACK;
}
public void StopMoveTo(cmd_object_stop_move cmd)
{
/* if (IsDead())
return;*/
int iMoveMode = cmd.move_mode & (int)GPMoveMode.GP_MOVE_MASK;
m_vMoveDir = EC_Utility.ToVector3(cmd.dest) - transform.position;
m_bStopMove = true;
m_fMoveSpeed = EC_Utility.FIX8TOFLOAT(cmd.sSpeed);
m_vServerPos = EC_Utility.ToVector3(cmd.dest);
m_vStopDir = EC_Utility.glb_DecompressDirH(cmd.dir);
// only store the passive move mode
m_iPassiveMove = (iMoveMode == (int)GPMoveMode.GP_MOVE_PUSH ||
iMoveMode == (int)GPMoveMode.GP_MOVE_PULL ||
iMoveMode == (int)GPMoveMode.GP_MOVE_BLINK)
? iMoveMode : 0;
if (IsDirFixed())
{
// hướng cố định, set luôn
transform.forward = m_vStopDir;
}
float fDist = m_vMoveDir.normalized.magnitude; // Normalize() trả về float trong C++, ở đây cần xử lý lại
m_vMoveDir.Normalize();
// Trong các trường hợp dưới thì kéo NPC về đích
if (iMoveMode != (int)GPMoveMode.GP_MOVE_RETURN &&
iMoveMode != (int)GPMoveMode.GP_MOVE_PUSH &&
iMoveMode != (int)GPMoveMode.GP_MOVE_PULL)
{
bool bPull = false;
if (IsLag(fDist))
{
// case 1
bPull = true;
}
else if (fDist < 1.0f)
{
// case 2
Vector3 vDirH = m_vMoveDir;
vDirH.y = 0.0f;
vDirH.Normalize();
if (Vector3.Dot(vDirH, m_vStopDir) < 0.7f)
bPull = true;
}
else if (iMoveMode == (int)GPMoveMode.GP_MOVE_BLINK)
{
// case 3
bPull = true;
}
if (bPull)
{
SetPos(EC_Utility.ToVector3(cmd.dest));
WorkFinished((int)WorkID.WORK_MOVE);
return;
}
}
m_cdr.bTraceGround = true;
if ((cmd.move_mode & (int)GPMoveMode.GP_MOVE_AIR) != 0)
{
m_iMoveEnv = (int) MoveEnvironment.MOVEENV_AIR;
m_cdr.bTraceGround = false;
}
else if ((cmd.move_mode & (int)GPMoveMode.GP_MOVE_WATER) != 0)
{
m_iMoveEnv = (int)MoveEnvironment.MOVEENV_WATER;
m_cdr.bTraceGround = false;
}
else
{
m_iMoveEnv = (int)MoveEnvironment.MOVEENV_GROUND;
if (iMoveMode == (int)GPMoveMode.GP_MOVE_FALL ||
iMoveMode == (int)GPMoveMode.GP_MOVE_FLYFALL)
{
m_cdr.bTraceGround = false;
}
}
if (!IsDirFixed() && m_iPassiveMove == 0)
{
Vector3 vDir = m_vMoveDir;
vDir.y = 0.0f;
if (vDir != Vector3.zero)
{
vDir.Normalize();
}
}
if (m_aWorks[(int)WorkType.WT_NORMAL] != (int)WorkID.WORK_MOVE)
{
StartWork((int)WorkType.WT_NORMAL, (int)WorkID.WORK_MOVE);
if (m_iPassiveMove == 0)
{
// Play run or walk action when not passive move
PlayMoveAction(iMoveMode);
}
}
}
void SetPos(Vector3 pos)
{
transform.position = pos;
}
public void MoveTo(cmd_object_move Cmd)
{
BrewMonster.Logger.LogError("HoangDev : MoveTo");
if (Cmd.use_time == 0)
return;
var dest = EC_Utility.ToVector3(Cmd.dest);
m_vServerPos = dest;
m_vMoveDir = dest - transform.position;
float fDist = m_vMoveDir.magnitude; // lấy độ dài ban đầu
m_vMoveDir.Normalize(); // giả sử Normalize() trả về độ dài trước khi chuẩn hóa
m_vServerPos = Cmd.dest;
m_vMoveDir = Cmd.dest - EC_Utility.ToA3DVECTOR3(transform.position);
float fDist = m_vMoveDir.Normalize(); // giả sử Normalize() trả về độ dài trước khi chuẩn hóa
BrewMonster.Logger.LogError("HoangDev : MoveTo : Cmd.use_time");
// If destination position is too far, forcely pull player
if (IsLag(fDist))
{
transform.position = EC_Utility.ToVector3(Cmd.dest);
return;
}
BrewMonster.Logger.LogError("HoangDev : MoveTo : IsLag");
int iMoveMode = Cmd.move_mode & (int)GPMoveMode.GP_MOVE_MASK;
@@ -290,7 +525,6 @@ public class CECNPC : CECObject
UnityEngine.Debug.Assert(false, "Invalid move mode: push/pull inside MoveTo");
return;
}
BrewMonster.Logger.LogError("HoangDev : MoveTo : (int)GPMoveMode.GP_MOVE_PUSH");
m_cdr.bTraceGround = true;
@@ -314,7 +548,7 @@ public class CECNPC : CECObject
}
m_fMoveSpeed = fDist / (Cmd.use_time * 0.001f);
BrewMonster.Logger.LogError($"HoangDev: m_fMoveSpeed:{m_fMoveSpeed}\nfDist:{fDist}\nCmd.use_time:{Cmd.use_time}");
// Adjust NPC's direction
/*if (!IsDirFixed())
{
@@ -327,19 +561,19 @@ public class CECNPC : CECObject
}
}
*/
BrewMonster.Logger.LogError("HoangDev : MoveTo : m_aWorks[(int)WorkType.WT_NORMAL] " + m_aWorks[(int)WorkType.WT_NORMAL]);
if (m_aWorks[(int)WorkType.WT_NORMAL] != (int)WorkID.WORK_MOVE || ShouldPlayNewActionFor(iMoveMode))
{
StartWork((int)WorkType.WT_NORMAL, (int)WorkID.WORK_MOVE);
// Play run or walk action
BrewMonster.Logger.LogError("HoangDev : MoveTo : PlayMoveAction");
PlayMoveAction(iMoveMode);
}
}
public bool IsDirFixed() { return (m_dwStates & PlayerNPCState.GP_STATE_NPC_FIXDIR) != 0 ? true : false; }
public void ReleaseWork(int iWorkType)
{
BrewMonster.Logger.LogError("HoangDev : ReleaseWorkl :"+ iWorkType);
Debug.Assert(iWorkType >= 0 && iWorkType < (int)WorkType.NUM_WORKTYPE);
switch (m_aWorks[iWorkType])
@@ -360,7 +594,7 @@ public class CECNPC : CECObject
{
// Để tránh trường hợp WORK_MOVE bị ghi đè bởi WORK_SPELL hoặc WORK khác
// dẫn đến NPC sai vị trí, ta sẽ kiểm tra và kéo NPC về đúng server position
var pos = EC_Utility.ToVector3(m_vServerPos);
var pos = m_vServerPos;
var vDelta = pos - transform.position;
float fDist = vDelta.magnitude; // Vector3.magnitude trong Unity
@@ -559,8 +793,6 @@ public class CECNPC : CECObject
bool IsPetNPC() { return (int)ClassID.OCID_PET == m_iCID; }
public void PlayMoveAction(int iMoveMode)
{
BrewMonster.Logger.LogError("HoangDev : MoveTo : PlayMoveAction 2");
// Play run or walk aciton
if (iMoveMode == (int)GPMoveMode.GP_MOVE_RUN || iMoveMode == (int)GPMoveMode.GP_MOVE_RETURN)
{
@@ -581,8 +813,6 @@ public class CECNPC : CECObject
}
public void PlayModelAction(int iAction, bool bRestart = false)
{
BrewMonster.Logger.LogError("HoangDev : MoveTo : PlayModelAction 3");
m_iAction = iAction;
/* if (IsDead())
{
@@ -609,6 +839,7 @@ public class CECNPC : CECObject
}*/
m_pNPCModelPolicy.PlayModelAction(iAction, bRestart);
}
bool IsDisappearing() { return m_DisappearCnt == 0 ? true : false; }
bool IsLag(float fDist)
{
@@ -25,19 +25,15 @@ public class CECNPCModelDefaultPolicy
sb.Append(bAttackStart ? "Æð" : "Âä");
}
// Thêm chuỗi môi trường lien quan toi pet
//string szEnv = GetActionEnvString();
/* if (!string.IsNullOrEmpty(szEnv))
{
sb.Append("_");
sb.Append(szEnv);
}*/
// Xử lý loại bỏ dấu nháy kép (nếu có)
string result = sb.ToString().Replace("\"", "");
return sb.ToString();
// Trả về kết quả đã clean
return result;
}
public override bool PlayModelAction(int iAction, bool bRestart)
{
BrewMonster.Logger.LogError("HoangDev : MoveTo : PlayModelAction 4 : " + iAction);
/* if (m_pNPCModel == null)
{
@@ -101,7 +97,6 @@ public class CECNPCModelDefaultPolicy
}
else
{
BrewMonster.Logger.LogError("HoangDev : MoveTo : PlayModelAction 4 : " + GetActionName(iAction));
result = _npcVisual.TryPlayAction(GetActionName(iAction));
}
return result;
+16 -9
View File
@@ -1,17 +1,15 @@
using Animancer;
using Animancer;
using UnityEngine;
public class NPCVisual : MonoBehaviour
{
[SerializeField] NamedAnimancerComponent namedAnimancer;
public bool TryPlayAction(string animationName)
{
if(namedAnimancer == null) return false;
if(namedAnimancer.IsPlaying(animationName)) return false;
BrewMonster.Logger.LogError("TryPlayAction "+ animationName);
if (namedAnimancer == null) return false;
if (namedAnimancer.IsPlaying(animationName)) return false;
return namedAnimancer.TryPlay(animationName) == null;
return namedAnimancer.TryPlay("慢速移动") == null;
}
public void InitNPCEventDoneHandler()
{
@@ -28,8 +26,17 @@ public class NPCVisual : MonoBehaviour
}
public bool IsAnimationExist(string animationName)
{
return namedAnimancer.States.TryGet("ActionName", out var existingState) ? true : false;
if (namedAnimancer == null) return false;
return namedAnimancer.States.TryGet(animationName, out var existingState) ? true : false;
}
public bool IsPlayAnimation()
{
if (namedAnimancer == null) return false;
return namedAnimancer.IsPlaying();
}
public bool IsPlayAnimation(string animationName)
{
if (namedAnimancer == null) return false;
return namedAnimancer.IsPlaying(animationName);
}
public bool IsPlayAnimation() => namedAnimancer.IsPlaying();
public bool IsPlayAnimation(string animationName) => namedAnimancer.IsPlaying(animationName);
}
+27
View File
@@ -11,6 +11,7 @@ GameObject:
- component: {fileID: 3521696612905468212}
- component: {fileID: 2542060226037108388}
- component: {fileID: -3520322077839857420}
- component: {fileID: -2400324395862947468}
m_Layer: 0
m_Name: MonsterPrefab
m_TagString: Untagged
@@ -46,6 +47,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_fMoveSpeed: 0
_characterController: {fileID: -2400324395862947468}
--- !u!114 &-3520322077839857420
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -59,3 +61,28 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
namedAnimancer: {fileID: 0}
--- !u!143 &-2400324395862947468
CharacterController:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6975799234359536760}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Height: 2
m_Radius: 0.5
m_SlopeLimit: 45
m_StepOffset: 0.3
m_SkinWidth: 0.08
m_MinMoveDistance: 0.001
m_Center: {x: 0, y: 0, z: 0}
+28
View File
@@ -11,6 +11,7 @@ GameObject:
- component: {fileID: 3521696612905468212}
- component: {fileID: 2999449018738386437}
- component: {fileID: -6135441729487348920}
- component: {fileID: 3591811367645654856}
m_Layer: 0
m_Name: NPCPrefab
m_TagString: Untagged
@@ -46,6 +47,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_fMoveSpeed: 0
_characterController: {fileID: 3591811367645654856}
--- !u!114 &-6135441729487348920
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -58,3 +60,29 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 8c7b669b45068cf469ae3116991b9026, type: 3}
m_Name:
m_EditorClassIdentifier:
namedAnimancer: {fileID: 0}
--- !u!143 &3591811367645654856
CharacterController:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6975799234359536760}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Height: 2
m_Radius: 0.5
m_SlopeLimit: 45
m_StepOffset: 0.3
m_SkinWidth: 0.08
m_MinMoveDistance: 0.001
m_Center: {x: 0, y: 0, z: 0}
+19 -19
View File
@@ -815,7 +815,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 219056132}
m_LocalEulerAnglesHint: {x: 37.509544, y: 4.471659, z: 7.4814105}
m_LocalEulerAnglesHint: {x: 4.8301706, y: -11.226167, z: -20.683136}
--- !u!1 &219056131
GameObject:
m_ObjectHideFlags: 0
@@ -847,7 +847,7 @@ Transform:
m_Children:
- {fileID: 200271003}
m_Father: {fileID: 1842494812}
m_LocalEulerAnglesHint: {x: -11.090817, y: 18.145458, z: 0.06438049}
m_LocalEulerAnglesHint: {x: -1.8313942, y: -12.388164, z: -1.1374559}
--- !u!1 &229829660
GameObject:
m_ObjectHideFlags: 0
@@ -1428,7 +1428,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1448902965}
m_LocalEulerAnglesHint: {x: -48.88787, y: -4.7707734, z: 6.976117}
m_LocalEulerAnglesHint: {x: -5.285838, y: 2.2596672, z: -16.279097}
--- !u!1 &612684905
GameObject:
m_ObjectHideFlags: 0
@@ -1460,7 +1460,7 @@ Transform:
m_Children:
- {fileID: 1060394198}
m_Father: {fileID: 1685763910}
m_LocalEulerAnglesHint: {x: 5.186275, y: -17.310516, z: 1.0528536}
m_LocalEulerAnglesHint: {x: -5.2129393, y: -11.047337, z: 1.2366207}
--- !u!1 &613875936
GameObject:
m_ObjectHideFlags: 0
@@ -1523,7 +1523,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 770801495}
m_LocalEulerAnglesHint: {x: -0.21815334, y: -90.06328, z: -89.40538}
m_LocalEulerAnglesHint: {x: 0.45207775, y: -90.08759, z: -88.389}
--- !u!1 &632580734
GameObject:
m_ObjectHideFlags: 0
@@ -1554,7 +1554,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 943395042}
m_LocalEulerAnglesHint: {x: 22.354374, y: -25.943213, z: 3.8724716}
m_LocalEulerAnglesHint: {x: 2.6972787, y: -10.464771, z: -37.389423}
--- !u!1 &681084483
GameObject:
m_ObjectHideFlags: 0
@@ -1804,7 +1804,7 @@ Transform:
- {fileID: 628919915}
- {fileID: 1328669174}
m_Father: {fileID: 188517153}
m_LocalEulerAnglesHint: {x: 84.099976, y: 17.95178, z: -179.30626}
m_LocalEulerAnglesHint: {x: 0.000099265104, y: 0.00001730286, z: -179.99998}
--- !u!1 &803947884
GameObject:
m_ObjectHideFlags: 0
@@ -1836,7 +1836,7 @@ Transform:
m_Children:
- {fileID: 1448902965}
m_Father: {fileID: 770801495}
m_LocalEulerAnglesHint: {x: 1.8517389, y: -22.36275, z: -7.9142075}
m_LocalEulerAnglesHint: {x: -1.1958022, y: -19.64244, z: 14.523731}
--- !u!1 &850759206
GameObject:
m_ObjectHideFlags: 0
@@ -1931,7 +1931,7 @@ Transform:
m_Children:
- {fileID: 632580735}
m_Father: {fileID: 983481364}
m_LocalEulerAnglesHint: {x: -7.5288367, y: 25.086956, z: 1.3219217}
m_LocalEulerAnglesHint: {x: -0.9040979, y: -5.1535263, z: -2.2642014}
--- !u!1 &983481363
GameObject:
m_ObjectHideFlags: 0
@@ -1963,7 +1963,7 @@ Transform:
m_Children:
- {fileID: 943395042}
m_Father: {fileID: 770801495}
m_LocalEulerAnglesHint: {x: -6.4957175, y: 80.435165, z: -11.533503}
m_LocalEulerAnglesHint: {x: -0.3465842, y: 87.349785, z: 17.190428}
--- !u!1 &1060394197
GameObject:
m_ObjectHideFlags: 0
@@ -1994,7 +1994,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 612684906}
m_LocalEulerAnglesHint: {x: 14.689643, y: -8.259342, z: -0.91933274}
m_LocalEulerAnglesHint: {x: -1.7655213, y: 91.829285, z: -75.62865}
--- !u!1 &1065610873
GameObject:
m_ObjectHideFlags: 0
@@ -2529,7 +2529,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 770801495}
m_LocalEulerAnglesHint: {x: 0.8425137, y: 90.00004, z: 89.99999}
m_LocalEulerAnglesHint: {x: 2.6553843, y: 89.78521, z: 90.979294}
--- !u!1 &1340697009
GameObject:
m_ObjectHideFlags: 0
@@ -2592,7 +2592,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1780738119}
m_LocalEulerAnglesHint: {x: -24.606922, y: 6.2258244, z: -10.96086}
m_LocalEulerAnglesHint: {x: -9.4902, y: 6.522605, z: -24.747604}
--- !u!1 &1448902964
GameObject:
m_ObjectHideFlags: 0
@@ -2624,7 +2624,7 @@ Transform:
m_Children:
- {fileID: 576944855}
m_Father: {fileID: 803947885}
m_LocalEulerAnglesHint: {x: 7.964184, y: -11.823143, z: -0.58464885}
m_LocalEulerAnglesHint: {x: 1.0610975, y: 9.744478, z: -0.06782466}
--- !u!1 &1450575681
GameObject:
m_ObjectHideFlags: 0
@@ -2688,7 +2688,7 @@ Transform:
m_Children:
- {fileID: 1780738119}
m_Father: {fileID: 770801495}
m_LocalEulerAnglesHint: {x: 8.413775, y: -70.44155, z: -12.913373}
m_LocalEulerAnglesHint: {x: 0.376885, y: -89.82896, z: 17.673927}
--- !u!1 &1497564909
GameObject:
m_ObjectHideFlags: 0
@@ -3810,7 +3810,7 @@ Transform:
m_Children:
- {fileID: 612684906}
m_Father: {fileID: 770801495}
m_LocalEulerAnglesHint: {x: 0.00016876556, y: -177.35884, z: -20.993475}
m_LocalEulerAnglesHint: {x: 0.0402154, y: -174.23889, z: 25.024492}
--- !u!1 &1761919879
GameObject:
m_ObjectHideFlags: 0
@@ -3968,7 +3968,7 @@ Transform:
m_Children:
- {fileID: 1404017968}
m_Father: {fileID: 1480888600}
m_LocalEulerAnglesHint: {x: 2.530177, y: -7.828605, z: 1.7663156}
m_LocalEulerAnglesHint: {x: 7.4035497, y: 26.83237, z: -1.1034775}
--- !u!1 &1790343736
GameObject:
m_ObjectHideFlags: 0
@@ -4032,7 +4032,7 @@ Transform:
m_Children:
- {fileID: 219056132}
m_Father: {fileID: 770801495}
m_LocalEulerAnglesHint: {x: -0.65920687, y: 26.516863, z: -7.996199}
m_LocalEulerAnglesHint: {x: 1.2440159, y: 17.9128, z: 15.237706}
--- !u!1 &1970311151
GameObject:
m_ObjectHideFlags: 0
@@ -4307,7 +4307,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2107333968}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
+93 -7
View File
@@ -6806,6 +6806,47 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 45e653bab7fb20e499bda25e1b646fea, type: 3}
m_Name:
m_EditorClassIdentifier:
Priority:
Enabled: 0
m_Value: 0
OutputChannel: 1
StandbyUpdate: 2
m_StreamingVersion: 20241001
m_LegacyPriority: 0
m_LookAt: {fileID: 0}
m_Follow: {fileID: 0}
m_Lens:
FieldOfView: 40
OrthographicSize: 10
NearClipPlane: 0.1
FarClipPlane: 5000
Dutch: 0
ModeOverride: 0
GateFit: 2
m_SensorSize: {x: 21.946, y: 16.002}
LensShift: {x: 0, y: 0}
FocusDistance: 10
Iso: 200
ShutterSpeed: 0.005
Aperture: 16
BladeCount: 5
Curvature: {x: 2, y: 11}
BarrelClipping: 0.25
Anamorphism: 0
BlendHint: 0
m_OnCameraLiveEvent:
m_PersistentCalls:
m_Calls: []
m_ExcludedPropertiesInInspector:
- m_Script
m_LockStageInInspector:
m_LegacyTransitions:
m_BlendHint: 0
m_InheritPosition: 0
m_OnCameraLive:
m_PersistentCalls:
m_Calls: []
m_ComponentOwner: {fileID: 294636156}
--- !u!4 &96894795
Transform:
m_ObjectHideFlags: 0
@@ -20165,7 +20206,7 @@ Transform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &294636155
GameObject:
m_ObjectHideFlags: 3
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
@@ -20184,7 +20225,7 @@ GameObject:
m_IsActive: 1
--- !u!4 &294636156
Transform:
m_ObjectHideFlags: 3
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
@@ -20199,7 +20240,7 @@ Transform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &294636157
MonoBehaviour:
m_ObjectHideFlags: 3
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
@@ -20209,9 +20250,19 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: fa7155796051b734daa718462081dc5f, type: 3}
m_Name:
m_EditorClassIdentifier:
m_BindingMode: 1
m_FollowOffset: {x: 0, y: 0, z: -10}
m_XDamping: 1
m_YDamping: 1
m_ZDamping: 1
m_AngularDampingMode: 0
m_PitchDamping: 0
m_YawDamping: 0
m_RollDamping: 0
m_AngularDamping: 0
--- !u!114 &294636158
MonoBehaviour:
m_ObjectHideFlags: 3
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
@@ -20221,9 +20272,24 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: f4044717213e31446939f7bd49c896ea, type: 3}
m_Name:
m_EditorClassIdentifier:
m_TrackedObjectOffset: {x: 0, y: 0, z: 0}
m_LookaheadTime: 0
m_LookaheadSmoothing: 0
m_LookaheadIgnoreY: 0
m_HorizontalDamping: 0.5
m_VerticalDamping: 0.5
m_ScreenX: 0.5
m_ScreenY: 0.5
m_DeadZoneWidth: 0
m_DeadZoneHeight: 0
m_SoftZoneWidth: 0.8
m_SoftZoneHeight: 0.8
m_BiasX: 0
m_BiasY: 0
m_CenterOnActivate: 1
--- !u!114 &294636159
MonoBehaviour:
m_ObjectHideFlags: 3
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
@@ -138201,6 +138267,26 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 72ece51f2901e7445ab60da3685d6b5f, type: 3}
m_Name:
m_EditorClassIdentifier:
ShowDebugText: 0
ShowCameraFrustum: 1
IgnoreTimeScale: 0
WorldUpOverride: {fileID: 0}
ChannelMask: -1
UpdateMethod: 2
BlendUpdateMethod: 1
LensModeOverride:
Enabled: 0
DefaultMode: 2
DefaultBlend:
Style: 1
Time: 2
CustomCurve:
serializedVersion: 2
m_Curve: []
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
CustomBlends: {fileID: 0}
--- !u!4 &1801883899
Transform:
m_ObjectHideFlags: 0
@@ -138291,9 +138377,9 @@ Camera:
y: 0
width: 1
height: 1
near clip plane: 0.01
near clip plane: 0.1
far clip plane: 5000
field of view: 60
field of view: 40
orthographic: 0
orthographic size: 10
m_Depth: 0
-1
View File
@@ -132,7 +132,6 @@ public class CECHostPlayer : EC_Player
if (move != Vector3.zero)
{
transform.forward = move;
Debug.LogWarning("HoangDev :HandleMovement");
m_MoveCtrl.GroundMove(Time.deltaTime);
m_MoveCtrl.SendMoveCmd(transform.position, controller.velocity, (int)GPMoveMode.GP_MOVE_RUN);
}
+13
View File
@@ -31,6 +31,7 @@ public static class EC_Utility
return (byte)(fDeg * fInvInter);
}
}
public static float FIX8TOFLOAT(int x) => x / 256.0f;
public static T ByteArrayToStructure<T>(byte[] bytes) where T : struct
{
GCHandle handle = GCHandle.Alloc(bytes, GCHandleType.Pinned);
@@ -43,6 +44,18 @@ public static class EC_Utility
handle.Free();
}
}
public static Vector3 glb_DecompressDirH(byte byDir)
{
const float fInter = 360.0f / 256.0f;
float fRad = Mathf.Deg2Rad * (byDir * fInter);
Vector3 v;
v.x = Mathf.Cos(fRad);
v.z = Mathf.Sin(fRad);
v.y = 0.0f;
return v;
}
public static System.Numerics.Vector3 ToNumerics(this UnityEngine.Vector3 v)
{
return new System.Numerics.Vector3(v.x, v.y, v.z);