Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
#4587135 - 12/14/21 09:20 PM NEED HELP!! Adding weapons for ka-52.  
Joined: Jan 2010
Posts: 88
ignarik Offline
Junior Member
ignarik  Offline
Junior Member

Joined: Jan 2010
Posts: 88
Russia,Moscow
I want to add for Ka-52 the ability to carry the laser guided "ATAKA" missile .
This feature is available in Ka-52 in stock IRL.
[Linked Image]
[Linked Image]

In the game Ka-52 can only use "VIKHR" missile, but there is a problem with them.
The "VIKHR" has a spiral flight path and when launching with a low altitude (to avoid SAM lock), all missiles explode on the ground.
But the most unpleasant thing is that all the bots have the same problem - they spend all the missiles in the ground and die trying to destroy the targets by cannon!
"ATAKA" missiles has a straight trajectory and does not have this problem. Therefore, I think - we need to add an "ATAKA" missile to keep playability for ka-52.
They are already in the game for Mi-28, but I do not know how to change the exe file...
In Lightwave 11.6 I redone the "VIKHR" pilons for the "ATAKA"
At this stage, the "VIKHR" is launching out of the new "ATAKA" pilons
[Linked Image]

[Linked Image]

The next stage is to replace them in exe.
I addressed with this request to Thealx, but he said what no longer works on the game and advised to contact MessyHead or other modders on the forum.
If Messyhead will help it will be very good, but I can not contact him, his mail is not available - if someone can contact him and ask him to write me in PM, I will be very appreciated for that.
I will also be grateful to anyone for help with this.
Let's continue to maintain life in the EECH! smile

#4587164 - 12/15/21 11:31 AM Re: NEED HELP!! Adding weapons for ka-52. [Re: ignarik]  
Joined: May 2013
Posts: 413
SKIP2008 Offline
Member
SKIP2008  Offline
Member

Joined: May 2013
Posts: 413
ITALY
Hi Ignarik, i'm leaving messages on mudspike and helisimmer, i hope this will help, sorry if i can't do much more.

#4587167 - 12/15/21 11:38 AM Re: NEED HELP!! Adding weapons for ka-52. [Re: ignarik]  
Joined: Dec 2009
Posts: 749
AndyB Offline
Member
AndyB  Offline
Member

Joined: Dec 2009
Posts: 749
Ayrshire, Scotland
Hi,

I know, that after being verbally abused on this forum, that Messyhead is no longer and active modder on EECH.

Most of the modders have been chased away by the "negative" people on here.

Sorry I couldn't have better info for you.

Cheers,

Andy


Andy's simpit: http://www.simpit.me.uk
#4587208 - 12/15/21 04:14 PM Re: NEED HELP!! Adding weapons for ka-52. [Re: ignarik]  
Joined: Apr 2018
Posts: 300
Javelin Offline
Member
Javelin  Offline
Member

Joined: Apr 2018
Posts: 300
Idaho Falls, Idaho USA
Hi Guys. I might have an answer.
All of the weapons configurations are in the folder below in the source code, the KA52 is in this file:
\EECHSourceCode\aphavoc\source\entity\mobile\weapon\configs\hokum.h

search the file for VIKHR to locate the variants.
Modify an existing variant. Making a new variant is more complicated, more files to alter than just this one.
It looks like you have to replace the entire block of data for VIKHR with data for ATAKA.
The Hokum is in a different format from Havok, so the change isn't as obvious as it could be.
Recompile with the changes to create a new exe.

I haven't tried this, so I can't guarantee the results.
Javelin

Last edited by Javelin; 12/15/21 04:28 PM.
#4587213 - 12/15/21 04:45 PM Re: NEED HELP!! Adding weapons for ka-52. [Re: ignarik]  
Joined: Dec 2010
Posts: 1,883
messyhead Offline
Member
messyhead  Offline
Member

Joined: Dec 2010
Posts: 1,883
Hi. I'm not involved in EECH mod now, I don't have the dev environment setup that I used to, and it's too time consuming to get back into.

However, my thoughts on the problem you've pointed out are...

Rather than alter the code to add a weapon to fix a trajectory problem, I think the flight trajectory of the Vikhr should be corrected. I think I remember there was changes made to the flight trajectory a while ago with a release. I don't remember if those changes were in the GWUT, or in the code, but they've introduced this problem.

If you want to change the code to make the Hokum have the Ataka, then the source file pointed above is a good place to start.

