Skip to content

Commit

Permalink
Ensure Flak Chunks Dont Cause Damage On The Ground
Browse files Browse the repository at this point in the history
  • Loading branch information
Deaod committed Sep 9, 2023
1 parent 37e9349 commit 2b2998d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Classes/ST_UTChunk.uc
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@ var int ChunkIndex;

function ProcessTouch (Actor Other, vector HitLocation)
{
// Physics for chunks is split into 3 phases:
// PHYS_Projectile -- immediately after being fired, default physics
// PHYS_Falling -- after hitting surface while in PHYS_Projectile
// PHYS_None -- after touching standable ground while in PHYS_Falling

if (Physics == PHYS_None)
return;

if ( (Chunk(Other) == None) && ((Physics == PHYS_Falling) || (Other != Instigator)) )
{
speed = VSize(Velocity);
If ( speed > 200 )
if ( speed > 200 )
{
if ( Role == ROLE_Authority )
{
Expand Down

0 comments on commit 2b2998d

Please sign in to comment.