Home » MODDING HQ 1.13 » v1.13 Idea Incubation Lab » Mounted Guns and Player Tanks (drivable vehicles feature expansion)
Mounted Guns and Player Tanks[message #358834]
|
Wed, 22 January 2020 00:58
|
|
merc05 |
 |
Messages:90
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] Report message to a moderator
|
Corporal 1st Class
|
|
|
|
 |
 |
Mounted Guns and Player Tanks
By: merc05 on Wed, 22 January 2020 00:58
|
 |
|
Re: Mounted Guns and Player Tanks
By: Deleted. on Wed, 22 January 2020 11:03
|
 |
|
Re: Mounted Guns and Player Tanks
By: townltu on Wed, 22 January 2020 12:51
|
 |
|
Re: Mounted Guns and Player Tanks
By: Kitty on Wed, 22 January 2020 14:00
|
 |
|
Re: Mounted Guns and Player Tanks
By: merc05 on Wed, 22 January 2020 17:38
|
 |
|
Re: Mounted Guns and Player Tanks
|
 |
|
Re: Mounted Guns and Player Tanks
By: merc05 on Thu, 23 January 2020 02:04
|
 |
|
Re: Mounted Guns and Player Tanks
By: Kitty on Fri, 07 February 2020 09:23
|
 |
|
Re: Mounted Guns and Player Tanks
By: Hawkeye on Fri, 07 February 2020 12:13
|
 |
|
Re: Mounted Guns and Player Tanks
By: merc05 on Fri, 07 February 2020 20:16
|
 |
|
Re: Mounted Guns and Player Tanks
By: Zaphod on Sat, 18 April 2020 16:26
|
 |
|
Re: Mounted Guns and Player Tanks
By: Zaphod on Sun, 19 April 2020 09:31
|
 |
|
Re: Mounted Guns and Player Tanks
By: Zaphod on Wed, 22 April 2020 19:56
|
 |
|
Re: Mounted Guns and Player Tanks
By: merc05 on Mon, 27 April 2020 14:03
|
 |
|
Re: Mounted Guns and Player Tanks
By: Zaphod on Mon, 27 April 2020 17:50
|
Goto Forum:
Current Time: Sat Jun 13 21:05:56 GMT+3 2026
Total time taken to generate the page: 0.00688 seconds
|