Jump to content

new missile ?


DOL

Recommended Posts

I would like to create a player launchable new missile for new airplane.

It is the same as AGM-65H but visual shape differs.

 

I tried.

PYLON = 
{
displayName	= _("PYLON"),
attribute   = {0, 0, 0, 0},
ShapeName	= "PYLON",
Elements	=	
{
	[1]	=	
	{
		Position =	{0, 0, 0},
		ShapeName =	"PYLON",
		IsAdapter = true,
	}, -- end of [1]
}, -- end of Elements
}
declare_loadout(PYLON)


AMM_1_AG = {	-- AGM-65H base
category		= CAT_MISSILES,
name			= "AMM_1_AG",
user_name		= _("AMM-1_AG"),
wsTypeOfWeapon	= {wsType_Weapon, wsType_Missile, wsType_AS_Missile, WSTYPE_PLACEHOLDER},
scheme			= "AGM-65",
class_name		= "wAmmunitionSelfHoming",
model			= "AMM-1",

Escort = 0,
Head_Type = 5,
sigma = {5, 5, 5},
M = 200,
H_max = 10000.0,
H_min = -1,
Diam = 305.0,
Cx_pil = 4,
D_max = 12964.0,
D_min = 500.0,
Head_Form = 0,
Life_Time = 110,
Nr_max = 16,
v_min = 50.0,
v_mid = 290.0,
Mach_max = 1.5,
t_b = 0.0,
t_acc = 4.0,
t_marsh = 0.0,
Range_max = 24076.0,
H_min_t = 0.0,
Fi_start = 0.5,
Fi_rak = 3.14152,
Fi_excort = 1.05,
Fi_search = 99.9,
OmViz_max = 99.9,
exhaust = {0.75, 0.75, 0.75, 0.1},
X_back = -0.9,
Y_back = -0.15,
Z_back = 0.0,
Reflection = 0.063,
KillDistance = 0.0,

shape_table_data =
{
	{
		name	= "AMM_1_AG",
		file	= "AMM-1",
		life	= 1,
		fire	= { 0, 1},
		username = _("AMM-1_AG"),
		index	= WSTYPE_PLACEHOLDER,
	},
},

fm = {
	mass        = 208,  
	caliber     = 0.305,  
	cx_coeff    = {1,0.39,0.38,0.236,1.31},
	L           = 2.49,
	I           = 1 / 12 * 209 * 2.49 * 2.49,
	Ma          = 0.68,
	Mw          = 1.116,
	wind_sigma	= 0.0,--80.0,
	wind_time	= 1000.000000,
	Sw			= 0.55,
	dCydA		= {0.07, 0.036},
	A			= 0.6,
	maxAoa		= 0.23,
	finsTau		= 0.1,
	Kp_ret		= 4.5,
},

simple_seeker = {
	sensitivity = 0,
	delay		= 0.0,
	FOV			= math.rad(50),
	DGF			= {0.00, 0.11, 0.22, 0.33, 0.44, 0.55, 0.66, 0.77, 0.88, 1.00},
	RWF			= {1.00, 1.00, 1.00, 1.00, 1.00, 1.00, 0.80, 0.70, 0.60, 0.10},
	maxW		= 0.025,		--
	stTime		= 0.5,
	opTime		= 105,
	max_target_speed			= 33,
	max_target_speed_rnd_coeff	= 10,
},

gyro_stabilizier = {
	omega_pid_k	= {50, 30, 0},
	omega_max	= math.rad(8),
	omega_tau	= 0.05,
	gimbal_limit= math.rad(30),
},

simple_gyrostab_seeker = {
	omega_max	= math.rad(8)
},

pn_guidance_unit = {
	NR			= 10,
	Ac_lim		= 35
},

PN_autopilot = {
	Ka			= 0,
	Iarm		= 0,
	K			= 0.014,
	Ki			= 0,
	Kg			= 2.5,
	K_GBias		= 0.26,
	GBiast_st	= 1.0,
},

march = {
	smoke_color			= {0.9, 0.9, 0.9},
	smoke_transparency	= 0.9,
},

warhead = predefined_warhead("AGM_65H"),
warhead_air = predefined_warhead("AGM_65H"),
mass = 200,
}
declare_weapon(AMM_1_AG)


