Author Topic: Teneksi's Garage - Ambulance back in progress  (Read 27201 times)

courteous bump so topic isn't too old to reply to/edit :^)
thanks!



I silently updated the buggy. The height of the jump is now much smaller. It's now more like something you'd use to get over an opponent in a race, or to jump up onto a platform or over a small gap, rather than something you'd use to rocket around a map and do flips with nothing but the force of the springs.
« Last Edit: June 04, 2015, 01:47:19 PM by Teneksi »


Oh yis the breakdance truck!

Yup. It's the best solution as far as I can tell.
As I said in OP (but may edit out later, so I'll post it here for posterity or something):

Includes sideways-standing mount point because you can't lay down when sitting up in a vehicle, unless everyone is able to do that and stick their heads through the walls. An alternative was to use the death animation but that would mean that turning around puts your head through the wall. I also didn't like the idea of having the patient sitting bolt upright on the bed. So, you're standing sideways, meaning you can spin like a turbine on your way to the hospital. I was almost upset about this but it's not much weirder than anything else in Blockland.

Very nice! Mind the crouching patients, though :P

Very nice! Mind the crouching patients, though :P
You can't crouch in a--



damn it.

now what do I do?

Perhaps a dummy patient which would copy some of the features of the player?

Perhaps a dummy patient which would copy some of the features of the player?
This would work. Get your hands on the complete blockhead model and color/hide/show nodes.

-OR-

Package the crouch method (or the crouch trigger method) and if the player is in that seat, don't parent the method. I would try this one first.

Packaging the crouch function would probably be the best way.

Package the crouch method (or the crouch trigger method) and if the player is in that seat, don't parent the method. I would try this one first.
Packaging the crouch function would probably be the best way.

Yep. This occurred to me just before I fell asleep this morning (currently nocturnal by accident) and I'm about to try it out.


Nope. It's too basic of a control, as far as I can tell. This code successfully causes "!" to appear if, and only if I'm in that mount point, but the crouch still happens. So I guess I have to figure something else out unless somebody KNOWS this is something I can do (but I'm doing it wrong)

Code: [Select]
package AmbulanceControlOverride
{
function armor::onTrigger(%this, %obj, %slot, %val) //Interrupt crouch when in back of the ambulance
  {
if(%obj.getClassName()$="Player" && %slot == 3 && %val == 1 && %obj.isMounted() && %obj.getObjectMount().GetDatablock().getName() $= "AmbulanceVehicle" && %obj.getMountNode() == 5)
{ //If they are a player, they're starting a crouch, and they're mounted to the ambulance as the patient
announce("!");
return; //don't do it
}
else
{
return Parent::onTrigger(%this,%obj,%slot,%val); //one of those things was false so continue as normal
}
}
};
activatePackage(AmbulanceControlOverride);
« Last Edit: June 12, 2015, 06:32:12 PM by Teneksi »

a little offtopic here
am i the only one who noticed he got a new avatar

a little offtopic here
am i the only one who noticed he got a new avatar
Nope I saw it first :p

Nope I saw it first :p

ive known about it for a few days

The worst-case scenario happened.

The worst-case scenario happened.
god damn it what's with add-on creators having their hard-drives stuff themselves lately? it's like a running gag now.
this is why you should make backups. stuff like this sucks.