Author Topic: Gas Mod [V1.3]  (Read 25175 times)

Gas Mod


Description
Vehicles now have limited fuel! If you run out, you no longer have control over your vehicle!


Installation and Use
Download and place Server_GasMod.zip into your Add-ons Folder.
While starting a server, enable Server_GasMod.

To add fuel, Use the events "addGas" and "setGas".
While creating your own vehicle, if you want a custom amount of fuel use the following:
Code: [Select]
VGM_Gas = CustomAmountHere;

Download
Server_GasMod.zip


Change-log
V1.0 to V1.1
Code: [Select]
-Added RTB Pref for Default Amount
-Added RTB Pref for toggling
-Fixed vehicle events. (eg. onVehicleEnterZone > Vehicle > addGas [1000] now works)

V1.1 to 1.2
Code: [Select]
-Now has a VCE Variable for gas. <var:vehicle:gas>
V1.2 to V1.3
Code: [Select]
-Fixed AIPlayers having gas
« Last Edit: December 17, 2010, 07:51:05 PM by Scout31 »

great

so different events have to be made for each vehicle spawn

another great add-on from scout

Yep i saw this is suggestions and requests
Thanks for releasing!

this looks really cool, I should try it.

I'd really advise making it a tool of some kind, or a zone-type event, so gas can be dispensed to any vehicle that sits on top of the set brick (this feature would make gas stations necessary in RP's).

I'd really advise making it a tool of some kind, or a zone-type event, so gas can be dispensed to any vehicle that sits on top of the set brick (this feature would make gas stations necessary in RP's).
   


I agree with this

I'd really advise making it a tool of some kind, or a zone-type event, so gas can be dispensed to any vehicle that sits on top of the set brick (this feature would make gas stations necessary in RP's).
Input > Vehicle > addGas/setGas
Its there.

great

so different events have to be made for each vehicle spawn

another great add-on from scout
Because narcissism makes you cool.

I'd really advise making it a tool of some kind, or a zone-type event, so gas can be dispensed to any vehicle that sits on top of the set brick (this feature would make gas stations necessary in RP's).
Eh.. Zone events..?

Ok, so I did some eventing, I came to the conclusion that the only possible way to get to work is this event.

OnActivate > Named Brick > AddGas > Gas Ammount.

I know this is a weird way but it works.

Ok, so I did some eventing, I came to the conclusion that the only possible way to get to work is this event.

OnActivate > Named Brick > AddGas > Gas Ammount.

I know this is a weird way but it works.
Named Brick being the Spawn? This is compatible with Vehicle events.


EDIT: Here is an example, and yes, it works:
onVehicleEnter > Vehicle > addGas [1000]
« Last Edit: November 07, 2010, 09:05:47 PM by Scout31 »

OnEatbeans > Playersetgas > 9.9 > 2012.

seems rather confusing but useful, I will try it out. Also, gas is now 7.32 blocks. (i blame brickconomy)

Named Brick being the Spawn? This is compatible with Vehicle events.


EDIT: Here is an example, and yes, it works:
onVehicleEnter > Vehicle > addGas [1000]

I tried that, it does not work.

I tried that, it does not work.
It doesn't work because Scout31 has no clue what he is doing.