Author Topic: Speedkarts that are unhindered by water.  (Read 1229 times)

Pretty much when they drive underwater, they don't float around or have gimped handling.

they drive like normal. ye

Copy the gamemode (Blockland\Add-Ons\GameMode_SpeedKart)
Change the copied one's name to anything with letters
Open it, go to server.cs
Go to:
Code: [Select]
   //vehicles should explode in water
   function VehicleData::onEnterLiquid(%data, %obj, %coverage, %type)
   {
      Parent::onEnterLiquid(%data, %obj, %coverage, %type);

      %obj.damage(%obj, %obj.getPosition(), 10000, $DamageType::Lava);
      %obj.finalExplosion();
   }

   //players should die in water
   function Armor::onEnterLiquid(%data, %obj, %coverage, %type)
   {
      Parent::onEnterLiquid(%data, %obj, %coverage, %type);
      %obj.hasShotOnce = true;
      %obj.invulnerable = false;
      %obj.damage(%obj, %obj.getPosition(), 10000, $DamageType::Lava);
   }
Delete either one or both if you want

The new gamemode should be just like speedkart but now things will die less in the water.

If you just want the speedkarts, http://rtb-archive.host22.com/add_ons/Vehicle_SpeedKart.zip


EDIT: Oh i now see what you mean. I don't think this is possible without affecting their above water performance too much
« Last Edit: July 27, 2014, 08:41:04 PM by Crispy_ »

EDIT: Oh i now see what you mean. I don't think this is possible without affecting their above water performance too much
rip underwater racing segments

rip underwater racing segments

What about the old gravity vehicles that would drive on walls?

Gravity Jeep
Gravity Turismo

What about the old gravity vehicles that would drive on walls?

Gravity Jeep
Gravity Turismo

he needs vehicles to drive underwater.


not vehicles that can drive on walls.



those are--
that's--
NOT...

WHY WOULD YOU SUGGEST THIS

he needs vehicles to drive underwater.


not vehicles that can drive on walls.



those are--
that's--
NOT...

WHY WOULD YOU SUGGEST THIS
Maybe they like, magnetize to the ocean floor so you can drive properly?

he needs vehicles to drive underwater.
not vehicles that can drive on walls.
WHY WOULD YOU SUGGEST THIS

Maybe they magnetize to the ocean floor so you can drive properly


Magnetize as in have an extreme amount of grip so they can turn against the severe rotational drag that is applied while underwater. Gravity vehicles don't have extra grip, they just change the direction they fall, which makes them a completely impractical suggestion for any race not specifically designed for them.

That won't help, though. Even with friction of 500 (enough to make my car flip over while turning normally), steering underwater is very sluggish. Handling was sluggish even when rotational drag was set to -50 (something you absolutely do not want in normal conditions). There seems to be far too much acting on the vehicle for any change in handling to fix this problem.



Have you considered or attempted building a section that just looks like it's underwater, using building techniques instead of workarounds?
« Last Edit: July 27, 2014, 11:32:37 PM by Teneksi »

Have you considered or attempted building a section that just looks like it's underwater, using building techniques instead of workarounds?

I've done this before and it actually worked well. Just paint all the 'underwater' bricks a blue color, and use some large print baseplates with collision and raycasting turned off for the water surface.

Here's the print baseplates: http://lugnut.co.vu/add_ons/Brick_PrintBaseplates.zip

just set the water's viscosity to 0 so the water has no thickness via mission editor

just set the water's viscosity to 0 so the water has no thickness via mission editor
Beat me to it.