# SFWeapon.SFGrenadeLauncher

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 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00115 00116 00117 00118 00119 00120 00121 00122 00123 00124 00125 00126 00127 00128 00129 00130 00131 00132 00133 00134 00135 00136 00137 00138 00139 00140 00141 00142 00143 00144 00145 00146 00147 00148 00149 00150 00151 00152 00153 00154 00155 00156 00157 00158 00159 00160 00161 00162 00163 00164 00165 00166 00167 00168 00169 00170 00171 00172 00173 00174 00175 00176 00177 00178 00179 00180 |
    //=============================================================================
    // Spatial Fear
    // Class: SFGrenadeLaucher
    // Descripton: Subclasses of SFweapon
    //				Implements GrenadeLaucher
    //
    // Author: Markus Nuebel
    //=============================================================================

    class SFGrenadeLauncher expands SFWeapon;

    #exec OBJ LOAD FILE=SPF-Content.uax  PACKAGE=SPF-Content GROUP=Weapons

    // First Person model
    #exec MESH IMPORT MESH=SFGLauncherm ANIVFILE=MODELS\SFGLauncherm_a.3d DATAFILE=MODELS\SFGLauncherm_d.3d X=0 Y=0 Z=0
    #exec MESH ORIGIN MESH=SFGLauncherm X=0 Y=0 Z=0

    #exec MESH SEQUENCE MESH=SFGLauncherm SEQ=All    STARTFRAME=0 NUMFRAMES=46
    #exec MESH SEQUENCE MESH=SFGLauncherm SEQ=still  STARTFRAME=0 NUMFRAMES=1
    #exec MESH SEQUENCE MESH=SFGLauncherm SEQ=still2 STARTFRAME=1 NUMFRAMES=1
    #exec MESH SEQUENCE MESH=SFGLauncherm SEQ=select STARTFRAME=2 NUMFRAMES=11
    #exec MESH SEQUENCE MESH=SFGLauncherm SEQ=down   STARTFRAME=13 NUMFRAMES=11
    #exec MESH SEQUENCE MESH=SFGLauncherm SEQ=fire1  STARTFRAME=24 NUMFRAMES=11
    #exec MESH SEQUENCE MESH=SFGLauncherm SEQ=fire2  STARTFRAME=35 NUMFRAMES=11

    #exec TEXTURE IMPORT NAME=JSFGLauncher1 FILE=TEXTURES\SFGLauncher1.PCX GROUP=GLauncher FLAGS=2
    #exec TEXTURE IMPORT NAME=JSFGLauncher2 FILE=TEXTURES\SFGLauncher2.PCX GROUP=GLauncher FLAGS=2 PALETTE=JSFGLauncher1
    #exec TEXTURE IMPORT NAME=JSFGLauncher3 FILE=TEXTURES\SFGLauncher3.PCX GROUP=GLauncher FLAGS=2 PALETTE=JSFGLauncher1
    #exec TEXTURE IMPORT NAME=JSFGLauncher4 FILE=TEXTURES\SFGLauncher4.PCX GROUP=GLauncher FLAGS=2 PALETTE=JSFGLauncher1

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

    #exec MESHMAP SETTEXTURE MESHMAP=SFGLauncherm NUM=1 TEXTURE=JSFGLauncher1
    #exec MESHMAP SETTEXTURE MESHMAP=SFGLauncherm NUM=2 TEXTURE=JSFGLauncher2
    #exec MESHMAP SETTEXTURE MESHMAP=SFGLauncherm NUM=3 TEXTURE=JSFGLauncher3
    #exec MESHMAP SETTEXTURE MESHMAP=SFGLauncherm NUM=4 TEXTURE=JSFGLauncher4

    // Pickup Model
    #exec MESH IMPORT MESH=SFGLauncherpick ANIVFILE=MODELS\SFGLauncherpick_a.3d DATAFILE=MODELS\SFGLauncherpick_d.3d X=0 Y=0 Z=0
    #exec MESH ORIGIN MESH=SFGLauncherpick X=0 Y=0 Z=0

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

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

    #exec MESHMAP SETTEXTURE MESHMAP=SFGLauncherpick NUM=1 TEXTURE=JSFGLauncher1
    #exec MESHMAP SETTEXTURE MESHMAP=SFGLauncherpick NUM=2 TEXTURE=JSFGLauncher2
    #exec MESHMAP SETTEXTURE MESHMAP=SFGLauncherpick NUM=3 TEXTURE=JSFGLauncher3

    // Third Person Model
    #exec MESH IMPORT MESH=SFGLauncher3p ANIVFILE=MODELS\SFGLauncherpick_a.3d DATAFILE=MODELS\SFGLauncherpick_d.3d X=0 Y=0 Z=0
    #exec MESH ORIGIN MESH=SFGLauncher3p X=0 Y=0 Z=0

    #exec MESH SEQUENCE MESH=SFGLauncher3p SEQ=All          STARTFRAME=0 NUMFRAMES=1
    #exec MESH SEQUENCE MESH=SFGLauncher3p SEQ=SFGLauncherpick STARTFRAME=0 NUMFRAMES=1

    #exec MESHMAP NEW   MESHMAP=SFGLauncher3p MESH=SFGLauncherpick
    #exec MESHMAP SCALE MESHMAP=SFGLauncher3p X=0.08 Y=0.08 Z=0.16

    #exec MESHMAP SETTEXTURE MESHMAP=SFGLauncher3p NUM=1 TEXTURE=JSFGLauncher1
    #exec MESHMAP SETTEXTURE MESHMAP=SFGLauncher3p NUM=2 TEXTURE=JSFGLauncher2
    #exec MESHMAP SETTEXTURE MESHMAP=SFGLauncher3p NUM=3 TEXTURE=JSFGLauncher3

    var (SpatialFear) Sound	 m_sndLoading;

    simulated function PlayIdleAnim()
    {
    	if ( Mesh != PickupViewMesh )
    		LoopAnim('still',0.6, 0.3);

    }
    function PlayFiring()
    {
    	PlaySound(FireSound, SLOT_Misc, Pawn(Owner).SoundDampening*3.0);
    	PlayAnim( 'Fire1', m_fCurrentRate, 0.05);
    }

    function PlayAltFiring()
    {
    	PlaySound(AltFireSound, SLOT_Misc, Pawn(Owner).SoundDampening*3.0);
    	PlayAnim( 'Fire2', m_fCurrentRate, 0.05);
    }

    state NormalFire
    {
      function Fire(float F)
      {
      }
      function AltFire(float F)
      {
      }

      function AnimEnd()
      {
    	   Super.AnimEnd();

          PlaySound(m_sndLoading, SLOT_None, Pawn(Owner).SoundDampening*3.0);
      }

    Begin:
    	FinishAnim();
    	Finish();
    }

    state AltFiring
    {

      function Fire(float F)
      {
      }
      function AltFire(float F)
      {
      }

      function AnimEnd()
      {
    	   Super.AnimEnd();

          PlaySound(m_sndLoading, SLOT_None, Pawn(Owner).SoundDampening*3.0);
      }

    Begin:
      FinishAnim();
      Finish();
    }

    //     PlayerViewOffset=(X=25.000000,Y=-18.000000,Z=-25.000000)

    defaultproperties
    {
         m_sndLoading=Sound'SPF-Content.Weapons.GLLoading'
         MaxTargetRange=3200
         MaxTargetRangeAlt=3200
         fNormalRate=0.272700
         fDesiredRate=0.566000
         fDamage=60.000000
         fAltDamage=15.000000
         Icon=Texture'SfResource1.Icons.GLauncherIco'
         bShake=True
         ShakeMagAlt=250.000000
         ShakeTimeAlt=0.200000
         ShakeVertAlt=10.000000
         WeaponDescription="Classification: Grenade Launcher:"
         AmmoName=Class'SFWeapon.SFGrenades'
         PickupAmmoCount=5
         bSplashDamage=True
         FireOffset=(X=33.000000,Y=-10.000000)
         ProjectileClass=Class'SFWeapon.SFGrenadeProjE'
         AltProjectileClass=Class'SFWeapon.SFGrenadeProjC'
         shakemag=250.000000
         shaketime=0.200000
         shakevert=10.000000
         RefireRate=0.250000
         AltRefireRate=0.250000
         FireSound=Sound'SPF-Content.Weapons.GLFire'
         AltFireSound=Sound'SPF-Content.Weapons.GLAltFire'
         SelectSound=Sound'SPF-Content.Weapons.GLSelect'
         AutoSwitchPriority=5
         InventoryGroup=5
         PickupMessage="You got the grenade launcher"
         ItemName="Grenade Launcher"
         PlayerViewOffset=(X=5.100000,Y=-3.700000,Z=-3.800000)
         PlayerViewMesh=LodMesh'SFWeapon.SFGLauncherm'
         PlayerViewScale=0.200000
         BobDamping=0.945000
         PickupViewMesh=LodMesh'SFWeapon.SFGLauncherpick'
         ThirdPersonMesh=LodMesh'SFWeapon.SFGLauncher3p'
         StatusIcon=Texture'Botpack.Icons.Use8ball'
         Mesh=LodMesh'SFWeapon.SFGLauncherpick'
         bNoSmooth=False
         CollisionHeight=12.000000
    }

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