home *** CD-ROM | disk | FTP | other *** search
/ GameStar Special 2004 September / GSSH0904CD2.iso / Doom3 / Mods / Chaingunfix / Chaingunfix.exe / pak005.pk4 / def / weapon_chaingun.def
Text File  |  2004-08-06  |  8KB  |  244 lines

  1. /***********************************************************************
  2.  
  3.     weapon_chaingun.def
  4.  
  5. ***********************************************************************/
  6.  
  7. export fred {
  8.     // viewmodel chaingun
  9.  
  10.     options -prefix CHAINGUN_ -keep eject muzzle barrel flash guilight -parent eject chaingun -parent flash chaingun -parent guilight chaingun -parent barrel chaingun -rename barrel spinner -rename muzzle barrel -rename origin blah
  11.  
  12.     mesh    models/weapons/chaingun/cycles/idle.mb -dest models/md5/weapons/chaingun_view/viewchaingun
  13.     anim    models/weapons/chaingun/cycles/raise.mb -dest models/md5/weapons/chaingun_view/raise
  14.     anim    models/weapons/chaingun/cycles/idle.mb -dest models/md5/weapons/chaingun_view/idle
  15.     anim    models/weapons/chaingun/cycles/fireloop.mb -dest models/md5/weapons/chaingun_view/fireloop
  16.     anim    models/weapons/chaingun/cycles/reload.mb -dest models/md5/weapons/chaingun_view/reload
  17.     anim    models/weapons/chaingun/cycles/noammo.mb -dest models/md5/weapons/chaingun_view/noammo    
  18.     anim    models/weapons/chaingun/cycles/lower.mb -dest models/md5/weapons/chaingun_view/lower
  19.     anim    models/weapons/chaingun/cycles/windup.mb -dest models/md5/weapons/chaingun_view/windup
  20.     anim    models/weapons/chaingun/cycles/winddown.mb -dest models/md5/weapons/chaingun_view/winddown
  21.  
  22.     // world model chaingun
  23.     options -ignorescale -prefix PLAYER_CHAINGUN_ -keep ATTACHER barrel eject flash -parent barrel body -parent eject body -parent flash body -rename ATTACHER origin -clearorigin 
  24.  
  25.     mesh    models/characters/player/mocap/chaingun_idle.mb -dest models/md5/weapons/chaingun_world/worldchaingun
  26.     anim    models/characters/player/mocap/chaingun_idle.mb -range 1 80 -dest models/md5/weapons/chaingun_world/chaingun_idle
  27.     anim    models/characters/male_npc/cycles/tweakedplayermoves/chaingun_fire.mb -range 16 30 -dest models/md5/weapons/chaingun_world/chaingun_fire
  28. }
  29.  
  30. entityDef weapon_chaingun {
  31.     "editor_color"                ".3 .3 1"
  32.     "editor_mins"                "-16 -16 0"
  33.     "editor_maxs"                "16 16 32"
  34.     "editor_usage"                "Chaingun"
  35.     "editor_rotatable"            "1"
  36.  
  37.     "spawnclass"                "idItem"
  38.     "size"                        "32 32 32"
  39.     "model"                        "models/weapons/chaingun/w_chaingun.lwo"
  40.     "model_view"                 "viewmodel_chaingun"
  41.     "model_world"                 "worldmodel_chaingun"
  42.     "joint_attach"                "CHAINGUN_ATTACHER"
  43.     "def_dropItem"                "moveable_item_chaingun"
  44.  
  45.     "inv_name"                    "Chaingun"
  46.     "inv_weapon"                "weapon_chaingun"
  47.     "inv_ammo_belt"                "250"
  48.     "inv_item"                    "5"
  49.     "icon"                        "guis/assets/hud/wpn_11"
  50.  
  51.     "gui"                        "guis/weapons/chaingun.gui"
  52.     "mtr_guiLightShader"        "lights/viewWeaponGuiLight"
  53.     
  54.     "weapon_scriptobject"        "weapon_chaingun"
  55.     "def_projectile"            "projectile_chaingunbullet"
  56.     "ammoType"                    "ammo_belt"
  57.     "ammoRequired"                "1"
  58.     "clipSize"                    "300"
  59.     "lowAmmo"                    "50"
  60.     "mtr_flashShader"            "muzzleflash"
  61.     "flashColor"                "1 0.8 0.4"
  62.     "flashRadius"                "600"
  63.     "silent_fire"                "0"
  64.     "muzzle_kick_time"            ".1"
  65.     "muzzle_kick_maxtime"        ".6"
  66.     "muzzle_kick_angles"        "-4 -5 -10"
  67.     "muzzle_kick_offset"        "1 1 2"
  68.     "recoilTime"                "100"
  69.     "recoilAngles"                "-1 0 0"
  70.  
  71.     "hide_time"                    "0.3"                                // time to hide weapon when talking to npcs or looking at guis
  72.     "hide_distance"                "-25"                                // distance to offset weapon when talking to npcs or looking at guis
  73.  
  74.     "weaponAngleOffsetAverages" "10"
  75.     "weaponAngleOffsetScale"     ".5"
  76.     "weaponAngleOffsetMax"        "25"
  77.     "weaponOffsetTime"            "400"
  78.     "weaponOffsetScale"            "0.005"
  79.  
  80.     "smoke_wound_metal"                "bulletricochet.prt"
  81.     "smoke_wound_ricochet"            "bulletricochet.prt"
  82.  
  83.     "smoke_muzzle"                "cgmuzzlesmoke.prt"
  84.  
  85.     "snd_acquire"                "player_chaingun_acquire"
  86.     "snd_respawn"                "sound_weapon_respawn"
  87.     "snd_fire"                    "player_chaingun_fire"
  88.     "snd_winddown"                "player_chaingun_winddown"
  89.     "snd_windup"                "player_chaingun_windup"
  90.     "snd_lowammo"                 "player_machinegun_lowammo"
  91.     "snd_spin"                    "player_chaingun_motorloop"
  92.  
  93.     "skin_invisible"            "skins/chaingun_invis"
  94.  
  95.     "def_ejectBrass"            "debris_brass"
  96.     "ejectBrassDelay"            "10"
  97.     
  98.     "spread"                    "14"
  99. }
  100.  
  101. entityDef moveable_item_chaingun {
  102.     "inherit"                    "weapon_chaingun"
  103.     "spawnclass"                "idMoveableItem"
  104.     "density"                    "0.05"
  105.     "friction"                    "0.2"
  106.     "bouncyness"                "0"
  107. }
  108.  
  109. model worldmodel_chaingun {
  110.     mesh                        models/md5/weapons/chaingun_world/worldchaingun.md5mesh
  111.         
  112.     anim idle                     models/md5/weapons/chaingun_world/chaingun_idle.md5anim
  113.     anim fire                    models/md5/weapons/chaingun_world/chaingun_fire.md5anim
  114.     anim chaingun_fire            models/md5/weapons/chaingun_world/chaingun_fire.md5anim
  115. }
  116.  
  117. model viewmodel_chaingun {
  118.     mesh                         models/md5/weapons/chaingun_view/viewchaingun.md5mesh
  119.     offset                        ( 0.5 -2.5 -8.5 )
  120.  
  121.     anim raise                    models/md5/weapons/chaingun_view/raise.md5anim {
  122.         frame    1                sound_body player_chaingun_acquire
  123.     }
  124.     anim idle1                     models/md5/weapons/chaingun_view/idle.md5anim
  125.     anim windup                    models/md5/weapons/chaingun_view/windup.md5anim {
  126.         frame    1                sound_body3 player_chaingun_windup
  127.         //frame    10                sound_body3 player_chaingun_motorloop
  128.     }
  129.     /*
  130.     anim fire                     models/md5/weapons/chaingun_view/fireloop.md5anim {
  131.         frame    1                sound_weapon player_chaingun_fire
  132.     }
  133.     */
  134.     anim winddown                models/md5/weapons/chaingun_view/winddown.md5anim {
  135.             frame    1                sound_body3 player_chaingun_winddown
  136.     }
  137.     anim putaway                models/md5/weapons/chaingun_view/lower.md5anim
  138.     anim reload                    models/md5/weapons/chaingun_view/reload.md5anim {
  139.         frame    17                sound_body player_chaingun_reload
  140.     }
  141.     anim noammo                    models/md5/weapons/chaingun_view/noammo.md5anim
  142. }
  143.  
  144. entityDef projectile_chaingunbullet {
  145.     "spawnclass"                "idProjectile"
  146.     "mins"                        "-1 -1 -1"
  147.     "maxs"                        "1 1 1"
  148.     "cone"                        "3"
  149.     "scale"                        "0.1"
  150.     "noshadows"                    "1"
  151.     "tracers"                    "1"
  152.     "model_tracer"                "models/particles/tracer/tracer.lwo"
  153.     
  154.     "def_damage"                "damage_bullet_chaingun"
  155.                                 
  156.     "launchFromBarrel"            "1"
  157.     "health"                    "0"
  158.     "velocity"                    "2000 0 0"    // .38 Special 600 fps.  Source: Petzal, David E. "How fast is a speeding bullet." Field and Stream. 97 (1992): 23
  159.     "angular_velocity"            "0 0 0"
  160.     "thrust"                    "0"
  161.     "thrust_start"                "0"
  162.     "thrust_end"                "0"
  163.     "linear_friction"            "0"
  164.     "angular_friction"            "0"
  165.     "contact_friction"            "0"
  166.     "bounce"                    "0.6"
  167.     "mass"                        "8"
  168.     "push"                        "2000"
  169.     "gravity"                    "0"
  170.     "fuse"                        "4"
  171.  
  172.     "detonate_on_fuse"            "0"
  173.     "detonate_on_death"            "0"
  174.     "detonate_on_world"            "1"
  175.     "detonate_on_actor"            "1"
  176.  
  177.     "impact_damage_effect"        "1"
  178.     "impact_gib"                "1"
  179.  
  180.     "mtr_detonate"                "textures/decals/bulleth02"
  181.     "mtr_detonate_glass"        "textures/decals/testbulletglass1"
  182.     "decal_size"                "10"
  183.  
  184.     "model_smokespark"            "cgsmokeandspark.prt"
  185.     "model_ricochet"            "bulletricochet.prt"
  186.     
  187.     "smoke_wound_flesh"            "burstysquirt.prt"
  188.     "smoke_detonate"            "smokeandspark.smoke"
  189.     "smoke_residue"             ""    //particles/chaingun_residue.particle"
  190.     "smoke_bounce"                ""    //particles/chaingun_bounce.particle"
  191.     "smoke_fuse"                ""
  192.  
  193.     "mtr_light_shader"            ""
  194.     "light_color"                "0 0 0"
  195.     "light_radius"                "0"
  196.     "light_offset"                "0 0 0"
  197.  
  198.     "mtr_explode_light_shader"    ""
  199.     "explode_light_color"        "0 0 0"
  200.     "explode_light_radius"        "0"
  201.     "explode_light_fadetime"    "0"
  202.  
  203.     "snd_flesh"                    "bullet_impact_flesh"
  204.     "snd_metal"                    "bullet_impact_metal"
  205.     "snd_stone"                    "bullet_impact_stone"
  206.     "snd_wood"                    "bullet_impact_wood"
  207.     "snd_cardboard"                "bullet_impact_cardboard"
  208.     "snd_glass"                    "bullet_impact_glass"
  209.     "snd_liquid"                "bullet_impact_liquid"
  210.     "snd_plastic"                "small_plastic"
  211.     "snd_ricochet"                "bullet_ricochet"
  212. //    "snd_impact"                ""            // we need a much smaller impact sound for the chaingun bullet  "bullet_impact_metal"
  213.     "snd_tracer"                "bullet_flight"
  214. }
  215.  
  216. entityDef    damage_bullet_chaingun {
  217.     "damage"            "4"
  218.     "kickDir"            "1 0 0"
  219.  
  220.     "mtr_blob"            "genericDamage"
  221.     "blob_time"            "300"
  222.     "blob_size"            "400"
  223.     "blob_offset_x"        "400"
  224.  
  225.     "knockback"            "1"
  226.     
  227.     "gib"                "1"
  228.     "smoke_wound_flesh"    "bloodwound.ptr"
  229.     "mtr_wound_flesh"    "textures/decals/hurt02"
  230.     "mtr_wound_metal"    "textures/decals/hurtmetal"
  231.     "mtr_wound_ricochet"    "textures/decals/hurtmetal"
  232.     "mtr_splat_flesh"    "textures/decals/dsplat2"
  233.     "mtr_splat_flesh2"    "textures/decals/dsplat5"
  234.     "mtr_splat_flesh3"    "textures/decals/dsplat7"
  235.     "mtr_splat_flesh4"    "textures/decals/dsplat11"
  236.  
  237.     "kick_time"        "100"
  238.     //"kick_time"        "10"
  239.     "kick_amplitude"    "0.3"
  240.  
  241.     //"dv_time"            "100"
  242.  
  243. }
  244.