Poll

Do you like this?

Yes
No
Need to Improve (Post Suggestion)

Author Topic: Pi's VTOL Helicopter (v2 Weaponized!)  (Read 28445 times)


Any way to fix that?
yea make it blow up on impact so it doesn't crash blockland's crap physics

Needs Mini-guns...
There's gonna be 2 alt versions: The RL and the mini gun. Pi explained that at his server.

yea make it blow up on impact so it doesn't crash blockland's crap physics
Hrm, alright. I don't know if I should do that or not... Poll.

Hrm, alright. I don't know if I should do that or not...
allowing people's servers to crash is a better idea than making it blow up when idiots ram it into the ground!

allowing people's servers to crash is a better idea than making it blow up when idiots ram it into the ground!
Alright, alright.

Could you give me the snippet of code?

Code: [Select]
function BlackhawkHVehicle::onImpact(%this, %obj, %data)
{
   %speed = vectorLen(%obj.getVelocity());
   if(%speed < 2)
      return;

   %p = new Projectile()
   {
      dataBlock = VehicleExplosionProjectile;
      initialPosition = %obj.getPosition();
      client = %obj.lastDamageClient;
      sourceClient = %obj.lastDamageClient;
   };
   MissionCleanup.add(%p);

   if(%obj.destroyed)
      return;

   %obj.setDamageLevel(%this.maxDamage);
   %obj.destroyed = 1;
   %obj.schedule(%this.burnTime, "finalExplosion");
   if(isObject(getminigamefromobject(%obj)))
      %respawn = getminigamefromobject(%obj).vehicleReSpawnTime;
   %obj.spawnBrick.schedule(%respawn,"spawnVehicle");
}
this is an UPDATED impact code which should be used over strato's helicopter. it is still not completely polished but should work great inside of a minigame and prevent crashing. replace the needed datablocks.

i am going to sleep and i might have a new version of that code tomorrow. there is a problem that allows crashing outside of a minigame and i am too lazy to check if %respawn is in ms or seconds

Ugh, I messed it up. Everyone who as already downloaded must re-download. Sorry
So you fixed the opaque window?

So you fixed the opaque window?
Yes. I accidentally unchecked 'additive' when exporting. :s



It isn't VTOL.
Exactly.
Vertical Take Off and Landing.
All helicopters do that, more or less.
It's planes like the Siddely Side Harrier Jump Jet and the Yakolev Yak.


Heh, my thoughts are already stated in this topic about this vehicle. :P