| Home Page | Recent Changes | Preferences

TheHealer/TUTHealerPickupSource

TUTHealerPickup - The Healer Part 2 of 9 - Source Code

//------------------------------------------------------------------------------
// class name : TUTHealerPickup
// class type : Pickup
// description: The Healer pickup - what sits on the ground
// author     : HSDanClark
//------------------------------------------------------------------------------
// TODO       :
//
//------------------------------------------------------------------------------
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
}

The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Image Uploads

Random Page

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

Mapping Topics

Mapping Lessons

UnrealEd Interface

Questions&Answers

Scripting Topics

Scripting Lessons

Making Mods

Class Tree

Questions&Answers

Modeling Topics

Questions&Answers

Log In