Home   Help Search Login Register  

Author Topic: Changing the recoil?  (Read 1113 times)

0 Members and 1 Guest are viewing this topic.

OPF@ndy

  • Guest
Changing the recoil?
« on: 24 Oct 2004, 18:02:34 »
Hi can anyone help,
How do i adjust the recoil on this weapon: (I think theres too much recoil for this weapon, and its for personal use ONLY ofcourse  ;))

// some basic defines
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

#define true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2

#define WeaponNoSlot            0// dummy weapons
#define WeaponSlotPrimary      1// primary weapons
#define WeaponSlotSecondary   16// secondary weapons
#define WeaponSlotItem         256// items
#define WeaponSlotBinocular   4096// binocular
#define WeaponHardMounted      65536

class CfgPatches
{
   class RUSBCC
   {
      units[] = {"SoldierERUSBCC"};
      weapons[] = {"RUSBCC","RUSBCCBase","RUSBCCMag"};
      requiredVersion = 1.75;
   };
};

class CfgAmmo
{
   class default {};
   class BulletSingle : default{};
   class BulletSingleE: BulletSingle {};   
   class RUSBCCBullet : BulletSingleE
   {
      hit=11;
      indirectHit=1;
      indirectHitRange=0.5;
      visibleFire=0.025000;
      audibleFire=0.025000;
      tracerColor[]={0,0,0,0.000000};
      tracerColorR[]={0,0,0,0.000000};      
   };
   
};

class CfgModels
{
   class default {};
   class Weapon: default {};
   class RUSBCC: Weapon {};
   
};


class CfgWeapons
{
   class Default   {};
   class MGun: Default {};
   class Riffle: MGun {};
   class RUSBCCBase: Riffle   {
      scopeWeapon=2;
      scopemagazine=0;
      model="\RUSBCC\RUSBCC.p3d";
      modelOptics="optika_snpiere.p3d"
      opticsZoomMin=0.01;
      opticsZoomMax=0.5;
      distanceZoomMin=2000;
      distanceZoomMax=80;
                ammo=RUSBCCBullet;
                  recoil=riffleSilenced;
      recoilfixed=empty;
      count=10;
      displayName="BCC";
      displayNameMagazine="RUSBCC Mag.";
      shortNameMagazine="RUSBCCmag";
      drySound[]={"weapons\AK74Dry",1.000000,1};
      magazines[]={"RUSBCCMag"};
      accuracy=1000;
      initspeed=5000;
                picture="\RUSBCC\SVU.jpg"
      modes[]={"Single","FullAuto"};
               
                class Single
      {
         ammo="RUSBCCBullet";
         multiplier=1;
         burst=1;
         displayName="BCC";
         dispersion=0.000110;
         sound[]={\RUSBCC\Val.wav,0.000516,1};
         soundContinuous=0;
         reloadTime=0.130000;
         ffCount=1;
         recoil="riffleSingle";
         autoFire=0;
         aiRateOfFire=5.000000;
         aiRateOfFireDistance=500;
         useAction=0;
         useActionTitle="";
      };      
      class FullAuto
      {
         ammo="RUSBCCBullet";
         multiplier=1;
         burst=1;
         displayName="BCC Full Auto";
         dispersion=0.000800;
         sound[]={\RUSBCC\Val.wav,0.000916,1};   
         soundContinuous=0;
         reloadTime=0.100000;
         ffCount=30;
         recoil="riffleBurst3";
         autoFire=1;
         aiRateOfFire=5.000000;
         aiRateOfFireDistance=500;
         useAction=0;
         useActionTitle="";
      };
};
      
   
   class RUSBCC: RUSBCCBase   {      
      scopeWeapon=2;
      scopeMagazine=0;
      
   };

   class RUSBCCMag: RUSBCCBase   {
      scopeWeapon=0;
      scopeMagazine=2;   
      picture="\RUSBCC\m_g3.paa";
   };      
   
};

class CfgVehicles
{
   class All{};
   class AllVehicles:All{};
   class Land:AllVehicles{};
   class Man:Land{};
   class Soldier:Man{};
   class SoldierEB:Soldier{};
        class SoldierESaboteur:SoldierEB{};
        class SoldierESaboteurPipe:SoldierESaboteur{};
   class SoldierERUSBCC:SoldierESaboteurPipe   {
      accuracy=1000;   
      displayName="Soldier (RUSBCC)";
      weapons[]={"RUSBCC","Binocular","Throw","Put","NVGoggles","KEGmakarov"};
      magazines[]={"RUSBCCMag","RUSBCCMag","RUSBCCMag","RUSBCCMag","RUSBCCMag","RUSBCCMag","RUSBCCMag","RUSBCCMag","HandGrenade","HandGrenade","KEGmakarovMag","KEGmakarovMag","KEGmakarovMag","KEGmakarovMag"};      
   };
};




Thanks for ur help  ;D

Nulear_Man

  • Guest
Re:Changing the recoil?
« Reply #1 on: 29 Oct 2004, 21:38:22 »
thats easy

just just add this class:
Code: [Select]
class CfgRecoils
{
   sniperSingle[]=
   {
                // time, offset, angle
      0.02,0,0,
      0.05,0.01,0.02,
      0.1,0.008,0.018,
      0.2,0,0
   };
};
this is the recoil for the sniper rifles