Home » MODDING HQ 1.13 » v1.13 Idea Incubation Lab  » Mounted Guns and Player Tanks (drivable vehicles feature expansion)
delivery7.png  Mounted Guns and Player Tanks[message #358834] Wed, 22 January 2020 00:58 Go to next message
merc05

 
Messages:87
Registered:January 2013
Some tinkering with the vehicle code. Since the tag "MountedGun" was already present in the code (with some description left by original coders of drivable vehicles) I guess such feature was supposed to be put into the game at some point.

What this does:
- adds a MountedGun tag that can be used in Vehicles.xml to assign a weapon to vehicle seat
- the ID number in Items.xml is used to determine the weapon
- a merc placed in this seat will use the assigned weapon instead of his own gun
- merc's marksmanship is used to determine hit chance but the act of firing itself is done by the vehicle, so in order to properly fire a weapon the vehicle must have a firing animation defined (in the demo video a tank is used)
- one vehicle can have multiple guns mounted (up to the number of seats)
- I also applied a little hack to prevent tanks from "sliding" by restricting their movement to 4 directions and swapping chasis gfx depending on the direction of movement

Restrictions:
- ammo on vehicle guns is infinite due the way vehicle guns are spawned, this can be OP

Don't know if this would be useful to anyone or does it give the player too much advantage to be considered implementing. Anyways here is the link to the demo:

https://youtu.be/YZcq8X351ws

[Updated on: Wed, 22 January 2020 01:01]

Re: Mounted Guns and Player Tanks[message #358836 is a reply to message #358834] Wed, 22 January 2020 11:03 Go to previous messageGo to next message
sevenfm

 
Messages:2355
Registered:December 2012
Location: Russian Federation
It seems now enemy needs attack helicopters, to counterbalance player controlled tanks!



7609+AI (r1792) | Experimental project | Unofficial Modpack | Youtube | Trunk (r8916) | 1.13 Starter Docs | 1.13 How to get

Кто в Москве не бывал, красоты не видал.


Re: Mounted Guns and Player Tanks[message #358840 is a reply to message #358836] Wed, 22 January 2020 12:51 Go to previous messageGo to next message
townltu

 
Messages:385
Registered:December 2017
Location: here
sevenfm wrote on Wed, 22 January 2020 11:03
It seems now enemy needs attack helicopters, to counterbalance player controlled tanks!
Long range ATGM, fired off map like artillery, i.e. requires troops in adjacent sector.

That would explain why players do not find them on the battlefield;)
(you also do not get a couple mortars incl ammo if you defeat a potential artillery support squad)
Re: Mounted Guns and Player Tanks[message #358842 is a reply to message #358840] Wed, 22 January 2020 14:00 Go to previous messageGo to next message
Kitty

 
Messages:260
Registered:October 2017
Location: Germany
Might be too much for player use, but sure looks good. The AI probably is not capable enough to outtake such a tank, unless the AI group it faces has also a tank and minefields on map needed an update from landmine to anti-tank mines (which allready exist in stock 1.13). Certainly an interesting idea and if balanced with Ai capabilities that sure would be a fun option.

Btw., what's up with the dog in the video? Is it just a face or is there a chance that the lonesome merc can recruit an animated dogmeat happy ?

[Updated on: Wed, 22 January 2020 14:00]




How to get: latest 1.13, 7609 and more | MapEditor+UB | 7609 SCI (eng) | Compiling+SVN

I need more details. (Didi Hallervorden)
Re: Mounted Guns and Player Tanks[message #358844 is a reply to message #358842] Wed, 22 January 2020 17:38 Go to previous messageGo to next message
merc05

 
Messages:87
Registered:January 2013
Quote:
Btw., what's up with the dog in the video? Is it just a face or is there a chance that the lonesome merc can recruit an animated dogmeat?
Yup. A wolf animation exists. It was made by a user of a Polish Jagged Alliance site by the nick of Fallout152.

Link to the file: https://forum.jagged-alliance.pl/download/file.php?id=1001

Link to the topic: https://forum.jagged-alliance.pl/viewtopic.php?f=19&t=2874

[Updated on: Wed, 22 January 2020 17:40]

Re: Mounted Guns and Player Tanks[message #358845 is a reply to message #358834] Wed, 22 January 2020 21:51 Go to previous messageGo to next message
crackwise

 
Messages:113
Registered:April 2013
Haha really cool!

Would actually be fine in late game if enemy had plenty AT rockets and used them properly, and of course if the rocket accuracy would be higher than it is per default.

In that case, a missile accuracy bonus to vehicles could solve the issue of rockets becoming too accurate. They would be inaccurate (as they are now) when targeting individual soldiers on long range but much more accurate to vehicles, which is kind of realistic considering the size factor happy
Re: Mounted Guns and Player Tanks[message #358847 is a reply to message #358845] Thu, 23 January 2020 02:04 Go to previous messageGo to next message
merc05

 
Messages:87
Registered:January 2013
Should anyone want to test it, here is the link to a file containing a compiled exe as well as sourcecode changes based on the main revision of 1.13 mod 8736.

http://www.mediafire.com/file/qupp3p2z9jtk192/JA2-1.13_armed_vehicles.rar/file
Re: Mounted Guns and Player Tanks[message #358950 is a reply to message #358847] Fri, 07 February 2020 09:23 Go to previous messageGo to next message
Kitty

 
Messages:260
Registered:October 2017
Location: Germany
merc05 wrote on Thu, 23 January 2020 02:04
Should anyone want to test it, here is the link to a file containing a compiled exe as well as sourcecode changes based on the main revision of 1.13 mod 8736.

http://www.mediafire.com/file/qupp3p2z9jtk192/JA2-1.13_armed_vehicles.rar/file

Sadly neither my 7zip nor Winrar could open the rar. Getting message about containing error. If you find time, could you take a look wether this is happening on your side or mine? Thanks.




Quote:
It seems now enemy needs attack helicopters, to counterbalance player controlled tanks!

If I remember correctly, Bloody Grounds had some Attack-Helicopters happy (but probably none of the authors is available for permission-asking anymore)



How to get: latest 1.13, 7609 and more | MapEditor+UB | 7609 SCI (eng) | Compiling+SVN

I need more details. (Didi Hallervorden)
Re: Mounted Guns and Player Tanks[message #358951 is a reply to message #358950] Fri, 07 February 2020 12:13 Go to previous messageGo to next message
Hawkeye

 
Messages:2204
Registered:October 2005
Location: Australia
Renegade Republik had animated helicopters too near the end of the game. I can't recall if they attack you though. I didn't hesitate to find out. suprised


Re: Mounted Guns and Player Tanks[message #358957 is a reply to message #358951] Fri, 07 February 2020 20:16 Go to previous messageGo to next message
merc05

 
Messages:87
Registered:January 2013
I checked the download. It unpacks correctly with WinRar 5.7 64-bit. Hope this helps.
Re: Mounted Guns and Player Tanks[message #359626 is a reply to message #358957] Sat, 18 April 2020 16:26 Go to previous messageGo to next message
Zaphod

 
Messages:18
Registered:April 2017
Location: Hessen Germany
Crazy work. Thumbs up. I want to test it but the unpack with winrar doesn't work.
Re: Mounted Guns and Player Tanks[message #359639 is a reply to message #359626] Sun, 19 April 2020 09:31 Go to previous messageGo to next message
Zaphod

 
Messages:18
Registered:April 2017
Location: Hessen Germany
@merc05 I've some questions

Is the forwork from member anv?

Is the tank getting out of fuel like the other vehicles and could be refueled with canister?

Have the tank his own inventory?
I hope i could have a look into the files.
I've been playing with some ideas since anv's demonstration.
I was hoping he would continue, but then unfortunately nothing more could be heard from him.
Sorry for my english. I'm not that good at it.
Re: Mounted Guns and Player Tanks[message #359690 is a reply to message #359639] Wed, 22 April 2020 19:56 Go to previous messageGo to next message
Zaphod

 
Messages:18
Registered:April 2017
Location: Hessen Germany
After several days testing i figured it out. Now it works. Some questions have been answered by themselves.
-Tank can get his own inventory? Yes
-Tank uses up fuel? Yes
-Can the tank be refuelled? I still have to test it

Now some new questions have arisen^^

The path system works great under these conditions.
Apart from the opponent's AI, which doesn't know how to handle the tank, I noticed a few things.
The turret unfortunately only rotates when one of the tower crew shoots. Is there a chance to change it so that you can look in a certain direction like the MERC's?
Usually, with old tanks, apart from the commander, none of the crew has all-round visibility. How could you solve this, depending on the individual crew member?
Is it possible to exchange the simulation for a completely new one?
Or to replace another vehicle and leave the existing tanks alone?
Best greeting
Re: Mounted Guns and Player Tanks[message #359791 is a reply to message #359690] Mon, 27 April 2020 14:03 Go to previous messageGo to next message
merc05

 
Messages:87
Registered:January 2013
Hello. Sorry the late reply. So, to answer your questions:

The vehicle behaviour is untouched since anv's code so all standard restrictions for vehicles still apply. Unfortunately so is the way the look command works on vehicles i.e. it applies to the merc not the vehicle itself (this makes perfect sense for vehicles without turrets). The merc has a 270 degree of rotation in his seat, I haven't touched that (but probably a customized restriction for the ini the could be added). Also to make it more clear, in JA2 the way the tanks are rendered is that the actual vehicle that can move in all 8 directions is the turret itself, the chasis is only a static graphic that can face only N-S or W-E. Hence the sliding effect, which is subverted by adding path restrictions. So the direction of the turret is actually the real direction the whole vehicle is facing, so are relevant mercs inside e.g. the driver will see in the direction the turret is facing, not the chasis. This would require diverging from the original vehicle code, which again I haven't touched. Hope this helps.

Personally I think a tank is to OP as is (especially unlimited ammo). The player is practically unstoppable in it. It would require a heavily modded game with lots of countermeasures (mines, enemy tanks, soldiers with AT weapons etc.) to put a player owned tank into a campaign.
Re: Mounted Guns and Player Tanks[message #359794 is a reply to message #359791] Mon, 27 April 2020 17:50 Go to previous message
Zaphod

 
Messages:18
Registered:April 2017
Location: Hessen Germany
Thank you for the answer and the explanation of the function of this animation.
That would mean, in order to avoid the effort of animating a rotating tower, would be tanks from the WWII, without a rotating tower, e.g. "Jagdtiger" or "Sturmgeschütz" could be realizable with this.

Another consideration would be to animate the chassis and the tower separately and to control them via programming.
I have to think about it.

[Updated on: Mon, 27 April 2020 17:51]

Previous Topic: MERCProfile.xml extensions?
Next Topic: Tutorial for rendering and creating animations for LOBOT
Goto Forum:
  


Current Time: Mon Nov 30 19:40:09 EET 2020

Total time taken to generate the page: 0.01228 seconds