OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods Beta Testing => Topic started by: Ranger Bob on 11 Dec 2002, 15:44:18

Title: Flashlights on weapons
Post by: Ranger Bob on 11 Dec 2002, 15:44:18
I was wondering if its possible to make a flashlight work on a weapon using the action menu or something. I've made M4s with flashlight and it would be great if they could work.

Download the beta m4s at: www.freewebs.com/rangerbobsworkshop/

its in the addons section
Title: Re:Flashlights on weapons
Post by: STGN on 11 Dec 2002, 16:22:50
I dont think this is the forum fore such a question but enyway i don't think it is posibel to atach a flashlight on a gun because
the OFP engine dosen't allow it tho i have heard that if you make a script or alter the engine it is posibel.
From what I can see on the pictures your M4's look good but I can't download it it just say 404 - Page Not Found.
Maby you presst a rong boutten or somthing when you made the link.
STGN
Title: Re:Flashlights on weapons
Post by: Ranger Bob on 11 Dec 2002, 21:40:12
Hmmm... well i tried to access my site at around 1.00 pm GMT and i got the same message, but i can get to it now. I'll check the link though.
Title: Re:Flashlights on weapons
Post by: STGN on 11 Dec 2002, 22:35:25
well now it works I have just downloaded both your M4 pack's
STGN
Title: Re:Flashlights on weapons
Post by: Ranger Bob on 11 Dec 2002, 23:13:15
yeh i just fixed them! thanks for the heads up, feel free to comment on them
Title: Re:Flashlights on weapons
Post by: BoNeCoLLeCToR on 12 Dec 2002, 02:30:40
When you fix the no shadow bug on the guns + the weapons are not compatible with 1.75+ above you see the flash
When you gonna fix these bugs m8 ???
The models looks very cool when you fix the bugs it can be a topper m8 ;)
Title: Re:Flashlights on weapons
Post by: registered_fugitiv on 12 Dec 2002, 09:08:51
um ive got 1.90 and there was no flash bug
but there was the flash there the hole time in the shadow
Title: Re:Flashlights on weapons
Post by: BoNeCoLLeCToR on 12 Dec 2002, 18:45:01
Where have you put the addons in res folder or regular ofp addons folder ???
Title: Re:Flashlights on weapons
Post by: Ranger Bob on 12 Dec 2002, 19:45:45
well i have the addons in my res folder and i'm running 1.75 and everything is cool but the shadows and i dont have a clue whats wrong with them.
Title: Re:Flashlights on weapons
Post by: registered_fugitiv on 13 Dec 2002, 02:37:28
mine is also in my res folder
Title: Re:Flashlights on weapons
Post by: BoNeCoLLeCToR on 13 Dec 2002, 03:07:02
my fault guys it works great ::)
Title: Re:Flashlights on weapons
Post by: BoNeCoLLeCToR on 13 Dec 2002, 03:07:39
Ranger Rob have you solved your face problem on the marines ???
Title: Re:Flashlights on weapons
Post by: STGN on 13 Dec 2002, 14:45:57
Well here is a clu to your shadow problem your models have too many faces. I don't mind it cause it makes the waepons look much better. My guns don't have shadow ether as you will see if you download them but they have a great model i think :).
http://www.freewebs.com/stgn-addonsworkshop/
STGN
Title: Re:Flashlights on weapons
Post by: Ranger Bob on 14 Dec 2002, 13:54:27
is there anyway to fix the shadow problem. And i'm working on the random faces. thanks :)
Title: Re:Flashlights on weapons
Post by: Jackal326 on 23 Dec 2002, 00:55:17
As has been said, Flashlights are currently impossible. If you examine the HK's model you'll see points on the Memory LOD for them, but BIS must have changed their minds about implementing it into the final game.

As for random faces, I beleive that is all about the definition of the units in the Config.cpp. and how the sections are defined in the model its self.

Here is an example of the Class CfgModels section of a unit to get "random" faces.

class CfgModels
{
   class Default {};
   class Head: Default {};
   class Man: default {};
   
   ///MEN
   class CLASSNAMEofMan: Man
   {
      sections[] =
      {
      SECTIONS OF MODEL HERE
      };
      sectionsInherit=Head;
   };
   class ModelNameHere: CLASSNAMEofMan {};
};

I hope that helps you out.

And as regards the shadows etc, to solve that, you have to have LESS than 300 faces in a LOD. (Not sure which LOD, but I think it says on the Official Forums.)
Title: Re:Flashlights on weapons
Post by: Ranger Bob on 23 Dec 2002, 22:16:41
Thankyou for your help! :D
Title: Re:Flashlights on weapons
Post by: registered_fugitiv on 24 Dec 2002, 01:26:06
um i think its 0.700
Title: Re:Flashlights on weapons
Post by: STGN on 07 Jan 2003, 12:55:22
look it the topic shadow on high count models and remeber you need a model whit less than 300 polys to make shadow.
STGN
Title: Re:Flashlights on weapons
Post by: STGN on 23 Jan 2003, 11:46:29
well you cant have light coming out of your weapon but you can make it look like go to my site and look at the soldier whit the light.
STGN