# SFItem.SFKeyReader

00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 |
    //=============================================================================
    // Spatial Fear
    // Class: SFKeyReader
    // Description: Keycard reader. It's triggered with UseKey. Checks wheter player has a specific item in his/her
    //              inventory (usually it will be key card but not necessarily) and fires an event if yes. To set
    //              required item change NeededItem variable (default is class'SFKeyCardY').
    //
    //              There are five keycards:
    //                class'SFKeyCardB' - a blue keycard
    //                class'SFKeyCardD' - a grey keycard
    //                class'SFKeyCardG' - a green keycard
    //                class'SFKeyCardR' - a red keycard
    //                class'SFKeyCardY' - a yellow keycard
    //
    // Author: Jacek Zagrodzki (code), Ivan Tanzuira (model)
    //=============================================================================
    class SFKeyReader expands SFInteractTrigger;

    #exec MESH IMPORT MESH=SFKeyReader ANIVFILE=MODELS\SFKeyReader_a.3d DATAFILE=MODELS\SFKeyReader_d.3d X=0 Y=0 Z=0
    #exec MESH ORIGIN MESH=SFKeyReader X=0 Y=0 Z=0

    #exec MESH SEQUENCE MESH=SFKeyReader SEQ=All         STARTFRAME=0 NUMFRAMES=1
    #exec MESH SEQUENCE MESH=SFKeyReader SEQ=SFKeyReader STARTFRAME=0 NUMFRAMES=1

    #exec TEXTURE IMPORT NAME=JSFKeyReader FILE=TEXTURES\SFKeyReader.PCX GROUP=Skins FLAGS=2

    #exec MESHMAP NEW   MESHMAP=SFKeyReader MESH=SFKeyReader
    #exec MESHMAP SCALE MESHMAP=SFKeyReader X=0.1 Y=0.1 Z=0.2

    #exec MESHMAP SETTEXTURE MESHMAP=SFKeyReader NUM=1 TEXTURE=JSFKeyReader

    defaultproperties
    {
         NeededItem=Class'SFItem.SFKeyCardY'
         bHidden=False
         DrawType=DT_Mesh
         Mesh=LodMesh'SFItem.SFKeyReader'
         CollisionRadius=20.000000
         CollisionHeight=22.000000
         bBlockActors=True
         bBlockPlayers=True
         bProjTarget=True
    }

class file time: 12/7/2003 3:58:26 PM - creation time: 12/7/2003 4:03:45 PM
Created with UnCodeX