Jump to content
champ-1

CH View Distance Addon

Recommended Posts

The addon version looks good. Is it possible to override the settings, if players use the addon version, with the script version? If missionmaker want to force grass and view distance for players on a specific setting, is this possible to override the addon settings (and possible automatic deactivate it)? We like to use addon but on some missions its better for mission maker to set values (e.g. PvP).

We have a clanpack and want to offer players to feel free changing their VD to their needs. Only on some missions, like i said PvP, the mission maker should have the option to override the settings and deactivate the action button so no one can change his settings on his own.

An additional idea would be: Just let the admin/missionmaker slot decide what everyone's VD should be while the mission is running.

For performance reasons it would be good if at start the mission the view distance settings would be the first 30 seconds 500m for every player and then slowly recover the settings everyone (or the mission maker) has set before. So the server could load the hole map and after that all players can have more and dont have a performance issiue the first 30sec.

Perhaps this could be added to an gameplaymod like AGM? They use a own action menu, would be cool like Bara said to reduce the normal action menu scroll down list. Or perhaps open and close with a shortcut?

If both script and addon versions are running, addon version will terminate and let the script version run.

You can limit player VD both with script and addon version by adding these variables in your mission file:

CHVD_allowNoGrass = true; // Set 'false' if you want to disable "Low" option for terrain (default: true)
CHVD_maxView = 2500; // Set maximum view distance (default: 12000)
CHVD_maxObj = 2500; // Set maximimum object view distance (default: 12000)  

I guess I should add this info to the first post.

If you have basic understanding of scripting, you can edit script and move action from scroll menu to AGM self-interaction menu pretty easily. Read documentation on AGM github for more information.

Share this post


Link to post
Share on other sites

Champ-1

Hi mate i've been using this a lot recently but when i re-size in video settings from small to normal half the text was obscured so i edited it to resolve it. Tested it from very small up to large and it seems to work. I made my own personal signed addon version but would prefer your signed one over mine. Hope you don't mind? If you do mind, my apologies! ;)

Here's the bit i edited from config.ccp and or dialog.hpp from the script version.

