TUTHealerPickup - The Healer Part 2 of 9 - Source Code
class TUTHealerPickup extends UTWeaponPickup
placeable;
static function StaticPrecache(LevelInfo L)
{
L.AddPrecacheMaterial(Texture'XEffectMat.link_muz_green');
L.AddPrecacheMaterial(Texture'XEffectMat.link_muzmesh_green');
L.AddPrecacheMaterial(Texture'XEffectMat.link_ring_green');
L.AddPrecacheMaterial(Texture'XEffectMat.link_beam_green');
L.AddPrecacheMaterial(Texture'XEffectMat.link_spark_green');
L.AddPrecacheStaticMesh(StaticMesh'WeaponStaticMesh.linkprojectile');
L.AddPrecacheStaticMesh(StaticMesh'WeaponStaticMesh.LinkGunPickup');
}
simulated function UpdatePrecacheMaterials()
{
Level.AddPrecacheMaterial(Texture'XEffectMat.link_muz_green');
Level.AddPrecacheMaterial(Texture'XEffectMat.link_muzmesh_green');
Level.AddPrecacheMaterial(Texture'XEffectMat.link_ring_green');
Level.AddPrecacheMaterial(Texture'XEffectMat.link_beam_green');
Level.AddPrecacheMaterial(Texture'XEffectMat.link_spark_green');
}
simulated function UpdatePrecacheStaticMeshes()
{
Level.AddPrecacheStaticMesh(StaticMesh'WeaponStaticMesh.linkprojectile');
Super.UpdatePrecacheStaticMeshes();
}
defaultproperties
{
InventoryType=class'TUTHealer'
PickupMessage="You got the Tutorial Healer."
PickupSound=Sound'PickupSounds.LinkGunPickup'
PickupForce="TUTHealerPickup"
MaxDesireability=+0.7
StaticMesh=StaticMesh'WeaponStaticMesh.LinkGunPickup'
DrawType=DT_StaticMesh
DrawScale=0.6
Physics=PHYS_None
}