Skip to content

Commit

Permalink
Fix texture sample bug (#53)
Browse files Browse the repository at this point in the history
* Fix non-lethal animations not dealing damage.

* Fix average colour calculation.
  • Loading branch information
Epicguru authored Apr 27, 2024
1 parent fd3a9e9 commit cbf4dcf
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 63 deletions.
58 changes: 31 additions & 27 deletions Animations/Execution_HeadStab_NL.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ExportTimeUTC": "2024-02-16T12:55:42.6569629Z",
"ExportTimeUTC": "2024-04-27T21:32:52.4673574Z",
"Name": "Execution_HeadStab_NL",
"Length": 2.5666666,
"Bounds": {
Expand All @@ -13,14 +13,18 @@
"Time": 0.6,
"Data": "DamageEffect;1;0,0,0"
},
{
"Time": 1.05,
"Data": "KillPawn;0;1;Head;Cut;AM_Execution_Generic;True"
},
{
"Time": 1.23333335,
"Data": "GoreSplash;1;5;0.5"
}
],
"Parts": [
{
"ID": 19866,
"ID": 24412,
"Path": "BodyA",
"CustomName": "BodyA",
"Curves": {
Expand Down Expand Up @@ -478,7 +482,7 @@
"SweepPaths": []
},
{
"ID": 19460,
"ID": 24006,
"Path": "BodyB",
"CustomName": "BodyB",
"Curves": {
Expand Down Expand Up @@ -920,7 +924,7 @@
"SweepPaths": []
},
{
"ID": 19844,
"ID": 24390,
"Path": "PawnAHolding",
"Curves": {
"Transform.m_LocalPosition.x": {
Expand Down Expand Up @@ -1397,10 +1401,10 @@
"SweepPaths": []
},
{
"ID": 19166,
"ID": 23706,
"Path": "PawnAHolding/ItemA",
"CustomName": "ItemA",
"ParentID": 19844,
"ParentID": 24390,
"Curves": {
"AnimatedPart.SplitDrawMode": {
"Keyframes": [
Expand Down Expand Up @@ -1450,7 +1454,7 @@
"AnimatedPart.FrameIndex": 0.0,
"PawnBody.Direction": 0.0
},
"SplitDrawPivotPartID": 19940,
"SplitDrawPivotPartID": 24486,
"SweepPaths": [
[
{
Expand Down Expand Up @@ -1751,7 +1755,7 @@
]
},
{
"ID": 19940,
"ID": 24486,
"Path": "WeaponACutoff",
"Curves": {
"Transform.m_LocalPosition.x": {
Expand Down Expand Up @@ -1948,10 +1952,10 @@
"SweepPaths": []
},
{
"ID": 19292,
"ID": 23838,
"Path": "BodyA/HeadA",
"CustomName": "HeadA",
"ParentID": 19866,
"ParentID": 24412,
"Curves": {},
"DefaultValues": {
"GameObject.m_IsActive": 1.0,
Expand Down Expand Up @@ -1980,10 +1984,10 @@
"SweepPaths": []
},
{
"ID": 19814,
"ID": 24360,
"Path": "PawnAHolding/HandA",
"CustomName": "HandA",
"ParentID": 19844,
"ParentID": 24390,
"Curves": {},
"DefaultValues": {
"GameObject.m_IsActive": 1.0,
Expand Down Expand Up @@ -2012,10 +2016,10 @@
"SweepPaths": []
},
{
"ID": 20186,
"ID": 24732,
"Path": "PawnAHolding/HandB",
"CustomName": "HandB",
"ParentID": 19844,
"ParentID": 24390,
"Curves": {},
"DefaultValues": {
"GameObject.m_IsActive": 1.0,
Expand Down Expand Up @@ -2044,9 +2048,9 @@
"SweepPaths": []
},
{
"ID": 19226,
"ID": 23772,
"Path": "BodyB/HeadContainer",
"ParentID": 19460,
"ParentID": 24006,
"Curves": {},
"DefaultValues": {
"GameObject.m_IsActive": 1.0,
Expand Down Expand Up @@ -2075,10 +2079,10 @@
"SweepPaths": []
},
{
"ID": 20072,
"ID": 24618,
"Path": "BodyB/HeadContainer/HeadB",
"CustomName": "HeadB",
"ParentID": 19226,
"ParentID": 23772,
"Curves": {},
"DefaultValues": {
"GameObject.m_IsActive": 1.0,
Expand Down Expand Up @@ -2107,7 +2111,7 @@
"SweepPaths": []
},
{
"ID": 19544,
"ID": 24090,
"Path": "PawnBHolding",
"Curves": {},
"DefaultValues": {
Expand Down Expand Up @@ -2137,10 +2141,10 @@
"SweepPaths": []
},
{
"ID": 19854,
"ID": 24400,
"Path": "PawnBHolding/HandA",
"CustomName": "HandA2",
"ParentID": 19544,
"ParentID": 24090,
"Curves": {},
"DefaultValues": {
"GameObject.m_IsActive": 1.0,
Expand Down Expand Up @@ -2169,10 +2173,10 @@
"SweepPaths": []
},
{
"ID": 19520,
"ID": 24066,
"Path": "PawnBHolding/HandB",
"CustomName": "HandB2",
"ParentID": 19544,
"ParentID": 24090,
"Curves": {},
"DefaultValues": {
"GameObject.m_IsActive": 1.0,
Expand Down Expand Up @@ -2201,10 +2205,10 @@
"SweepPaths": []
},
{
"ID": 19976,
"ID": 24522,
"Path": "PawnBHolding/ItemB",
"CustomName": "ItemB",
"ParentID": 19544,
"ParentID": 24090,
"Curves": {},
"DefaultValues": {
"GameObject.m_IsActive": 1.0,
Expand Down Expand Up @@ -2235,7 +2239,7 @@
]
},
{
"ID": 19838,
"ID": 24384,
"Path": "HandGrabSparks",
"TexturePath": "AM/HandGrabSparks",
"Curves": {},
Expand Down Expand Up @@ -2266,7 +2270,7 @@
"SweepPaths": []
},
{
"ID": 20214,
"ID": 24760,
"Path": "QuestionMark",
"TexturePath": "AM/QuestionMark",
"Curves": {},
Expand Down
Loading

0 comments on commit cbf4dcf

Please sign in to comment.