AMM_1_AG_3 = 
{
CLSID		= "AMM_1_AG_3",
category	= CAT_MISSILES,
Picture		= "smoke.png",
wsTypeOfWeapon	= AMM_1_AG.wsTypeOfWeapon,
displayName	= _("AMM-1_AG * 3"),
attribute	= {4, 4, 32, WSTYPE_PLACEHOLDER},
Cx_pil		= 0.001959765625,
Count		= 3,
Weight		= 620,

Elements	=	
{
	[1]	=	
	{
		ShapeName	=	"PYLON",
		Position	=	{0, 0, 0},
		IsAdapter  	=   true,
	},
	[2]	=	
	{
		DrawArgs	=	
		{
			[1]	=	{1,	1},
			[2]	=	{2,	1},
		}, -- end of DrawArgs
		ShapeName	=	"AMM-1",
		Position	=	{0.31, -0.48, 0.0},
		Rotation	=	{0, 0, 0},
	},
	[3]	=	
	{
		DrawArgs	=	
		{
			[1]	=	{1,	1},
			[2]	=	{2,	1},
		}, -- end of DrawArgs
		ShapeName	=	"AMM-1",
		Position	=	{0.152, -0.38, -0.072},
		Rotation	=	{90, 0, 0},
	},
	[4]	=	
	{
		DrawArgs	=	
		{
			[1]	=	{1,	1},
			[2]	=	{2,	1},
		}, -- end of DrawArgs
		ShapeName	=	"AMM-1",
		Position	=	{0.152, -0.38, 0.072},
		Rotation	=	{-90, 0, 0},
	},
}, -- end of Elements
}
declare_loadout(AMM_1_AG_3)

 

However, I cannot launch it.

attachment.php?attachmentid=195851&stc=1&d=1539408900

 

Where is wrong?

First of all, is this plan impossible?

Screen_181013_101511.thumb.jpg.d6ff287780a717b2acc7cc4bae0449ed.jpg

Link to comment
Share on other sites

I would like to create a player launchable new missile for new airplane.

It is the same as AGM-65H but visual shape differs.

 

I tried.

PYLON = 
{
displayName	= _("PYLON"),
attribute   = {0, 0, 0, 0},
ShapeName	= "PYLON",
Elements	=	
{
	[1]	=	
	{
		Position =	{0, 0, 0},
		ShapeName =	"PYLON",
		IsAdapter = true,
	}, -- end of [1]
}, -- end of Elements
}
declare_loadout(PYLON)


AMM_1_AG = {	-- AGM-65H base
category		= CAT_MISSILES,
name			= "AMM_1_AG",
user_name		= _("AMM-1_AG"),
wsTypeOfWeapon	= {wsType_Weapon, wsType_Missile, wsType_AS_Missile, WSTYPE_PLACEHOLDER},
scheme			= "AGM-65",
class_name		= "wAmmunitionSelfHoming",
model			= "AMM-1",

Escort = 0,
Head_Type = 5,
sigma = {5, 5, 5},
M = 200,
H_max = 10000.0,
H_min = -1,
Diam = 305.0,
Cx_pil = 4,
D_max = 12964.0,
D_min = 500.0,
Head_Form = 0,
Life_Time = 110,
Nr_max = 16,
v_min = 50.0,
v_mid = 290.0,
Mach_max = 1.5,
t_b = 0.0,
t_acc = 4.0,
t_marsh = 0.0,
Range_max = 24076.0,
H_min_t = 0.0,
Fi_start = 0.5,
Fi_rak = 3.14152,
Fi_excort = 1.05,
Fi_search = 99.9,
OmViz_max = 99.9,
exhaust = {0.75, 0.75, 0.75, 0.1},
X_back = -0.9,
Y_back = -0.15,
Z_back = 0.0,
Reflection = 0.063,
KillDistance = 0.0,

shape_table_data =
{
	{
		name	= "AMM_1_AG",
		file	= "AMM-1",
		life	= 1,
		fire	= { 0, 1},
		username = _("AMM-1_AG"),
		index	= WSTYPE_PLACEHOLDER,
	},
},

fm = {
	mass        = 208,  
	caliber     = 0.305,  
	cx_coeff    = {1,0.39,0.38,0.236,1.31},
	L           = 2.49,
	I           = 1 / 12 * 209 * 2.49 * 2.49,
	Ma          = 0.68,
	Mw          = 1.116,
	wind_sigma	= 0.0,--80.0,
	wind_time	= 1000.000000,
	Sw			= 0.55,
	dCydA		= {0.07, 0.036},
	A			= 0.6,
	maxAoa		= 0.23,
	finsTau		= 0.1,
	Kp_ret		= 4.5,
},

simple_seeker = {
	sensitivity = 0,
	delay		= 0.0,
	FOV			= math.rad(50),
	DGF			= {0.00, 0.11, 0.22, 0.33, 0.44, 0.55, 0.66, 0.77, 0.88, 1.00},
	RWF			= {1.00, 1.00, 1.00, 1.00, 1.00, 1.00, 0.80, 0.70, 0.60, 0.10},
	maxW		= 0.025,		--
	stTime		= 0.5,
	opTime		= 105,
	max_target_speed			= 33,
	max_target_speed_rnd_coeff	= 10,
},

gyro_stabilizier = {
	omega_pid_k	= {50, 30, 0},
	omega_max	= math.rad(8),
	omega_tau	= 0.05,
	gimbal_limit= math.rad(30),
},

simple_gyrostab_seeker = {
	omega_max	= math.rad(8)
},

pn_guidance_unit = {
	NR			= 10,
	Ac_lim		= 35
},

PN_autopilot = {
	Ka			= 0,
	Iarm		= 0,
	K			= 0.014,
	Ki			= 0,
	Kg			= 2.5,
	K_GBias		= 0.26,
	GBiast_st	= 1.0,
},

march = {
	smoke_color			= {0.9, 0.9, 0.9},
	smoke_transparency	= 0.9,
},

warhead = predefined_warhead("AGM_65H"),
warhead_air = predefined_warhead("AGM_65H"),
mass = 200,
}
declare_weapon(AMM_1_AG)


