Blockland Welcome, Guest. Please login or register.
Did you miss your activation email?
December 12, 2017, 04:05:07 AM

Home Help Login Register
+  Blockland Forum
|-+  Blockland Files
| |-+  Add-Ons
| | |-+  [Vehicle] Technical / Heavy Machine Gun - Updated December 11
Pages: 1 [2] 3 4
Author Topic: [Vehicle] Technical / Heavy Machine Gun - Updated December 11  (Read 1824 times)
ReddBoi

« December 06, 2017, 05:08:10 PM »

hot nut
Logged
Ad Bot

Full members do not see ads

Ctrooper

« December 06, 2017, 07:15:23 PM »

Wow this is awesome nice fucking work
Logged
Goth77

« December 07, 2017, 12:53:43 AM »

Nice turret! As for the issue with free look, something must be wrong with the t_look.dsq. Essentially, while holding z the head of the turret should still move, and the player mounted to it; this will also stop the stand from moving while z is held
Logged
Rally

« December 07, 2017, 06:53:50 AM »

Can this be used on any vehicle?

Unfortunately no, and it's for the same reason you can't put a tank turret on a tank turret and then put that tank turret in a jeep. The HMG is technically a gun player mounted to a "gun stand" player. You can get on the MG, F8 the MG over a jeep, and when it falls in you'll be in the MG on the jeep, but you won't be able to switch to other seats, and you won't be able to switch to the MG when in the jeep

AFAIK you could put
DshKTurretPlayer.uiName = "DSHK";
BrowningM2TurretPlayer.uiName = "Browning M2";

At the end of server.cs and get access to the guns without the stand, but in reality it wouldn't be very useful unless you had a vehicle specifically designed to carry them

Nice turret! As for the issue with free look, something must be wrong with the t_look.dsq. Essentially, while holding z the head of the turret should still move, and the player mounted to it; this will also stop the stand from moving while z is held

I know what's causing it and it's in the same vein of problems caused by what I explained above. If you take a tank turret and put it in the driver's seat of the jeep you wont be able to free-look. However if you put it in a passenger seat you will be able to. This would also fix the stand rotating. This also raises a bunch of other headache issues however but I'm coming up with some workarounds for the future
Logged
The Brighter Dark

« December 07, 2017, 09:46:46 AM »

yes
Logged
SWAT One

« December 07, 2017, 10:37:47 AM »

What if you made it so that you cannot mount the turret to any player vehicle which has a movement speed under a small amount, if they are a player, or if they are spawned from a hole? This way it mounts to only physics vehicles and boat player vehicles that are spawned from vehicle spawns.
« Last Edit: December 07, 2017, 10:39:32 AM by SWAT One » Logged
Rally

« December 07, 2017, 11:43:18 AM »

The way it works is that when you spawn an HMG, it spawns a Player vehicle which is just the stand, and then it spawns an M2 or DSHK player vehicle, and mounts it to the stand. In that sense, you could mount the stand to a physics vehicle and mount to it easily, but when the stand's mount is occupied by the gun, it wont allow you to switch to that position because it thinks it's already occupied by a "player", in this instance the mounted gun player vehicle. I can work around it by packaging serverCmdNextSeat to detect when there's an available turret to mount to and accommodate for that which is what I'm doing now
Logged
cooolguy32

« December 07, 2017, 11:49:43 AM »

Wow this is awesome nice fucking work
Logged
failbros2

« December 07, 2017, 01:24:52 PM »

PSA: if you have the old heavy machine gun addon, either rename that or delete it
both machine guns are named "Heavy Machine Gun" so change the name to avoid confusion i guess
Logged
Satan From Wreck-It-Ralph

« December 07, 2017, 02:48:05 PM »

100% radical
Logged
Sylvanor

« December 07, 2017, 03:14:56 PM »

o mi
Logged
Not an alt
« December 07, 2017, 03:31:40 PM »

apc when
Logged
ahoy

« December 07, 2017, 06:03:37 PM »

LMG MOUNTED AND LOADED
Logged
Swollow

« December 07, 2017, 06:24:16 PM »

this is the weirdest coincidence




Logged
Rally

« December 07, 2017, 07:10:03 PM »

release it so I can steal your code
Logged
Pages: 1 [2] 3 4  


Login with username, password and session length

Powered by SMF 1.1.20 | SMF © 2013, Simple Machines
Page created in 0.039 seconds with 19 queries.