Jump to content
Neviothr

Making the player more visible to AI using CfgVehicles?

Recommended Posts

Basically, I made a character addon, and I want the AI to react / spot that character very quickly when it's controlled by a player.

The config.cpp is below, my question is: is there anything I can do on the config.cpp end to make the player more spot-able / visible to AI.

Thanks in advance.

class CfgPatches
{
	class cx_soldier
	{
		units[]={};
		weapons[]={};
		requiredVersion=0.1;
		requiredAddons[]={"A3_Characters_F"};
	};
};
class CfgVehicleClasses
{
	class universal_soldier
	{
		displayName="CX Universal Soldier";
	};
};
class CfgVehicles
{
	class I_Soldier_base_F;
	class cx_Soldier_base: I_Soldier_base_F
	{
		author = "cx64";
		scope = 2;
		scopeCurator = 2;
		scopeArsenal = 2;
		identityTypes[] =  {"LanguageENG_F","Head_NATO","G_NATO_default"};
		displayName = "Universal Soldier";
		cost = 10000000;
		camouflage = 10000000;
		threat[] = {1, 1, 1};
		canDeactivateMines = true;
		engineer = true;
		attendant = 1;
		vehicleClass = "universal_soldier";
		model = "\A3\Characters_F\BLUFOR\b_soldier_01.p3d";
		accuracy = 0.1;
		audible = 1;
	};
};

Share this post


Link to post
Share on other sites

Before I read your config I was going to suggest increasing the 'camouflage' config parameter. However, with a 'camouflage' value of '10000000' the AI will likely know everything there is to know about the player's character before the player does, including what he had for breakfast 6 weeks ago, and what he intends to do after he graduates from University...

 

The only other suggestion I have is to alter the 'accuracy' parameter in-line with the Wiki, so perhaps try a value smaller than your current value of '0.1'

  • Like 1

Share this post


Link to post
Share on other sites

I've set the accuracy to 0.0000001, but the AI still takes a few seconds to spot the player after he comes out of cover.

Is there anything else that could be done?

Share this post


Link to post
Share on other sites

Not as far as I'm aware, I think with those values the unit is as noticable as is currently possible, at least from a config level. There may be some sort of scripting command(s) that could be used, however that is not my wheel-house.

  • Like 1

Share this post


Link to post
Share on other sites

Alright, thank you for your help! :)

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

×