-
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.
Super simple implementation of a shield augged NSF guy. No special
textures or anything yet.
- Loading branch information
1 parent
123cde4
commit e1ce8f9
Showing
1 changed file
with
56 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
//============================================================================= | ||
// NSFCloneAugShield1. | ||
//============================================================================= | ||
class NSFCloneAugShield1 extends Terrorist; | ||
|
||
var bool nametag; | ||
|
||
function BeginPlay() | ||
{ | ||
Super.BeginPlay(); | ||
|
||
//Random chance of switching body texture and switching to NSFCloneAugTough1Carcass2 | ||
if (Rand(100) < 5){ | ||
nametag=True; | ||
GiveNametag(); | ||
} | ||
} | ||
|
||
function GiveNametag() | ||
{ | ||
MultiSkins[2]=Texture'NSFCloneAugTough1Body2'; | ||
CarcassType=Class'DeusEx.NSFCloneAugTough1Carcass2'; | ||
} | ||
|
||
//Copied straight from Walton - values definitely need to be changed | ||
function float ShieldDamage(name damageType) | ||
{ | ||
// handle special damage types | ||
if ((damageType == 'Flamed') || (damageType == 'Burned') || (damageType == 'Stunned') || | ||
(damageType == 'KnockedOut')) | ||
return 0.0; | ||
else if ((damageType == 'TearGas') || (damageType == 'PoisonGas') || (damageType == 'HalonGas') || | ||
(damageType == 'Radiation') || (damageType == 'Shocked') || (damageType == 'Poison') || | ||
(damageType == 'PoisonEffect')) | ||
return 0.1; | ||
else | ||
return Super.ShieldDamage(damageType); | ||
} | ||
|
||
defaultproperties | ||
{ | ||
MinHealth=0 | ||
CarcassType=Class'DeusEx.NSFCloneAugTough1Carcass' | ||
Texture=Texture'DeusExItems.Skins.PinkMaskTex' | ||
Mesh=LodMesh'DeusExCharacters.GM_Jumpsuit' | ||
MultiSkins(0)=Texture'DeusExCharacters.Skins.TerroristTex0' | ||
MultiSkins(1)=Texture'DeusExCharacters.Skins.TerroristTex2' | ||
MultiSkins(2)=Texture'NSFCloneAugTough1Body' | ||
MultiSkins(3)=Texture'NSFCloneAugTough1Head' | ||
MultiSkins(4)=Texture'DeusExItems.Skins.PinkMaskTex' | ||
MultiSkins(5)=Texture'DeusExItems.Skins.GrayMaskTex' | ||
MultiSkins(6)=Texture'DeusExCharacters.Skins.GogglesTex1' | ||
MultiSkins(7)=Texture'DeusExItems.Skins.PinkMaskTex' | ||
FamiliarName="Augmented Terrorist" | ||
UnfamiliarName="Augmented Terrorist" | ||
} |