#4587308 - 12/16/21 05:00 PM Re: NEED HELP!! Adding weapons for ka-52. [Re: messyhead]  
Joined: Jan 2010
Posts: 88
ignarik Offline
Junior Member
ignarik  Offline
Junior Member

Joined: Jan 2010
Posts: 88
Russia,Moscow
Edited GWUT, replaced the data of the Vikhr on the Ataka, now the missile flies straight.
You know what parameter changes the trajectory?

Attached Files ataka1.jpgataka2.jpgataka3.jpgataka4.jpg
#4587310 - 12/16/21 05:33 PM Re: NEED HELP!! Adding weapons for ka-52. [Re: ignarik]  
Joined: May 2013
Posts: 413
SKIP2008 Offline
Member
SKIP2008  Offline
Member

Joined: May 2013
Posts: 413
ITALY
Hi Ignarik, if i remember correctly there's a voice at the end of the GWUT file called Vikhr flight path, if you set it to 0 missile will fly with a straight trajectorty, i'll check.

#4587341 - 12/16/21 10:16 PM Re: NEED HELP!! Adding weapons for ka-52. [Re: ignarik]  
Joined: Jan 2010
Posts: 88
ignarik Offline
Junior Member
ignarik  Offline
Junior Member

Joined: Jan 2010
Posts: 88
Russia,Moscow
I'm sorry I didn't understand which digit I should replace with zero?
This line is from GWUT
57,9A4172 Vikhr,5,1,0,4,3,0,0,2300,1000,2,1,0,0,1,1,0,2,0.5,1,1,0,0,0,0,0,45,34.7773584906,0.125,1.4,500,10000,5000,0,55,5,610,20,14,1935,0,0,30,2,1,0,0,0,30,6.25,25,10,0,0,1800
What needs to be fixed?

#4587365 - 12/17/21 10:01 AM Re: NEED HELP!! Adding weapons for ka-52. [Re: ignarik]  
Joined: May 2013
Posts: 413
SKIP2008 Offline
Member
SKIP2008  Offline
Member

Joined: May 2013
Posts: 413
ITALY
Hello Ignarik, your line is ok, you don't have to fix nothing, i was just remembering what i've read during one of my last GWUT editing, i'll post later stated that i'm working on APKWS (laser guided hydra rockets).

Last edited by SKIP2008; 12/17/21 10:01 AM.
#4587367 - 12/17/21 10:24 AM Re: NEED HELP!! Adding weapons for ka-52. [Re: ignarik]  
Joined: May 2013
Posts: 413
SKIP2008 Offline
Member
SKIP2008  Offline
Member

Joined: May 2013
Posts: 413
ITALY
You can also take a look here: http://eechcentral.SimHQ.com/index.php?title=GWUT:WEAPONS_section

#4587388 - 12/17/21 06:00 PM Re: NEED HELP!! Adding weapons for ka-52. [Re: ignarik]  
Joined: Jan 2010
Posts: 88
ignarik Offline
Junior Member
ignarik  Offline
Junior Member

Joined: Jan 2010
Posts: 88
Russia,Moscow
Hello,SKIP2008. The red MI24 helicopter in the "scout" mode has very weak weapons. His unfinished weak machine gun does not work. His 4 "STURM" missiles are very weak weapons. Blue helicopters kill him easily. When choosing a weapon , the player can hang 8 missiles "STURM"on his wings . Is it possible to prescribe 8 missiles "STURM"for MI24 bots? This is very important because there are a lot of MI24 helicopters in the game and I am sorry to see them die from their helplessness. Can I give him 8 rockets using GWUT?

#4587438 - 12/18/21 09:00 PM Re: NEED HELP!! Adding weapons for ka-52. [Re: ignarik]  
Joined: Jan 2010
Posts: 88
ignarik Offline
Junior Member
ignarik  Offline
Junior Member

Joined: Jan 2010
Posts: 88
Russia,Moscow
Originally Posted by ignarik
Can I give him 8 rockets using GWUT?

I mean, can I do this as a standard loadout for MI-24 bots? (see screen)

Attached Files ми24штурм.jpg
#4587454 - 12/19/21 02:42 PM Re: NEED HELP!! Adding weapons for ka-52. [Re: ignarik]  
Joined: May 2013
Posts: 413
SKIP2008 Offline
Member
SKIP2008  Offline
Member

