Skip to content

lpiob/mta-billiard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

mta-billiard

Billiard script for Multi Theft Auto.

Screenshot

About

This is a billiard script which was originally developed for LSS-RP.pl server.

Demonstration video: http://www.youtube.com/watch?v=vB5U1Sqy37U

It's (c) Wielebny, qaisjp 2012

Licence: CC-BY-SA - http://creativecommons.org/licenses/by-sa/3.0/deed.en

If you run this resource on your server, We would like to be attributed in game or your website.

How to use

Just start the resource. It will create two billiard tables at Grove Street. There's no commands to start the game, just approach them, and use your mouse buttons to target and shoot.

Use /resettable to reposition balls on table.

Script only simulates gaming physics. Enforcement of rules, point counting, etc. should be done by the players.

Customizing

You can edit table locations in billard.lua. They can be placed in different dimensions and interiors. Table rotation is not supported ATM.

You should replace /resettable command with some kind of GUI.

You should alter broadcastCaptionedEvent in interaction.lua to suit your server.

You should consider extending this code and sharing back your changes.

Todo

  • Improve english translation.
  • Table rotation.
  • Cue hit angle isn't taken into calculation.
  • Balls aren't rotating while moving.
  • Better way for players to set shot force.
  • Use all of the available animations.
  • Physics algorithms could be improved.
  • Other camera view-modes.

Credits

Sounds are made by juskiddink http://www.freesound.org/people/juskiddink/ and are licensed under the attribution license.

About

Biliard script for Multi Theft Auto

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages