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:86
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:2087
Registered:December 2012
Location: Russian Federation
It seems now enemy needs attack helicopters, to counterbalance player controlled tanks!



7609+AI (r1475) | Unofficial modpack | Win8+ fix | Experimental project | Youtube | Trunk (r8764)

"It's already "dog-eat-dog", friend. Not sure what worse a bunch of zombies could do."


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:129
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]




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:86
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:92
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:86
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:129
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)



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:1984
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 message
merc05

 
Messages:86
Registered:January 2013
I checked the download. It unpacks correctly with WinRar 5.7 64-bit. Hope this helps.
Previous Topic: Idea on fixing traits for rifles
Next Topic: Logical Bodytypes code added into the trunk (WIP)
Goto Forum:
  


Current Time: Thu Feb 27 21:51:51 EET 2020

Total time taken to generate the page: 0.01228 seconds