Joined: May 2013
Posts: 413
ITALY
Hi Ignarik, yes if you're playing a campaign you can set up the scout configuration as your desire from the payload page as you show me in the screen, give the hind 8 shurm from the GWUT? I don't know i'll have a look. I've done a GWUT with latest shturm variants with increased range, i can do the same with 1161/2 GWUT, or replace MI24 missiles with ATAKA adding UGROZA rockets (russian laser guided equivalent of US APKWS).

#4587458 - 12/19/21 05:53 PM Re: NEED HELP!! Adding weapons for ka-52. [Re: SKIP2008]  
Joined: Jan 2010
Posts: 88
ignarik Offline
Junior Member
ignarik  Offline
Junior Member

Joined: Jan 2010
Posts: 88
Russia,Moscow
Hi, SKIP2008! sorry for my bad english!
Originally Posted by SKIP2008
Hi Ignarik, yes if you're playing a campaign you can set up the scout configuration as your desire from the payload page as you show me in the screen, give the hind 8 shurm from the GWUT? I don't know i'll have a look.

I incorrectly said - I meant not to loadout a partner, but stock loadout all another recon bots!

#4587475 - 12/20/21 09:14 AM Re: NEED HELP!! Adding weapons for ka-52. [Re: ignarik]  
Joined: May 2013
Posts: 413
SKIP2008 Offline
Member
SKIP2008  Offline
Member

Joined: May 2013
Posts: 413
ITALY
Hello Ignarik, i think stock loadout changes can be made working on the code, and i don't have competence about it, sorry for that.

#4587713 - 12/23/21 07:07 PM Re: NEED HELP!! Adding weapons for ka-52. [Re: ignarik]  
Joined: Jun 2005
Posts: 675
FireBird_[WINE] Offline
Member
FireBird_[WINE]  Offline
Member

Joined: Jun 2005
Posts: 675
There's an direct correspondence between gunship's scene and game sources.

Scene

The scene contains some WEAPON_SYSTEM_HEADING NullObjects. Those are "hardpoints". Dispensers and guns are "hardpoints" too. The order is crucial! Their order is the same as the numbers of hardpoints mentioned in the header.

Then, each WEAPON_SYSTEM_HEADING NullObject has one or more WEAPON_SYSTEM_PITCH NullObjects children objects. Those are weapon types/racks. The order is crucial! Their order is the same as the numbers of weapons used with corresponding hardpoint in the header. It's a good approach to have _the same_ weapon type on _different_ hardpoints to have _the same_ index.

Then, each WEAPON_SYSTEM_PITCH NullObject has one or more WEAPON_SYSTEM_WEAPON NullObjects children objects. Those are individual rockets/missiles. They are spent in the order in the scene. Their number must be the number of rockets/missiles specified in the header.

Also there's WEAPON_SYSTEM_MUZZLE. Make sure it's in correct place and has a proper parent-children relationship. And make sure LODs won't multiply the number of those WEAPON_SYSTEM_* objects.

Weapon header file

Head - macros definitions. Hardpoints, weapons on hardpoints, number of missiles/rockets/etc. should be defined in one place.

The list of payloads. Each payload contains the information about all hardpoints. If some payload has no information about any hardpoint, no weapon is attached to that hardpoint.

Please note that each payload has an unchangable payload for specific hardpoints. For Hokum they are dispensers, guns, blades, pilots, doors.

Then, a total number of payloads. If we have the following restrictions
Outer hardpoints may have (both!) none, iglas, s8, s13, gun pods (5 options)
Inner hardpoints may have (both!) none, iglas, s8, s13, gun pods, vikhr (6 options)
Thus we have to have 5 * 6 = 30 payloads AT LEAST. In each payload hardpoints with none should not be mentioned, hardpoints with some weapon should specify hardpoint index, weapon index, number of weapon elements and and different supplementary data.
Generally we may have more payloads - with not 6 vikhrs per rack, but with 3, for example.

And below all WEAPON_CONFIG_TYPE_KA52_HOKUM_B_1 - WEAPON_CONFIG_TYPE_KA52_HOKUM_B_30 are mentioned. I suppose that they should be generated by a proper program to make sure that there's no human mistake.

Tail - undefine all macros used.

weapon.h file

enum WEAPON_CONFIG_TYPES must have _exactly the same_ WEAPON_CONFIG_TYPE_KA52_HOKUM_B_* definitions as we used in the weapon header file.
It's position must correspond to the position of '#include "config/weapon config file.h"` in wn_dbase.c.

