Jump to content

Sign in to follow this  
hamis

Problem with GL

Recommended Posts

I have replaced AKS74UN with RH_aks74uptsp,but can't make it work.Either i get always GL optics or GL doesn't work.I made this with weapons config.Now pso scope works,but gl doesnt.<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class AKS74UN: AKS74U

{

fireLightDuration = 0;

fireLightIntensity = 0;

dexterity = 1.8;

model = "\RH_aks\RH_aks74uptsp.p3d";

modelOptics = "\RH_aks\NWD_PSO_1_1_AK74";

opticsZoomMin = 0.091945;

opticsZoomMax = 0.091945;

opticsFlare = "true";

opticsDisablePeripherialVision = "true";

distanceZoomMin = 228;

distanceZoomMax = 228;

picture = "\RH_aks\inv\aks74uptsp.paa";

UiPicture = "\CA\weapons\data\Ico\i_regular_CA.paa";

modes[] = {"Single","Burst","FullAuto"};

muzzles[] = {"AK74Muzzle","hamis_GP25Muzzle","GP25Muzzle"};

class hamis_GP25Muzzle: AK74

{

class Single: Mode_SemiAuto

{

sound[] = {"\ca\Weapons\Data\Sound\AKSD_1", 0.316228, 1};

};

class Burst: Mode_Burst {

sound[] = {"\ca\Weapons\Data\Sound\AKSD_1", 0.316228, 1};

};

class FullAuto: Mode_FullAuto

{

sound[] = {"\ca\Weapons\Data\Sound\AKSD_1", 0.316228, 1};

};

};

class AK74Muzzle:AK74

{

modelOptics = "\RH_aks\NWD_PSO_1_1_AK74";

opticsZoomMin = 0.071945;

opticsZoomMax = 0.071945;

opticsFlare = "true";

opticsDisablePeripherialVision = "true";

distanceZoomMin = 228;

distanceZoomMax = 228;

};

class GP25Muzzle: GrenadeLauncher

{

displayName = "BS-1 Tishina Grenadelauncher";

optics = 1;

modelOptics = "-";

cameraDir = "GL look";

memoryPointCamera = "GL eye";

opticsZoomMin = 0.22;

opticsZoomMax = 0.95;

opticsZoomInit = 0.42;

magazineReloadTime = 0;

reloadTime = 0.1;

sound[] = {"\RH_aks\Sound\BS-1.wss",0.2,1};

reloadMagazineSound[] = {"\RH_aks\Sound\GP30_reload.wss",0.1,1};

magazines[] = {"1Rnd_HE_GP25", "FlareWhite_GP25", "FlareGreen_GP25", "FlareRed_GP25", "FlareYellow_GP25","RH_1Rnd_30mm"};

};

displayName = "AKs-74u PSO sd w/Bs-1";

drySound[] = {"\ca\Weapons\Data\Sound\AK47_dry_v1",0.0001,1};

reloadMagazineSound[] = {"\ca\Weapons\Data\Sound\AK47_fill_v3",0.000562341,1};

class Library

{

libTextDesc = "$STR_LIB_AKS74_UN";

};

};

Please help. help.gif  help.gif

Share this post


Link to post
Share on other sites

I guess, the RH_bs1Muzzle has working launcher and the GP25Muzzle hast working optics?

I think the GP25Muzzle is the standard-definition by BI, so I suggest to use this way of definition:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> muzzles[] = {"AK74Muzzle","hamis_GP25Muzzle"};

  class AK74Muzzle: AK74{};

class hamis_GP25Muzzle: GP25Muzzle

   {

    modelOptics = "\RH_aks\NWD_PSO_1_1_AK74";

    opticsZoomMin = 0.091945;

   opticsZoomMax = 0.091945;

    opticsFlare = "true";

    opticsDisablePeripherialVision = "true";

    distanceZoomMin = 228;

    distanceZoomMax = 228;

    };

this way, the magazines should be defined by the base class GP25Muzzle, where the optics and zoom values should be overridden by your values.

I hope it works....

BR,

mike

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class hamis_GP25Muzzle: GP25Muzzle

{

modelOptics = "\RH_aks\NWD_PSO_1_1_AK74";

opticsZoomMin = 0.091945;

opticsZoomMax = 0.091945;

opticsFlare = "true";

opticsDisablePeripherialVision = "true";

distanceZoomMin = 228;

distanceZoomMax = 228;

};

I removed this part and it did nothing.Still gl works but optics don't.Please help me! banghead.gifbanghead.gifbanghead.gif

Share this post


Link to post
Share on other sites

Hi Hamis,

just found some minutes to check it. It seems that there is another flag to set: optics = 1;

I have included this into an example replacement config, where the AK74GL gets binocular optics: ak74GL example

I hope this helps now,

mike

Share this post


Link to post
Share on other sites

Thank's for help,Mike!Now i got it almost working,problems are that it uses normal ak74 sounds instead of silenced ones and i have to cycle through all modes before i get pso optics instead of gl optics.I updated config on my first post.

Share this post


Link to post
Share on other sites

Hi Hamis,

check this pastebin link

The muzzle-definition for the ak74gl is a bit tricky.... crazy_o.gif

I have tested this on 1.08... I hope that BI did not change this for 1.14. confused_o.gif

cu,

mike

Share this post


Link to post
Share on other sites

Nope,still doesn't work.First post updated again,did i do something wrong?

Share this post


Link to post
Share on other sites

From my point of view, you need only the AK74Muzzle plus one muzzle for the grenadelauncher. The AK74Muzzle includes all fire modes for bullets.

You included the silenced sound into the GP25 muzzle, which is used for the grenades.

Share this post


Link to post
Share on other sites
  [b said:
Quote[/b] ]From my point of view, you need only the AK74Muzzle plus one muzzle for the grenadelauncher

Yep,tried that but lost pso sight again.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×