Announcement

Collapse
No announcement yet.

Copying Weapons

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Copying Weapons

    Right i know i've been asking alot of questions, but as usual my searching hasn't gotten me anywhere

    so here goes

    After looking at the PR files for the different L85 rifles i had a go myself at 'copying' weapon folders to change them slightly

    for starters i got the rurif_ak47 files and modified them to match the changes that was done by the PR team to make a seperate rifle that worked the same but with some different stats

    i made the file chrif_type56 and ingame it worked, the link to my localization files had work and i didn't CTD

    however there was no noises for the gun at all:

    not while firing (except for empty cases and bullet impact)
    or reloading

    heres what my chrif_type56.con looks like
    Code:
    GeometryTemplate.create BundledMesh chrif_type56
    CollisionManager.createTemplate chrif_type56
    
    ObjectTemplate.create GenericFireArm chrif_type56
    ObjectTemplate.saveInSeparateFile 1
    ObjectTemplate.creator MBA-1:mba
    ObjectTemplate.collisionMesh chrif_type56
    ObjectTemplate.mapMaterial 0 Collision_Material 0
    ObjectTemplate.hasCollisionPhysics 1
    ObjectTemplate.physicsType 3
    ObjectTemplate.geometry rurif_ak47
    
    include chrif_type56.tweak
    and the top bit of my chrif_type56.tweak that i changed
    Code:
    rem *** Generated with Bf2Editor.exe [created: 2005/1/13 10:30]
    GeometryTemplate.compressVertexData 1
    GeometryTemplate.maxTextureRepeat 8
    ObjectTemplate.activeSafe GenericFireArm chrif_type56
    ObjectTemplate.creator MBA-1:mba
    ObjectTemplate.modifiedByUser tda
    ObjectTemplate.saveInSeparateFile 1
    rem ---BeginComp:WeaponHud ---
    ObjectTemplate.createComponent WeaponHud
    ObjectTemplate.weaponHud.weaponIcon Ingame\Weapons\Icons\Hud\RURIF_AK47.tga
    ObjectTemplate.weaponHud.altWeaponIcon Ingame\Weapons\Icons\Hud\RURIF_AK47_mini.tga
    ObjectTemplate.weaponHud.selectIcon Ingame\Weapons\Icons\Hud\Selection\RURIF_AK47.tga
    ObjectTemplate.weaponHud.hudName "KILLMESSAGE_WEAPON_type56"
    ObjectTemplate.weaponHud.guiIndex 4
    ObjectTemplate.weaponHud.altGuiIndex 52
    ObjectTemplate.weaponHud.deviationFactor 5
    ObjectTemplate.weaponHud.maxVisualDeviation 28
    ObjectTemplate.weaponHud.minVisualDeviation 7
    ObjectTemplate.weaponHud.disableOnSprint 1
    rem ---EndComp ---
    any help muchly appreciated

    thanks
    Sars

  • #2
    Re: Copying Weapons

    You need to rename the sound effects in the .tweak; look for S_rurif_ak47 and change them all to S_chrif_type56.

    Comment


    • #3
      Re: Copying Weapons

      thank you very much

      works like a dream now

      Comment

      Working...
      X