home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / models / weapons / nagant_revolver.tik < prev    next >
Encoding:
Text File  |  2002-10-21  |  7.0 KB  |  246 lines

  1. TIKI
  2. setup
  3. {
  4.     scale 0.52            // Set default scale to 16/30.5 since world
  5.                         // is in 16 units per foot and model is in cm's
  6.     path models/weapons/nagent_revolver
  7.     skelmodel nagent_revolver.skd
  8.     surface all shader nagent_revolver
  9. }
  10.  
  11. init
  12. {
  13.     server
  14.     {
  15.  
  16.     //========================================//
  17.     //        WEAPON NAME          //
  18.     //========================================//
  19.  
  20.         classname        Weapon
  21.         weapontype        pistol
  22.         name            "Nagant Revolver"
  23.         rank            120 120
  24.  
  25.     //========================================//
  26.     //        WEAPON ACCURACY       //
  27.     //========================================//
  28.  
  29.         //soviet_nagant-m1895
  30.  
  31.         sp bulletrange        3120     //the range at which bulletspread is applied fully
  32.         sp bulletspread        40 40 56 56 //  minpitch minyaw maxpitch maxyaw(offsets in world units)
  33.         sp firespreadmult    0.38 0.7 200 0.6            //add falloff cap maxtime
  34.  
  35.         dm bulletrange        4000     //the range at which bulletspread is applied fully (65 yards)
  36.         dm bulletspread        42 42 65 65 //  minpitch minyaw maxpitch maxyaw(offsets in world units) spread is maximum at top movement speed
  37.  
  38.         dm firespreadmult    0.58 0.5 200 0.6    //add falloff cap maxtime 0.38 0.7 200 0.6 (original)
  39.  
  40.         realism bulletrange        4000     //the range at which bulletspread is applied fully (65 yards)
  41.         realism bulletspread    42 42 65 65 //  minpitch minyaw maxpitch maxyaw(offsets in world units) spread is maximum at top movement speed
  42.         realism firespreadmult    0.58 0.5 200 0.6    //add falloff cap maxtime 0.38 0.7 200 0.6 (original)
  43.  
  44.     //========================================//
  45.     //        DAMAGE / RATE OF FIRE      //
  46.     //========================================//
  47.  
  48.         sp bulletdamage        33    //original 25
  49.         dm bulletdamage        38    //original 25 // 2nd pass 33
  50.         realism bulletdamage        44    //original 25 // 2nd pass 33
  51.  
  52.         sp firedelay        0.15
  53.         dm firedelay        0.16    //was 0.15
  54.         realism firedelay        0.16    //was 0.15
  55.  
  56.     //========================================//
  57.     //        PLAYER MOVEMENT          //
  58.     //========================================//
  59.  
  60.         sp movementspeed     1.0
  61.         dm movementspeed    1.0
  62.         realism movementspeed    1.0
  63.  
  64.     //========================================//
  65.     //        RIFLE BUTT / SECONDARY FIRE//
  66.     //========================================//
  67.  
  68.         secondary firetype            melee
  69.         secondary ammotype            none
  70.         secondary ammorequired        0
  71.         secondary meansofdeath        bash
  72.         secondary bulletknockback    50
  73.         secondary quiet
  74.  
  75.         sp secondary bulletrange    64
  76.         sp secondary bulletdamage    20
  77.  
  78.         dm secondary bulletrange    96
  79.         dm secondary bulletdamage    35
  80.  
  81.         realism secondary bulletrange    96
  82.         realism secondary bulletdamage    35
  83.  
  84.     //========================================//
  85.     //        AMMO              //
  86.     //========================================//
  87.  
  88.         firetype        bullet
  89.         ammotype        "Pistol"
  90.         meansofdeath    bullet
  91.         semiauto
  92.         bulletcount        1
  93.         clipsize        7
  94.         ammorequired    1
  95. //        usenoammo        1 // allow the pistol to be used when it has no ammo
  96.  
  97.         sp startammo    7
  98.         dm startammo    28
  99.         sprealism startammo    7
  100.         dmrealism startammo    14
  101.  
  102.     //========================================//
  103.     //        CROSSHAIR, ZOOM, TRACERS  //
  104.     //========================================//
  105.  
  106.         sp tracerfrequency     1
  107.         dm tracerfrequency     0
  108.         sprealism tracerfrequency     1
  109.         dmrealism tracerfrequency     0
  110.  
  111.         crosshair        1
  112.  
  113.     //========================================//
  114.     //        SOUND, AI, OTHER      //
  115.     //========================================//
  116.  
  117.         pickupsound        p38_snd_pickup
  118.         ammopickupsound    p38_snd_pickup_ammo
  119.         noammosound        p38_snd_noammo
  120.  
  121.         // Holstering info
  122. //        holstertag        "Bip01 Pelvis"
  123. //        holsteroffset    "1.5 -4 -10.0"
  124. //        holsterangles    "5 190 195"
  125. //        holsterScale    1.0
  126.  
  127.         // AI animation group info
  128.         weapongroup        pistol
  129.         airange            short
  130.     }
  131.     client
  132.     {
  133.         // this is attached to the player during reload
  134.         cache models/ammo/nagant_pistol_shell.tik
  135.  
  136.         cache tracer.spr
  137.         cache muzsprite.spr
  138.         cache models/fx/muzflash.tik
  139.     }
  140. }
  141.  
  142. animations
  143. {
  144.     idle        nagent_revolver.skc
  145.     reload        nagant_reload_start.skc
  146.     {
  147.         client
  148.         {
  149.                 entry sound mnrevolver_snd_reload_start item
  150.         }
  151.     }
  152.     reload_single     nagant_reload_loop.skc
  153.     {
  154.         client
  155.         {
  156.                 entry sound mnrevolver_snd_reload_single item
  157.         }
  158.     }
  159.     reload_end         nagant_reload_end.skc
  160.     {
  161.         server
  162.         {
  163.             last idle
  164.         }
  165.         client
  166.         {
  167.                 entry sound mnrevolver_snd_reload_end item
  168.         }
  169.     }
  170.  
  171.     secondaryfire    nagent_revolver.skc
  172.     {
  173.         server
  174.         {
  175.             entry shoot secondary
  176.         }
  177.     }
  178.     fire     nagant_fire.skc
  179.     {
  180.         server
  181.         {
  182.             entry shoot primary
  183.         }
  184.         client
  185.         {
  186.             entry stopaliaschannel mnrevolver_snd_fire
  187.             entry sound mnrevolver_snd_fire
  188.  
  189.             // By now, the server has already fired the weapon, so it's
  190.             // ok to apply the view kick apon entry to avoid problems
  191.             // with multiple application on single frame animations.
  192.  
  193.             ////////////////////////////////////////////////////////////////////////////////////////
  194.             // View Kick Controls
  195.             //
  196.             // View Kicking works based on the assumptions that every weapon has its own tendencies to kick in
  197.             // a paticular fashion. In MOH we call then scatter patterns. Currently we have 2 scatter patterns which
  198.             // will be explained.
  199.             // Scatter Patterns:
  200.             // "V" - the cone. The longer you shoot the more random your shots will be in the horizontal axis.
  201.             // "T" - the T shape. The gun has a tendancy to push in a paticular direction. //not used much...too artificial looking
  202.             //
  203.             //
  204.             //                     +-------------------------------------------- Scatter Pitch Min
  205.             //                      |    +--------------------------------------- Scatter Pitch Max
  206.             //                      |    |       +------------------------------- Scatter Yaw Min
  207.             //                     |    |       |   +--------------------------- Scatter Yaw Max
  208.             //                     |    |       |   |     +--------------------- The Recentering speed in fraction per second
  209.             //                      |    |       |   |     |    +---------------- The Scatter Pattern
  210.             //                      |    |       |   |     |    |     +---------- The absolute pitch min/max
  211.             //                      |    |       |   |     |    |     |  +------- The absolute yaw min/max
  212.             //                      |    |       |   |     |    |     |  | +----- This is the pitch at which you loose all
  213.             //                      |    |       |   |     |    |     |  | |      control of the weapon and its behavior is
  214.             //                      |    |       |   |     |    |     |  | |      purely random.
  215.             //                V    V       V   V     V    V     V  V V
  216.             entry viewkick         -1.0 -1.0    -0.16 0.16  1.2 "V"  2.8 0.8 1.2
  217.  
  218.             //entry viewkick         -1.2 -1.2    -0.2 0.2    1   "V"  3.0 1.0 1.6 (Colt .45 stats)
  219.  
  220.             // muzzle flash
  221.             entry tagdlight tag_barrel 0.25 0.2 0.15 120 0.11
  222.             entry tagspawnlinked tag_barrel
  223.             (
  224.                 scale 0.2
  225.                 offsetalongaxis 2 0 0
  226.                 count 1
  227.                 scale 0.30
  228.                 model muzsprite.spr
  229.                 life 0.06
  230.             )
  231.             entry tagspawnlinked tag_barrel
  232.             (
  233.                 count 1
  234.                 scalemin 0.15
  235.                 scalemax 0.25
  236.                 model models/fx/muzflash.tik
  237.                 randomroll
  238.                 life 0.04
  239.             )
  240.         }
  241.     }
  242. }
  243.  
  244. /*QUAKED addon_playerweapon_soviet_nagant-m1895 (0.0 0.0 1.0) (-8 -8 -8) (8 8 8)
  245. Soviet pistol - Nagant revolver M1895.
  246. */