| Home Page | Recent Changes

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

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

FAQs

Help Desk

Mapping Topics

Mapping Lessons

UnrealEd Interface

UnrealScript Topics

UnrealScript Lessons

Making Mods

Class Tree

Modeling Topics

Chongqing Page

Log In