Scripting Tutorial 7 - Bomb Shop

All Lua scripting topics related to Multi Theft Auto.

Moderators: Moderators, MTA team

Scripting Tutorial 7 - Bomb Shop

Postby Ransom on Tue Mar 13, 2007 5:36 pm

NOTICE: THIS TUTORIAL MAY BE OUTDATED! PLEASE READ: http://forum.mtasa.com/viewtopic.php?f=91&t=22270

It's done! Check it out

seventh tutorial.

Leave your comments below

All video and filming was done by me as was tutorial 6 @ about 150ish ping (USA to Europe server).
Part of the legendary VCP team... the only gang to win an official MTA tournament, undefeated! /smug
Offical B.L.A.S.T.A.ddict
XFire Gaming Record
User avatar
Ransom
Super Moderator
 
Posts: 4759
Joined: Wed Sep 24, 2003 6:32 pm
Location: The non-smoking section
Gang: VCP

Postby 50p on Tue Mar 13, 2007 7:08 pm

Damn good tut.
If you have connected from USA to Europen server and you had 150ms ping then it is unbeliveable.
Bombing is cool, now new ideas comes to my mind about movies.

EDIT:
I was just wandering where is the script ready to be downloaded.
Also, you haven't put a little discription in actual 7th tutorial's site, like in other tutorials.
User avatar
50p
Veteran
 
Posts: 1787
Joined: Fri Jan 19, 2007 5:55 pm
Gang: Lua Masters :P

OMG

Postby kevinmce on Tue Mar 13, 2007 8:14 pm

One thing.... OMG class, that is amazing!

Love it and cant wait to play it.
User avatar
kevinmce
New User
 
Posts: 19
Joined: Tue Mar 13, 2007 8:12 pm
Location: Ireland

Postby Ransom on Tue Mar 13, 2007 8:22 pm

Apologies, accident from trying to properly format the tut. As you may have noticed, the others have some line wrapping or other presentation problems. It has proven to be a pain to format these things in HTML.

Fixed.
Part of the legendary VCP team... the only gang to win an official MTA tournament, undefeated! /smug
Offical B.L.A.S.T.A.ddict
XFire Gaming Record
User avatar
Ransom
Super Moderator
 
Posts: 4759
Joined: Wed Sep 24, 2003 6:32 pm
Location: The non-smoking section
Gang: VCP

Postby apocalipsys on Tue Mar 13, 2007 9:15 pm

Hey nice tutorial, also cool concept. Missed that on the normal San Andreas. (i know there is an 8ball bomb shop) However i found this tutorial amazing specially stat engine bomb (mob rpg is going to be awesome). well MTA developer kudos.
apocalipsys
 

Postby [TDH]Boss on Tue Mar 13, 2007 11:02 pm

"Press 1-5 to choose your bomb."
Duh, and which one is 5th?

I am also curious, if bomb arming is binded to the "vehicle_fire", how would you be able to do a DB?
Image
Image
User avatar
[TDH]Boss
Regular
 
Posts: 122
Joined: Sun Jan 21, 2007 3:51 am
Location: Russia, Moscow
Gang: Team Dies Hard

Postby Wheelburner on Wed Mar 14, 2007 6:42 am

It's getting better with every next tutorial 8)
User avatar
Wheelburner
New User
 
Posts: 91
Joined: Mon Jan 29, 2007 8:16 am
Location: Estonia

Postby Ace_Gambit on Wed Mar 14, 2007 7:41 am

Now all we need is a terrorist player model :lol: .
User avatar
Ace_Gambit
Experienced
 
Posts: 533
Joined: Mon Dec 25, 2006 12:58 pm
Location: Amsterdam

Postby BTH on Wed Mar 14, 2007 9:09 am

Scripting Tutorial 7 - Bomp Shop - Tuesday 13 March 2007 (16:18)
User avatar
BTH
Regular
 
Posts: 103
Joined: Mon Aug 22, 2005 9:36 pm
Location: 127.0.0.1

Postby Azu on Wed Mar 14, 2007 9:44 am

lol
Image
Azu
Regular
 
Posts: 219
Joined: Sat Dec 09, 2006 5:35 am

Postby jhxp on Wed Mar 14, 2007 9:46 am

Corrected, thanks for pointing that out :)
One of the [VCP] leaders // honorary member of =PCP=
Image Image
User avatar
jhxp
Super Moderator
 
Posts: 1368
Joined: Mon Jan 26, 2004 6:51 am
Location: Poland
Gang: VCP/PCP

Postby .:SDK:. on Wed Mar 14, 2007 3:00 pm

It's a good tutorial, car bombs!
But with the rc vehicles, you can still see the driver :(
Can't this be fixed?
.:SDK:.
Regular
 
Posts: 215
Joined: Tue Aug 29, 2006 8:07 am

Postby Ransom on Wed Mar 14, 2007 3:51 pm

[TDH]Boss wrote:"Press 1-5 to choose your bomb."
Duh, and which one is 5th?

I am also curious, if bomb arming is binded to the "vehicle_fire", how would you be able to do a DB?


Answered your first question in the comments of the newspost, for the second question:

bindKey ( player, "vehicle_fire", "down", "armBomb" )
unbindKey ( player, "vehicle_fire", "down", "armBomb" )

This is binding the key to the function armBomb. Thus, when you press the key that function is triggered (if the conditions are met as he specified as well). The driveby action on the keypress is not being removed.
Part of the legendary VCP team... the only gang to win an official MTA tournament, undefeated! /smug
Offical B.L.A.S.T.A.ddict
XFire Gaming Record
User avatar
Ransom
Super Moderator
 
Posts: 4759
Joined: Wed Sep 24, 2003 6:32 pm
Location: The non-smoking section
Gang: VCP

Postby Talidan on Wed Mar 14, 2007 6:17 pm

To add onto what ransom is saying, the driveby will work fine as it is not disabled (there is a separate function if u were to disable the "vehicle_fire" altogether).

The only flaw is that if you were to press "vehicle_fire" at any moment, including during drivebys, itd activate the bomb - and in my opinion this is a minor flaw, as there's exactly the same problem in single player with clashes of bombs/drivebys/nitro. Presumably the driver who fitted the bomb would be aware of it anyway

.:SDK:. wrote:It's a good tutorial, car bombs!
But with the rc vehicles, you can still see the driver :(
Can't this be fixed?


It probably can. But i dont see it being a major problem. Its not something that's worth dedicating time over imo.
Talidan, aka danthetaliban
VCP FOREVER!
User avatar
Talidan
Super Moderator
 
Posts: 2485
Joined: Sun Dec 28, 2003 3:24 pm
Location: Cave

Postby .:SDK:. on Thu Mar 15, 2007 2:19 pm

Talidan wrote:
.:SDK:. wrote:It's a good tutorial, car bombs!
But with the rc vehicles, you can still see the driver :(
Can't this be fixed?


It probably can. But i dont see it being a major problem. Its not something that's worth dedicating time over imo.

Yes, i wouldn't see it to as a major problem, but MTA would be better :wink:
.:SDK:.
Regular
 
Posts: 215
Joined: Tue Aug 29, 2006 8:07 am

Next

Return to Scripting

Who is online

Users browsing this forum: 50p and 0 guests