AMM_1_AG_3 = 
{
CLSID		= "AMM_1_AG_3",
category	= CAT_MISSILES,
Picture		= "smoke.png",
wsTypeOfWeapon	= AMM_1_AG.wsTypeOfWeapon,
displayName	= _("AMM-1_AG * 3"),
attribute	= {4, 4, 32, WSTYPE_PLACEHOLDER},
Cx_pil		= 0.001959765625,
Count		= 3,
Weight		= 620,

Elements	=	
{
	[1]	=	
	{
		ShapeName	=	"PYLON",
		Position	=	{0, 0, 0},
		IsAdapter  	=   true,
	},
	[2]	=	
	{
		DrawArgs	=	
		{
			[1]	=	{1,	1},
			[2]	=	{2,	1},
		}, -- end of DrawArgs
		ShapeName	=	"AMM-1",
		Position	=	{0.31, -0.48, 0.0},
		Rotation	=	{0, 0, 0},
	},
	[3]	=	
	{
		DrawArgs	=	
		{
			[1]	=	{1,	1},
			[2]	=	{2,	1},
		}, -- end of DrawArgs
		ShapeName	=	"AMM-1",
		Position	=	{0.152, -0.38, -0.072},
		Rotation	=	{90, 0, 0},
	},
	[4]	=	
	{
		DrawArgs	=	
		{
			[1]	=	{1,	1},
			[2]	=	{2,	1},
		}, -- end of DrawArgs
		ShapeName	=	"AMM-1",
		Position	=	{0.152, -0.38, 0.072},
		Rotation	=	{-90, 0, 0},
	},
}, -- end of Elements
}
declare_loadout(AMM_1_AG_3)

 

However, I cannot launch it.

attachment.php?attachmentid=195851&stc=1&d=1539408900

 

Where is wrong?

First of all, is this plan impossible?

 

HI DOLL

try this modifies these two lines in a file:

it's the only way we've found it but it works.

 

 

Missile AGM-65H base

 

Modif :

Escort = 1,

Head_Type = 4,

Alt z....shoot

 

 

 

it gives that

 

 

 

 

 

 

 

PYLON =

{

displayName = _("PYLON"),

attribute = {0, 0, 0, 0},

ShapeName = "PYLON",

Elements =

{

[1] =

{

Position = {0, 0, 0},

ShapeName = "PYLON",

IsAdapter = true,

}, -- end of [1]

}, -- end of Elements

}

declare_loadout(PYLON)

 

 

