-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #162 from Die4Ever/develop v1.5.9
v1.5.9 Ninja JC and Stick With the Prod improvements
- Loading branch information
Showing
29 changed files
with
550 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
class GasGrenade injects GasGrenade; | ||
|
||
function GetSpawnCloudType(out class<Cloud> GasType, out Name tDamageType) | ||
{ | ||
GasType = class'TearGas'; | ||
tDamageType = 'TearGas'; | ||
//GasType = class'PoisonGas'; | ||
//tDamageType = 'Poison'; | ||
/* // mixed clouds, might be OP | ||
if (FRand() < 0.5) | ||
{ | ||
GasType = class'PoisonGas'; | ||
tDamageType = 'Poison'; | ||
} | ||
else | ||
{ | ||
GasType = class'TearGas'; | ||
tDamageType = 'TearGas'; | ||
}*/ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
class ThrownProjectile shims ThrownProjectile; | ||
|
||
// | ||
// SpawnTearGas needs to happen on the server so the clouds are insync and damage is dealt out of them | ||
// | ||
function SpawnTearGas() | ||
{ | ||
local int i; | ||
local class<Cloud> GasType; | ||
local Name tDamageType; | ||
|
||
if ( Role < ROLE_Authority ) | ||
return; | ||
|
||
for (i=0; i<blastRadius/36; i++) | ||
{ | ||
if (FRand() < 0.9) | ||
{ | ||
GetSpawnCloudType( GasType, tDamageType ); | ||
SpawnCloud(GasType, tDamageType); | ||
} | ||
} | ||
} | ||
|
||
function GetSpawnCloudType(out class<Cloud> GasType, out Name tDamageType) | ||
{ | ||
GasType = class'TearGas'; | ||
tDamageType = 'TearGas'; | ||
} | ||
|
||
function SpawnCloud(class<Cloud> type, Name DamageType) | ||
{ | ||
local Vector loc; | ||
local Cloud gas; | ||
|
||
loc = Location; | ||
loc.X += FRand() * blastRadius - blastRadius * 0.5; | ||
loc.Y += FRand() * blastRadius - blastRadius * 0.5; | ||
loc.Z += 32; | ||
gas = spawn(type, None,, loc); | ||
if (gas == None) return; | ||
|
||
gas.DamageType = DamageType; | ||
gas.Velocity = vect(0,0,0); | ||
gas.Acceleration = vect(0,0,0); | ||
gas.DrawScale = FRand() * 0.5 + 2.0; | ||
gas.LifeSpan = FRand() * 10 + 30; | ||
if ( Level.NetMode != NM_Standalone ) | ||
gas.bFloating = False; | ||
else | ||
gas.bFloating = True; | ||
gas.Instigator = Instigator; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.