Skip to content

Commit

Permalink
Minor adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickelony committed Nov 11, 2022
1 parent 690cfed commit 041ff13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file modified addons/sourcemod/plugins/trails-chroma.smx
Binary file not shown.
3 changes: 2 additions & 1 deletion addons/sourcemod/scripting/include/trails/rendering.inc
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ void CreatePlayerTrail(int client, Trail trail, float playerOrigin[3], float sec
if (gEV_Type == Engine_TF2 && TF2_IsPlayerInCondition(client, TFCond_Cloaked)) // If the Spy is invisible
return;

gC_DynamicColor[client].A = trail.Color.A;

float start[3];
CopyVector(start, playerOrigin);
start[2] += TRAILS_GROUND_OFFSET; // Lift trail start slightly above ground
Expand All @@ -89,7 +91,6 @@ void CreatePlayerTrail(int client, Trail trail, float playerOrigin[3], float sec

TrailColor cColor;
GetClientSpecificColorFromTrail(client, trail, cColor);
gC_DynamicColor[client].A = trail.Color.A;

int iColor[4];
ColorToInt(iColor, cColor);
Expand Down

0 comments on commit 041ff13

Please sign in to comment.