The LS3D game engine was developed by Illusion Softworks and used by the games Mafia: City of Lost Heaven, Hidden & Dangerous 2 and Chameleon. The first game that used the LS3D engine was Mafia: City of Lost Heaven, released in 2002, followed by Hidden & Dangerous 2 in 2003.

  • View media
  • View media
  • View media
Post article RSS Related Articles


Mafia: The City of Lost Heaven Client Side Coding 0 comments

The scripts, along with other data, are located in the later portion of scene2.bin files.
I'm not sure what the official name of this scripting language may be, so I just call it all Mafia script.

The only general-purpose variables available in Mafia script are elements of the array flt[] which are able to store integers, presumably 32-bit unsigned integers. I don't know Czech, but I'm assuming that flt is the abbreviation of a Czech word that may mean variable or something similar. (I would appreciate any input on this, very much.)

Like in good ol' BASIC programs I used to write on my ATARI 400, the dimensions of flt must be defined at the beginning of the script. To define flt[], use the keyword dim_flt nn, where nn is the number of elements (flt variables) you want to allocate for usage in the script.

dim_flt 5
In this example, your script may use 5 flt[] elements to store numbers (flt[0]...flt[4]).
To assign a value to an flt[] variable, use the keyword let.
let flt[0] = 10
let flt[1] = 30
In this example, the value 10 is stored in the variable flt[0] and the value 30 in the variable flt[1].
There is no string data type.
There are no global variables, variables that persist outside of a particular script except for those that are special system variables like player health, compass, etc.

This download contains much, much information which you will definately find useful. Some of it is slightly flawed but mostly solid.

To begin scripting mods for Mafia you will need some tools, (As always.) which will depend on what kind of mod you want to make.
car adder -

car changer -

Text editor -

weapon Value Editor -

Mafiahack -

Car Value Editor -

Data Xtractor -

Zmodeler -

Capone -

BscriptView -

The rest is self explanatory. Just use Data Xtractor to extract the dta files into folders. Then use DCED or BSV to look through the original missions.

Add game Games
Hidden & Dangerous 2

Hidden & Dangerous 2

Tactical Shooter

Hidden & Dangerous 2 is a first- and third-person tactical shooter that builds upon the original Hidden & Dangerous. You lead a small squad of Allied...




Chameleon is a 3rd-person stealth-action game published in 2005 for the PC. While the game was well received in Poland and Russia, it never received a...

Mafia: The City of Lost Heaven

Mafia: The City of Lost Heaven

First Person Shooter

Mafia is a 3D action game, played in the third person. The player assumes the role of a gangster in an American city of the 1930s, and gets a chance to...

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Follow Report Profile
Send Message
Release date
Engine watch
Community Rating



4 votes submitted.

You Say


Ratings closed.

Embed Buttons
Link to LS3D by selecting a button and using the embed code provided more...
185 of 840
Last Update
6 members