Home   Help Search Login Register  

Author Topic: New NVGs idea  (Read 4387 times)

0 Members and 1 Guest are viewing this topic.

HuNtA

  • Guest
Re:New NVGs idea
« Reply #15 on: 02 Sep 2004, 10:12:57 »
the reson why theres no change in the colour is becuase the NV class MUST be green. I think its hard coded into the engine. Cuz if U look at the nv optics, they dont contain a spec of green, at all

DBR_ONIX

  • Guest
Re:New NVGs idea
« Reply #16 on: 02 Sep 2004, 17:13:38 »
I know that, but if you change the optika_nvg to something else, and it loses the green-ness, it's the optics file that links NVGs to the hard-coded green in OFP
If it still works, it will be it either the base class, or something else ( ::) :P)
Hmm, should email BIS and ask them about it :P
- Ben

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:New NVGs idea
« Reply #17 on: 03 Sep 2004, 01:19:25 »
So have you actually tried tinkering with NVG's or not? I tried making a new NVG's class that used an invisible model, so you couldn't see if a unit was wearing them (for my vamps addon). However, it wouldn't work, and after browsing the forums, I found that it was pretty much agreed that making new NVGs is impossible.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

sidhellfire

  • Guest
Re:New NVGs idea
« Reply #18 on: 05 Sep 2004, 21:47:19 »
Impossible does not exist! theres only unbelievable  ;)

DBR_ONIX

  • Guest
Re:New NVGs idea
« Reply #19 on: 07 Sep 2004, 18:04:09 »
I tried the CPP :
class ONIX_NVG:NVGoggles
      {
      displayName="ONIX's NVGs";
      showEmpty=0;
      valueWeapon=5;
      opticsZoomMin=1.0;
      opticsZoomMax=1.0;
      modelOptics="optika_night";
      model="nvg_proxy";
      };

But it says "Undefined baseclass NVGoggles"...
>:(
- Ben

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:New NVGs idea
« Reply #20 on: 07 Sep 2004, 20:53:32 »
Hmm........
class NVGoggles is derived from class Binocular.

Try:

Code: [Select]
class Binocular:Default {};
class NVGoggles:Binocular {};
class ONIX_NVG:NVGoggles
      {
      displayName="ONIX's NVGs";
      showEmpty=0;
      valueWeapon=5;
      opticsZoomMin=1.0;
      opticsZoomMax=1.0;
      modelOptics="optika_night";
      model="nvg_proxy";
      };


Planck
« Last Edit: 07 Sep 2004, 20:54:09 by Planck »
I know a little about a lot, and a lot about a little.

Offline oyman

  • Members
  • *
  • king of pings
Re:New NVGs idea
« Reply #21 on: 08 Sep 2004, 04:44:44 »
i dont think inherting from the nvgoggles class will work :-\

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:New NVGs idea
« Reply #22 on: 08 Sep 2004, 21:14:19 »
Quote
i dont think inherting from the nvgoggles class will work

Possibly not, but he wanted to try.


Planck
I know a little about a lot, and a lot about a little.