class CHVD_rscFootHeaderText: CHVD_rscText
	{
		idc = 1001;

		text = "ON FOOT"; //--- ToDo: Localize;
		x = 10 * GUI_GRID_W + GUI_GRID_X;
		y = 2 * GUI_GRID_H + GUI_GRID_Y;
		w = 5.5 * GUI_GRID_W;
		h = 1 * GUI_GRID_H;
		colorBackground[] = {0.5,0,0,0};
	};
	class CHVD_rscFootViewText: CHVD_rscTextRight
	{
		idc = 1002;

		text = "View:"; //--- ToDo: Localize;
		x = 10.25 * GUI_GRID_W + GUI_GRID_X;
		y = 3.5 * GUI_GRID_H + GUI_GRID_Y;
		w = 4.3 * GUI_GRID_W;
		h = 1 * GUI_GRID_H;
	};
	class CHVD_rscFootObjText: CHVD_rscTextRight
	{
		idc = 1003;

		text = "Object:"; //--- ToDo: Localize;
		x = 10.25 * GUI_GRID_W + GUI_GRID_X;
		y = 5 * GUI_GRID_H + GUI_GRID_Y;
		w = 4.3 * GUI_GRID_W;
		h = 1 * GUI_GRID_H;
	};
	class CHVD_rscFootTerrainText: CHVD_rscTextRight
	{
		idc = 1005;

		text = "Terrain:"; //--- ToDo: Localize;
		x = 10.25 * GUI_GRID_W + GUI_GRID_X;
		y = 6.5 * GUI_GRID_H + GUI_GRID_Y;
		w = 4.3 * GUI_GRID_W;
		h = 1 * GUI_GRID_H;
	};
	class CHVD_rscCarHeaderText: CHVD_rscText
	{
		idc = 1008;

		text = "IN CAR"; //--- ToDo: Localize;
		x = 10 * GUI_GRID_W + GUI_GRID_X;
		y = 8.5 * GUI_GRID_H + GUI_GRID_Y;
		w = 3.5 * GUI_GRID_W;
		h = 1 * GUI_GRID_H;
		colorBackground[] = {0.5,0,0,0};
	};
	class CHVD_rscCarSyncText: CHVD_rscText
	{
		idc = 1009;

		text = "Sync object with view"; //--- ToDo: Localize;
		x = 18.5 * GUI_GRID_W + GUI_GRID_X;
		y = 8.5 * GUI_GRID_H + GUI_GRID_Y;
		w = 12.5 * GUI_GRID_W;
		h = 1 * GUI_GRID_H;
	};
	class CHVD_rscCarViewText: CHVD_rscTextRight
	{
		idc = 1010;

		text = "View:"; //--- ToDo: Localize;
		x = 10.25 * GUI_GRID_W + GUI_GRID_X;
		y = 10 * GUI_GRID_H + GUI_GRID_Y;
		w = 4.3 * GUI_GRID_W;
		h = 1 * GUI_GRID_H;
	};
	class CHVD_rscAirObjText: CHVD_rscTextRight
	{
		idc = 1011;

		text = "Object:"; //--- ToDo: Localize;
		x = 10.25 * GUI_GRID_W + GUI_GRID_X;
		y = 18 * GUI_GRID_H + GUI_GRID_Y;
		w = 4.3 * GUI_GRID_W;
		h = 1 * GUI_GRID_H;
	};
	class CHVD_rscCarTerrainText: CHVD_rscTextRight
	{
		idc = 1012;

		text = "Terrain:"; //--- ToDo: Localize;
		x = 10.25 * GUI_GRID_W + GUI_GRID_X;
		y = 13 * GUI_GRID_H + GUI_GRID_Y;
		w = 4.3 * GUI_GRID_W;
		h = 1 * GUI_GRID_H;
	};
	class CHVD_rscFootSyncText: CHVD_rscText
	{
		idc = 1004;

		text = "Sync object with view"; //--- ToDo: Localize;
		x = 18.5 * GUI_GRID_W + GUI_GRID_X;
		y = 2 * GUI_GRID_H + GUI_GRID_Y;
		w = 12.5 * GUI_GRID_W;
		h = 1 * GUI_GRID_H;
	};
	class CHVD_rscAirHeaderText: CHVD_rscText
	{
		idc = 1015;

		text = "IN AIR"; //--- ToDo: Localize;
		x = 10 * GUI_GRID_W + GUI_GRID_X;
		y = 15 * GUI_GRID_H + GUI_GRID_Y;
		w = 3.5 * GUI_GRID_W;
		h = 1 * GUI_GRID_H;
		colorBackground[] = {0.5,0,0,0};
	};
	class CHVD_rscAirViewText: CHVD_rscTextRight
	{
		idc = 1016;

		text = "View:"; //--- ToDo: Localize;
		x = 10.25 * GUI_GRID_W + GUI_GRID_X;
		y = 16.5 * GUI_GRID_H + GUI_GRID_Y;
		w = 4.3 * GUI_GRID_W;
		h = 1 * GUI_GRID_H;
	};
	class CHVD_rscAirTerrainText: CHVD_rscTextRight
	{
		idc = 1019;

		text = "Terrain:"; //--- ToDo: Localize;
		x = 10.25 * GUI_GRID_W + GUI_GRID_X;
		y = 19.5 * GUI_GRID_H + GUI_GRID_Y;
		w = 4.3 * GUI_GRID_W;
		h = 1 * GUI_GRID_H;
	};
	class CHVD_rscAirSyncText: CHVD_rscText
	{
		idc = 1020;

		text = "Sync object with view"; //--- ToDo: Localize;
		x = 18.5 * GUI_GRID_W + GUI_GRID_X;
		y = 15 * GUI_GRID_H + GUI_GRID_Y;
		w = 12.5 * GUI_GRID_W;
		h = 1 * GUI_GRID_H;
	};
	class CHVD_rscCarObjText: CHVD_rscTextRight
	{
		idc = 1021;

		text = "Object:"; //--- ToDo: Localize;
		x = 10.25 * GUI_GRID_W + GUI_GRID_X;
		y = 11.5 * GUI_GRID_H + GUI_GRID_Y;
		w = 4.3 * GUI_GRID_W;
		h = 1 * GUI_GRID_H;
	};
};