AMM_1_AG = { -- AGM-65H base

category = CAT_MISSILES,

name = "AMM_1_AG",

user_name = _("AMM-1_AG"),

wsTypeOfWeapon = {wsType_Weapon, wsType_Missile, wsType_AS_Missile, WSTYPE_PLACEHOLDER},

scheme = "AGM-65",

class_name = "wAmmunitionSelfHoming",

model = "AMM-1",

 

Escort = 1,

Head_Type = 4,

sigma = {5, 5, 5},

M = 200,

H_max = 10000.0,

H_min = -1,

Diam = 305.0,

Cx_pil = 4,

D_max = 12964.0,

D_min = 500.0,

Head_Form = 0,

Life_Time = 110,

Nr_max = 16,

v_min = 50.0,

v_mid = 290.0,

Mach_max = 1.5,

t_b = 0.0,

t_acc = 4.0,

t_marsh = 0.0,

Range_max = 24076.0,

H_min_t = 0.0,

Fi_start = 0.5,

Fi_rak = 3.14152,

Fi_excort = 1.05,

Fi_search = 99.9,

OmViz_max = 99.9,

exhaust = {0.75, 0.75, 0.75, 0.1},

X_back = -0.9,

Y_back = -0.15,

Z_back = 0.0,

Reflection = 0.063,

KillDistance = 0.0,

 

shape_table_data =

{

{

name = "AMM_1_AG",

file = "AMM-1",

life = 1,

fire = { 0, 1},

username = _("AMM-1_AG"),

index = WSTYPE_PLACEHOLDER,

},

},

 

fm = {

mass = 208,

caliber = 0.305,

cx_coeff = {1,0.39,0.38,0.236,1.31},

L = 2.49,

I = 1 / 12 * 209 * 2.49 * 2.49,

Ma = 0.68,

Mw = 1.116,

wind_sigma = 0.0,--80.0,

wind_time = 1000.000000,

Sw = 0.55,

dCydA = {0.07, 0.036},

A = 0.6,

maxAoa = 0.23,

finsTau = 0.1,

Kp_ret = 4.5,

},

 

simple_seeker = {

sensitivity = 0,

delay = 0.0,

FOV = math.rad(50),

DGF = {0.00, 0.11, 0.22, 0.33, 0.44, 0.55, 0.66, 0.77, 0.88, 1.00},

RWF = {1.00, 1.00, 1.00, 1.00, 1.00, 1.00, 0.80, 0.70, 0.60, 0.10},

maxW = 0.025, --

stTime = 0.5,

opTime = 105,

max_target_speed = 33,

max_target_speed_rnd_coeff = 10,

},

 

gyro_stabilizier = {

omega_pid_k = {50, 30, 0},

omega_max = math.rad(8),

omega_tau = 0.05,

gimbal_limit= math.rad(30),

},

 

simple_gyrostab_seeker = {

omega_max = math.rad(8)

},

 

pn_guidance_unit = {

NR = 10,

Ac_lim = 35

},

 

PN_autopilot = {

Ka = 0,

Iarm = 0,

K = 0.014,

Ki = 0,

Kg = 2.5,

K_GBias = 0.26,

GBiast_st = 1.0,

},

 

march = {

smoke_color = {0.9, 0.9, 0.9},

smoke_transparency = 0.9,

},

 

warhead = predefined_warhead("AGM_65H"),

warhead_air = predefined_warhead("AGM_65H"),

mass = 200,

}

declare_weapon(AMM_1_AG)

 

 

AMM_1_AG_3 =

{

CLSID = "AMM_1_AG_3",

category = CAT_MISSILES,

Picture = "smoke.png",

wsTypeOfWeapon = AMM_1_AG.wsTypeOfWeapon,

displayName = _("AMM-1_AG * 3"),

attribute = {4, 4, 32, WSTYPE_PLACEHOLDER},

Cx_pil = 0.001959765625,

Count = 3,

Weight = 620,

 

Elements =

{

[1] =

{

ShapeName = "PYLON",

Position = {0, 0, 0},

IsAdapter = true,

},

[2] =

{

DrawArgs =

{

[1] = {1, 1},

[2] = {2, 1},

}, -- end of DrawArgs

ShapeName = "AMM-1",

Position = {0.31, -0.48, 0.0},

Rotation = {0, 0, 0},

},

[3] =

{

DrawArgs =

{

[1] = {1, 1},

[2] = {2, 1},

}, -- end of DrawArgs

ShapeName = "AMM-1",

Position = {0.152, -0.38, -0.072},

Rotation = {90, 0, 0},

},

[4] =

{

DrawArgs =

{

[1] = {1, 1},

[2] = {2, 1},

}, -- end of DrawArgs

ShapeName = "AMM-1",

Position = {0.152, -0.38, 0.072},

Rotation = {-90, 0, 0},

},

}, -- end of Elements

}

declare_loadout(AMM_1_AG_3)

 

GREETINGS DOLL


Edited by Patrick56

[sIGPIC][/sIGPIC]Passion

Link to comment
Share on other sites

Thank you, Patrick56.

 

"<=" and "ATK" were displayed thanks to you, but ...

 

I was loading AGM-65H and Kh-29T and AMM-1(new missile) with a new pylon.

After locking a target,

About AGM-65H and Kh-29T, "LA" is displayed and I can launch.

However, about AMM-1, "LA" is not displayed and I cannot launch.

Link to comment
Share on other sites

SALUT DOLL

pour pouvoir tirer le missile, il faut faire manuellement le (LA) avec ALT W pour un clavier anglais ou ALT Z pour un clavier Français, j'espère que ça peut t'aider pour nous cela a fonctionner et j'ai fais explosé deux T72. SALUTATIONS

 

To be able to fire the missile, you have to do it manually the (LA) with ALT W for an English keyboard where ALT Z for a French keyboard, I hope it can help you for us it worked and I exploded two T 72. greetings an sorry.:)


Edited by Patrick56

[sIGPIC][/sIGPIC]Passion

Link to comment
Share on other sites

To be able to fire the missile, you have to do it manually the (LA) with ALT W for an English keyboard where ALT Z for a French keyboard, I hope it can help you for us it worked and I exploded two T 72. greetings an sorry

I don't understand anything in russian except Davai Davai!

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...