ac_dbase.c file
An entry for gunship should be modified.
min_weapon_config_type is still WEAPON_CONFIG_TYPE_KA52_HOKUM_B_1. But as long as number of payloads changes max_weapon_config_type must be modified to be the biggest payload number for the gunship.
There are four more usages of payload indices there. They are default_weapon_config_type, air_to_air_weapon_config_type, air_to_surface_weapon_config_type and scout_weapon_config_type. They are used for the corresponding missions. Please make sure that the referenced payload is suitable for the mission.





To add Atakas on inner pylons
Edit scene, add WEAPON_SYSTEM_PITCH to inner hardpoints (WEAPON_SYSTEM_HEADINGs). It looks the index should be 6.
Add corresponding racks, WEAPON_SYSTEM_WEAPONs, missiles, WEAPON_SYSTEM_MUZZLEs, LODs, etc. to those WEAPON_SYSTEM_PITCHes.
In hokum.h add #define ATAKA_RACK 6, #define NUM_ATAKA_MISSLES 8, #define WEAPON_ATAKA(HEADING) ..., in head and #undefs in tail.
Replace all WEAPON_CONFIG_TYPE_KA52_HOKUM_B_* definitions with generated ones. The last one should be 35.
Edit weapon.h - there should be 35 of WEAPON_CONFIG_TYPE_KA52_HOKUM_B_* definitions.
Edit ac_dbase.c - max_weapon_config_type must be WEAPON_CONFIG_TYPE_KA52_HOKUM_B_35, other *_config_types should point to correct payloads.



I believe the weapon payload system should be rewritten someway. That "generated" part can be done in runtime.


If someone succeeds in this, it would be nice to add a page to eechcentral.

#4587721 - 12/23/21 07:38 PM Re: NEED HELP!! Adding weapons for ka-52. [Re: ignarik]  
Joined: Jun 2005
Posts: 675
FireBird_[WINE] Offline
Member
FireBird_[WINE]  Offline
Member

Joined: Jun 2005
Posts: 675
Originally Posted by ignarik
Is it possible to prescribe 8 missiles "STURM"for MI24 bots?

Edit ac_dbase.c looking in hind.h.

#4587722 - 12/23/21 07:42 PM Re: NEED HELP!! Adding weapons for ka-52. [Re: ignarik]  
Joined: Jun 2005
Posts: 675
FireBird_[WINE] Offline
Member
FireBird_[WINE]  Offline
Member

Joined: Jun 2005
Posts: 675
Also, adding a weapon to a playable helicopter may lead to corresponding aphavoc\source\gunships\avionics\*\*_wpn.c changes.

#4588837 - 01/08/22 02:45 PM Re: NEED HELP!! Adding weapons for ka-52. [Re: ignarik]  
Joined: May 2013
Posts: 413
SKIP2008 Offline
Member
SKIP2008  Offline
Member

Joined: May 2013
Posts: 413
ITALY
Hi Ignarik, i've made three GWUTs, one with VIKHR straight trajectory, another with VIKHR decreased flightpath deviation and one with better SHTURM variant for Hinds plus VIKHR replaced by ATAKA missile: https://drive.google.com/file/d/1Mit48XMGH95EcuAwGOjbFL4G-kCem3Sm/view?usp=sharing

Last edited by SKIP2008; 01/08/22 02:46 PM.
#4588933 - 01/10/22 08:37 AM Re: NEED HELP!! Adding weapons for ka-52. [Re: ignarik]  
Joined: May 2013
Posts: 413
SKIP2008 Offline
Member
SKIP2008  Offline
Member

Joined: May 2013
Posts: 413
ITALY


Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

If you shop on Amazon use this Amazon link to support SimHQ
.
Social


Recent Topics
Actors portraying US Presidents
by PanzerMeyer. 04/19/24 12:19 PM
Dickey Betts was 80
by Rick_Rawlings. 04/19/24 01:11 AM
Exodus
by RedOneAlpha. 04/18/24 05:46 PM
Grumman Wildcat unique landing gear
by Coot. 04/17/24 03:54 PM
Peter Higgs was 94
by Rick_Rawlings. 04/17/24 12:28 AM
Whitey Herzog was 92
by F4UDash4. 04/16/24 04:41 PM
Anyone can tell me what this is?
by NoFlyBoy. 04/16/24 04:10 PM
10 Years ago MV Sewol
by wormfood. 04/15/24 08:25 PM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0