Share this post


Link to post
Share on other sites

CH View Distance Addon v1.02

Download

Changelog:

v1.02

- fixed: obscured text with different interface sizes (thanks Law-Giver for suggestion)

- fixed: missing font error

Edited by Champ-1

Share this post


Link to post
Share on other sites

v1.02

- fixed: obscured text with different interface sizes (thanks Law-Giver for suggestion)

- fixed: missing font error

Thanks for updating and releasing Champ-1. Tested and works like a charm. ;)

Share this post


Link to post
Share on other sites
Guest

Release frontpaged on the Armaholic homepage.

================================================

We have also "connected" these pages to your account on Armaholic.

This means soon you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites

CH View Distance Addon v1.03

Download

Changelog:

v1.03

- added: support of UAV and UGV units (as suggested by EasyEB)

Edited by Champ-1

Share this post


Link to post
Share on other sites
Guest

Thanks!

New version frontpaged on the Armaholic homepage.

================================================

We have also "connected" these pages to your account on Armaholic.

This means soon you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites

CH View Distance Addon v1.04

Download

Changelog:

v1.04

- fixed: object view distance not updating after checking "sync" checkbox

- fixed: boats not using proper view distance (now they use "in car" view distance)

- fixed: addon overwriting script version functions

Share this post


Link to post
Share on other sites
Guest

Thanks!

New version frontpaged on the Armaholic homepage.

================================================

We have also "connected" these pages to your account on Armaholic.

This means soon you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites
Suggestion: As I most often set the values once, and forget about it. Could it be possible to add an option to move the settings menu for this into the ESC menu? I don't like to have to much on my action menu. Just an idea.

Nice idea. Or add a possibility to call view settings via shortcut combination.

Share this post


Link to post
Share on other sites
Nice idea. Or add a possibility to call view settings via shortcut combination.
I might do hotkey thingy. Have to look into CBA hotkey setup.

Share this post


Link to post
Share on other sites

I'd also like it in the esc-menu. When the system takes a dump and frame rate goes really low it can take a while to scroll through a cluttered action menu.

Share this post


Link to post
Share on other sites
CH View Distance Addon v1.04

Changelog:

v1.04

- fixed: object view distance not updating after checking "sync" checkbox

- fixed: boats not using proper view distance (now they use "in car" view distance)

- fixed: addon overwriting script version functions

Thanks for the update Champ-1. ;)

Share this post


Link to post
Share on other sites

CH View Distance Addon v1.05

Download

CHVD.jpg

Changelog:

v1.05

- added: Russian localization

- changed: UI to fit any localized text in the future

Download

Share this post


Link to post
Share on other sites
Guest

New version frontpaged on the Armaholic homepage.

================================================

We have also "connected" these pages to your account on Armaholic.

This means soon you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites

'- ability to limit maximum view distance and objects view distance for the mission.'

How to do so :>?

Share this post


Link to post
Share on other sites
'- ability to limit maximum view distance and objects view distance for the mission.'

How to do so :>?

Add these commands to init.sqf file in your mission folder if you wish to limit some functionality:

CHVD_allowNoGrass = true; // Set 'false' if you want to disable "Low" option for terrain (default: true)
CHVD_maxView = 2500; // Set maximum view distance (default: 12000)
CHVD_maxObj = 2500; // Set maximimum object view distance (default: 12000)

Share this post


Link to post
Share on other sites

CH View Distance Addon v1.07

Download

CHVD.jpg

Changelog:

v1.07

- fixed: error showing up after 1.44 update

Download

Share this post


Link to post
Share on other sites

Updated mod v1.0.7 available at withSIX. Download now by clicking:

banner-420x120.png

Hey Champ-1 , you can upload updates or new mods to withSIX yourself now!

Make your own promo page, get the power to release your work at your own point of choosing.

To learn more, follow this guide.

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

×