Skip to content

Commit

Permalink
fix Revision and VMD compile errors with existing Explode function
Browse files Browse the repository at this point in the history
  • Loading branch information
Die4Ever committed Jun 29, 2023
1 parent f5099dd commit f4facd9
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 6 deletions.
10 changes: 9 additions & 1 deletion Pawns/DeusEx/Classes/MJ12CloneAugShield1.uc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function Carcass SpawnCarcass()
return None;
}

function Explode()
function Explode(optional vector HitLocation) // argument for compatibility with Revision and VMD
{
local SphereEffect sphere;
local ScorchMark s;
Expand All @@ -41,6 +41,14 @@ function Explode()
local float explosionDamage;
local float explosionRadius;

#ifdef revision
Super.Explode();
return;
#elseif vmd
Super.Explode();
return;
#endif

explosionDamage = 100;
explosionRadius = 256;

Expand Down
10 changes: 9 additions & 1 deletion Pawns/DeusEx/Classes/MJ12CloneAugStealth1.uc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function ResetSkinStyle()
}
}

function Explode()
function Explode(optional vector HitLocation) // argument for compatibility with Revision and VMD
{
local SphereEffect sphere;
local ScorchMark s;
Expand All @@ -51,6 +51,14 @@ function Explode()
local float explosionDamage;
local float explosionRadius;

#ifdef revision
Super.Explode();
return;
#elseif vmd
Super.Explode();
return;
#endif

explosionDamage = 100;
explosionRadius = 256;

Expand Down
10 changes: 9 additions & 1 deletion Pawns/DeusEx/Classes/MJ12CloneAugTough1.uc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function Carcass SpawnCarcass()
return None;
}

function Explode()
function Explode(optional vector HitLocation) // argument for compatibility with Revision and VMD
{
local SphereEffect sphere;
local ScorchMark s;
Expand All @@ -33,6 +33,14 @@ function Explode()
local float explosionDamage;
local float explosionRadius;

#ifdef revision
Super.Explode();
return;
#elseif vmd
Super.Explode();
return;
#endif

explosionDamage = 100;
explosionRadius = 256;

Expand Down
10 changes: 9 additions & 1 deletion Pawns/DeusEx/Classes/UNATCOCloneAugShield1.uc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function Carcass SpawnCarcass()
return None;
}

function Explode()
function Explode(optional vector HitLocation) // argument for compatibility with Revision and VMD
{
local SphereEffect sphere;
local ScorchMark s;
Expand All @@ -41,6 +41,14 @@ function Explode()
local float explosionDamage;
local float explosionRadius;

#ifdef revision
Super.Explode();
return;
#elseif vmd
Super.Explode();
return;
#endif

explosionDamage = 100;
explosionRadius = 256;

Expand Down
10 changes: 9 additions & 1 deletion Pawns/DeusEx/Classes/UNATCOCloneAugStealth1.uc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function ResetSkinStyle()
}
}

function Explode()
function Explode(optional vector HitLocation) // argument for compatibility with Revision and VMD
{
local SphereEffect sphere;
local ScorchMark s;
Expand All @@ -51,6 +51,14 @@ function Explode()
local float explosionDamage;
local float explosionRadius;

#ifdef revision
Super.Explode();
return;
#elseif vmd
Super.Explode();
return;
#endif

explosionDamage = 100;
explosionRadius = 256;

Expand Down
10 changes: 9 additions & 1 deletion Pawns/DeusEx/Classes/UNATCOCloneAugTough1.uc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function Carcass SpawnCarcass()
return None;
}

function Explode()
function Explode(optional vector HitLocation) // argument for compatibility with Revision and VMD
{
local SphereEffect sphere;
local ScorchMark s;
Expand All @@ -33,6 +33,14 @@ function Explode()
local float explosionDamage;
local float explosionRadius;

#ifdef revision
Super.Explode();
return;
#elseif vmd
Super.Explode();
return;
#endif

explosionDamage = 100;
explosionRadius = 256;

Expand Down

0 comments on commit f4facd9

Please sign in to comment.