Jump to content
  • 0

Right-Click script for color correction/ambient sound


Blestda86ta

Question

11 answers to this question

Recommended Posts

  • 0
18 hours ago, Blestda86ta said:

Trying to find a way to right click and turn off/on ambient sound and color corrections. I'm using the 'deploy anything' script. Anyone know how to do this? I also need the script for color correction/ambient sound if they are scripts.

try this:

1-Create in this path: yoru server root\mpmissions\your instance\colorEnv\

2-Into this new path create:

A-env.sqf

Spoiler

if(isNil "Environment") then {Environment = true;} else {Environment = !Environment};

if (Environment) then {

enableEnvironment = false;

}else{
	enableEnvironment = true;
};

 

B- colormenu.sqf

Spoiler

_Actions = "colorEnv\";
_path1 = 'player execVM "'+_Actions+'%1"';


MainActionMenu =
[
	["COLOR MENU",true],
		["AFRICA", [],  "", -5, [["expression", format[_path1,"africa.sqf"]]], "1", "1"],
		["WASTELAND", [],  "", -5, [["expression", format[_path1,"wasteland.sqf"]]], "1", "1"],	
		["NORMAL", [],  "", -5, [["expression", format[_path1,"normal.sqf"]]], "1", "1"],
        
            ["", [], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];



showCommandingMenu "#USER:MainActionMenu";

 

Note: infistar maybe need add #MainActionMenu

D- africa.sqf

Spoiler

colortheme = ppEffectCreate ["colorCorrections", 1501];
colortheme ppEffectEnable true;
colortheme ppEffectAdjust [ 1, 1.3, 0.001, [-0.11, -0.65, -0.76, 0.015],[-5, -1.74, 0.09, 0.86],[-1.14, -0.73, 1.14, -0.09]];
colortheme ppEffectCommit 0;

 

wasteland.sqf

Spoiler

colortheme = ppEffectCreate ["colorCorrections", 1501];
colortheme ppEffectEnable true;
colortheme ppEffectAdjust [1, 1, 0, [0.0, 0.0, 0.0, 0.0], [0.8*2, 0.5*2, 0.0, 0.7], [0.9, 0.9, 0.9, 0.0]];
colortheme ppEffectCommit 0;

 

normal.sqf

Spoiler

colortheme ppEffectEnable false;
ppEffectDestroy colortheme;

 

3-Now in your config,sqf (deploy anything mod)  add this two lines to add the actions to the etool.

["ItemEtool","ColorCorrection","execVM 'colorEnv\colormenu.sqf';","true"],
["ItemEtool","Environmentsound","execVM 'colorEnv\env.sqf';","true"]

 

Link to comment
Share on other sites

  • 0
4 hours ago, juandayz said:

try this:

1-Create in this path: yoru server root\mpmissions\your instance\colorEnv\

2-Into this new path create:

A-env.sqf

  Reveal hidden contents


if(isNil "Environment") then {Environment = true;} else {Environment = !Environment};

if (Environment) then {

enableEnvironment = false;

}else{
	enableEnvironment = true;
};

 

B- colormenu.sqf

  Reveal hidden contents


_Actions = "colorEnv\";
_path1 = 'player execVM "'+_Actions+'%1"';


MainActionMenu =
[
	["COLOR MENU",true],
		["AFRICA", [],  "", -5, [["expression", format[_path1,"africa.sqf"]]], "1", "1"],
		["WASTELAND", [],  "", -5, [["expression", format[_path1,"wasteland.sqf"]]], "1", "1"],	
		["NORMAL", [],  "", -5, [["expression", format[_path1,"normal.sqf"]]], "1", "1"],
        
            ["", [], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];



showCommandingMenu "#USER:MainActionMenu";

 

Note: infistar maybe need add #MainActionMenu

D- africa.sqf

  Reveal hidden contents


colortheme = ppEffectCreate ["colorCorrections", 1501];
colortheme ppEffectEnable true;
colortheme ppEffectAdjust [ 1, 1.3, 0.001, [-0.11, -0.65, -0.76, 0.015],[-5, -1.74, 0.09, 0.86],[-1.14, -0.73, 1.14, -0.09]];
colortheme ppEffectCommit 0;

 

wasteland.sqf

  Reveal hidden contents


colortheme = ppEffectCreate ["colorCorrections", 1501];
colortheme ppEffectEnable true;
colortheme ppEffectAdjust [1, 1, 0, [0.0, 0.0, 0.0, 0.0], [0.8*2, 0.5*2, 0.0, 0.7], [0.9, 0.9, 0.9, 0.0]];
colortheme ppEffectCommit 0;

 

normal.sqf

  Reveal hidden contents


colortheme ppEffectEnable false;
ppEffectDestroy colortheme;

 

3-Now in your config,sqf (deploy anything mod)  add this two lines to add the actions to the etool.


["ItemEtool","ColorCorrection","execVM 'colorEnv\colormenu.sqf';","true"],
["ItemEtool","Environmentsound","execVM 'colorEnv\env.sqf';","true"]

 

@juandayz Thank you!

Link to comment
Share on other sites

  • 0
Just now, Blestda86ta said:

yes the option came up but nothing happened when I pressed

do you put all sqf that you created into mpmissions\your instance\colorEnv\  ?

I dont have arma2 anymore so cannot test.. but try replace the env.sqf by this other one:

env.sqf

Spoiler

ColorMenu =
[
	["COLOR MENU",true],
	    ["NORMAL", [],  "", -5, [["expression","execVM 'colorEnv\normal.sqf'"]], "1", "1"],
		["AFRICA", [],  "", -5, [["expression","execVM 'colorEnv\africa.sqf'"]], "1", "1"],
		["WASTELAND", [],  "", -5, [["expression","execVM 'colorEnv\wasteland.sqf'"]], "1", "1"],
		
        
            ["", [], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];



showCommandingMenu "#USER:ColorMenu";

 

then try the option "colorcorrection" located over the etool again.

If still dsnt works.. try to do it pressing a key.. (using a custom keyboard.sqf)

 

Link to comment
Share on other sites

  • 0

Even though your a copy cat and a snake. Trying to copy my server from the custom vehicles, custom traders, map etc. I still just helped you.

 After what I seen today. That will be the last time.

Spoiler

9BE90502E89C918E5B09347286D4F21A6DE13ED6

Spoiler

F3C0DF14EF62251E2B4A3446E24BD165A0603D2F

from my rcon second to last name. "I took your ip out your welcome"

Spoiler
76561198043336447
 
Steam ID
 
10 days ago
 
 
Dakota
 
Name
 
10 days ago
 
d7442d7ed064d648be6a621d3a35c8ca
 
Legacy BattlEye GUID
 
10 days ago
2a5ce1a3ee692efb5882da7c627e6802
 
BattlEye GUID
 
10 days ago
Da26ta
 
Name
 
a month ago
 
Blestda86ta
 
Name
 
9 months ago
 
Blake
 
Name
 
a year ago

 

 last chat messages

making a cherno map

all I'm doing is looking at the af and logging out

08/12/2017 4:06 PM
(Side)
making a cherno map
 
(Side)
all i'm doing is looking at the af and logging out
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...