Blockland Forums > Suggestions & Requests

Jetpack system - needs scripter

Pages: << < (12/16) > >>

Thé Lord Tony:


--- Quote from: MARBLE MAN on February 22, 2013, 10:20:37 PM ---http://meshiest.com/M/src/Player_JetPack.zip

http://forum.blockland.us/index.php?topic=225420.msg6373485#msg6373485

to add energy do :
%player.setEnergyLevel(%player.getEnergyLevel() + 50) //replace 50 with amount

right click to use jets
if you have energy event/vce you can chnge fuel that way

--- End quote ---


Demian:

It's nice that MARBLE MAN showed interested but what he did was nothing like what I asked. What he did is completely useless that can be done better by changing three variables in a playertype.

His add-on is a playertype that gains vertical velocity very fast when you hold down right click. It uses the default energy system for jetting and once you run out you stop jetting. Sounds a lot like the fuel jet player. That's exactly what it is with two crucial differences: the fuel jet player recharges the energy over time, and the fuel jet jetting is much smoother and better than this. In fact his playertype feels a lot like the old v0002 playertype and it would not be surprised if parts of it were copied from there.

Here, let me recreate his add-on except with much better feeling jetting in 5 lines.

--- Code: ---datablock PlayerData(PlayerFuelJetLimited : PlayerFuelJet){
uiName = "Limited Fuel-Jet Player";
rechargeRate = 0;
jetEmitter = "";
jetGroundEmitter = "";};
--- End code ---

I did not ask for a playertype. I did not ask anyone to recreate the jetting system. All I wanted was to mount image A into slot 1 of image B when you press the jet button.

Daenth:

Okay, so I think I can script this up really fast for you but let me get everything straight.
You want it so when you press the jet key, the jetpack appears on your back. When you let go, the jetpack disappears. The jetpack is also on a nonregenerating energy bar separate from the player's normal jet fuel bar, which can be refueled through gas canisters?

And I assume you have all the emitters set-up so that isn't needed?

Demian:


--- Quote from: Daenth on February 23, 2013, 07:51:12 AM ---Okay, so I think I can script this up really fast for you but let me get everything straight.
You want it so when you press the jet key, the jetpack appears on your back. When you let go, the jetpack disappears. The jetpack is also on a nonregenerating energy bar separate from the player's normal jet fuel bar, which can be refueled through gas canisters?

And I assume you have all the emitters set-up so that isn't needed?

--- End quote ---
No.

The jetpack image is already mounted to the player's back. Now when you press the jet key the emitter image is mounted (only if the jetpack image is indeed mounted to $BackSlot) to slot 1 of the jetpack image. When you run out of energy the emitter image should be unmounted from slot 1 of the jetpack image.

I already have the jet player done as well as the refueling gas item. Emitters too.

Fob:


--- Quote from: Demian on February 23, 2013, 07:56:36 AM ---No.

The jetpack image is already mounted to the player's back. Now when you press the jet key the emitter image is mounted (only if the jetpack image is indeed mounted to $BackSlot) to slot 1 of the jetpack image. When you run out of energy the emitter image should be unmounted from slot 1 of the jetpack image.

I already have the jet player done as well as the refueling gas item. Emitters too.

--- End quote ---
shouldn't the jet be an item instead?

Pages: << < (12/16) > >>

Go to full version