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 live through gangster's rise and fall. In a spell-binding story of human hunger for power, he will experience everything that was taking place in the underworld during this stormy period: high-speed car chases, bootlegging, assassinations, and bank robberies. We set the story in a huge, fully-functional city, created 60 vehicles to choose from and more than 20 missions filled with non-stop action. The gameplay does not end there with over 40 little and large mods available, this game is great!

Report article RSS Feed Mafiascript

Mafiascript is the unofficial term for coding in Mafia. It is a simple sequence of commands which if put together properly can create stunning results. This tutorial is compiled from other source from friends.

Posted by pauliesgrandson on Apr 4th, 2006
Intermediate Client Side Coding.

[page=Mafiascript]
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.

Variables
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.

Example:
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.
Example:
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.
Mafiascene.com

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 - Mafiascene.com

car changer - Mafiascene.com

Text editor - Mafiascene.com

weapon Value Editor - Mafiascene.com

Mafiahack - Mafiascene.com

Car Value Editor - Mafiascene.com

Data Xtractor - Mafiascene.com

Zmodeler - Mafiascene.com

Capone - Mafiascene.com

BscriptView - Braingib.privat.t-online.de

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.

Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Icon
Mafia: The City of Lost Heaven
Platform
Windows
Engine
LS3D
Contact
Send Message
Official Page
Illusionsoftworks.com
Release Date
Released Aug 26, 2002
Game Watch
Track this game
Tutorial
Browse
Tutorials
Report Abuse
Report article
Related Games
Mafia: The City of Lost Heaven
Mafia: The City of Lost Heaven Single & Multiplayer First Person Shooter