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 previous 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]

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


Current Time: Mon Jan 25 00:50:49 EET 2021

Total time taken to generate the page: 0.01161 seconds