Liberty Unleashed

Scripting => Script Releases => Topic started by: _TailS_ on July 23, 2013, 02:49:10 pm

Title: 8-Ball Garages
Post by: _TailS_ on July 23, 2013, 02:49:10 pm
This script will add to your server 8-ball garages in them you will be able to mine the car and of course explode ;)

Download: Dropbox (https://www.dropbox.com/s/3fw9ppzqxds6fdc/8-Ball%20Garages.rar/)

(http://cs322617.vk.me/v322617382/1dbb/9jTm3ypCxK0.jpg)

Booom!!!

Good luck ! ;)

Sorry for my English ;D

Title: Re: 8-Ball Garages
Post by: Mido_Pop on July 23, 2013, 04:21:15 pm
Nice Work Man  :D
Title: Re: 8-Ball Garages
Post by: Thijn on July 23, 2013, 05:31:20 pm
A few issues with this script:
Code: (8ball_client.nut) [Select]
local Player = FindLocalPlayer();

function onClientUseDetonator( )
{
     if ( g_Car )
Where did you define g_Car? Indeed, nowhere.
Yes, in the server. But that has nothing to do with client side scripts.



Your timer is unneeded. Sure it looks nice when the garage opens when you come near the door.
But it will create only more lagg (an infinite 750ms timer will lagg), and it's unneeded for the following approach:
Instead of all doors closed by default, open them all up.
Place a sphere in the center of the garage (like you have no, by the looks of it), and close the garage when there's a vehicle in it.
Do all the magic stuff, and open up the garage again.

Problem solved, still looks fancy, and no needs for timers. Definitely not a infinite one.



Your script can only have one car with a bomb. You're saving the players' wired car in g_Car, but it will get overwritten when someone else wires their car as well.

Solution would be to have a table to store the wired cars.



I like how you're using classes, thumbs up for that. ;)



Overall not bad at all, better then I see normally.