Jump to content
fortune144

Vest model with flashlight

Recommended Posts

Hey,

 

i made this plce webbing with flashlight. I thought it would be cool when the flashlight can be used.

81c04b8fee096d8631b54e2ef62aab0a.png

 

My config for the vest looks like:

 

Spoiler

#define PLCE_WEBBING(PATTERN) \

class Plce_##PATTERN : Vest_NoCamo_Base { \

        author = ""; \

        scope = 2; \

        displayName = QUOTE(PLCE  PATTERN); \

        model = "\""\data\plce_webbing\plce_radio.p3d"; \

        hiddenSelections[] = {"camo"}; \

        hiddenSelectionsTextures[] = {QUOTE(""\data\plce_webbing\data\MERGE(PATTERN,_co.paa))}; \

        class ItemInfo: ItemInfo { \

            containerClass = "Supply180"; \

            mass = 10; \

            uniformModel = "\""\data\plce_webbing\plce_radio.p3d"; \

            hiddenSelections[] = {"camo"}; \

            class FlashLight \

            { \

                color[] = {180,150,120}; \

                ambient[] = {9,7.5,6}; \

                intensity = 23; \

                size = 1; \

                innerAngle = 20; \

                outerAngle = 120; \

                coneFadeCoef = 55; \

                position = "flashlight_pos"; \

                direction = "flashlight_dir"; \

                useFlare = 1; \

                flareSize = 0.4; \

                flareMaxDistance = "100.0f"; \

                dayLight = 1; \

                class Attenuation \

                { \

                    start = 0.5; \

                    constant = 0; \

                    linear = 0; \

                    quadratic = 1; \

                    hardLimitStart = 20; \

                    hardLimitEnd = 30; \

                }; \

                scale[] = {0}; \

            }; \

        }; \

    };  

 

My model has the memory lod with the sections "flashlight_pos" and "flashlight_dir".

 

It's not working. What i'm doing wrong? Is this method only working with the pistol_base class? Is it better to illuminate the light via script?

 

Share this post


Link to post
Share on other sites
On 10/20/2019 at 12:44 PM, fortune144 said:

It's not working.

Correct.

On 10/20/2019 at 12:44 PM, fortune144 said:

What i'm doing wrong?

Nothing, vests can't have integrated flashlights.

  • Like 1

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

×