Branches: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
==Weapon Creation==
=Weapon Creation=
Weapon creation is a branch for creating weapon elements which can fire bullets and do not require ped/players assigned to them.
Weapon creation is a branch for creating weapon elements which can fire bullets and do not require ped/players assigned to them.


Line 9: Line 9:
Branch version: 1.4
Branch version: 1.4


===Functions===
==Functions==
weapon createWeapon(type, x, y, z)
weapon createWeapon(type, x, y, z)
type = weapon name e.g. M4
type = weapon name e.g. M4
Line 22: Line 22:
property = damage/accuracy
property = damage/accuracy


===General Notes===
==General Notes==
Created entities are for all intent and purpose objects so any object function will work on them like attachElements, setElementAlpha and such.
Created entities are for all intent and purpose objects so any object function will work on them like attachElements, setElementAlpha and such.


===Videos===
==Videos==
http://www.youtube.com/watch?v=LN1nZZnzlms
http://www.youtube.com/watch?v=LN1nZZnzlms


==Custom Animations==
 
 
=Custom Animations=
Custom Animations is a branch for loading animations from .ifp files
Custom Animations is a branch for loading animations from .ifp files


Line 38: Line 40:
Branch version: 1.4
Branch version: 1.4


===Functions===
==Functions==
???
???


===Videos===
==Videos==
http://www.youtube.com/watch?v=D9YfVPiJniU
http://www.youtube.com/watch?v=D9YfVPiJniU


===General Notes===
==General Notes==
See [[User:Cazomino05]] for bugs.
See [[User:Cazomino05]] for bugs.


==Custom Weapon Stats==
 
 
=Custom Weapon Stats=
Custom Weapon Stats is a branch to allow people to edit one of each weapons "properties" for each skill level
Custom Weapon Stats is a branch to allow people to edit one of each weapons "properties" for each skill level
so for example an M4 at Pro level can have 1000 damage and an M4 at standard level can have 0.
so for example an M4 at Pro level can have 1000 damage and an M4 at standard level can have 0.
Line 58: Line 62:
Branch version: 1.4
Branch version: 1.4


===Functions===
==Functions==
[[getWeaponProperty]]
[[getWeaponProperty]]


[[setWeaponProperty]]
[[setWeaponProperty]]


===Videos===
==Videos==
http://www.youtube.com/watch?v=M1dQWpDFq98
http://www.youtube.com/watch?v=M1dQWpDFq98


Line 70: Line 74:
http://www.youtube.com/watch?v=eDU06fZiU9M
http://www.youtube.com/watch?v=eDU06fZiU9M


===General Notes===
==General Notes==
None.
None.


==Analog Control States==
 
 
=Analog Control States=
Analog Control States is a branch that is designed to allow proper setting and management of controls and therefore allows for setting of controls to be between the range of 0 and 1 rather than true/false
Analog Control States is a branch that is designed to allow proper setting and management of controls and therefore allows for setting of controls to be between the range of 0 and 1 rather than true/false


Line 85: Line 91:
Branch version: 1.4
Branch version: 1.4


===Functions===
==Functions==
[[setAnalogControlState]]
[[setAnalogControlState]]


[[getAnalogControlState]]
[[getAnalogControlState]]


===Videos===
==Videos==
None.
None.


===General Notes===
==General Notes==
None.
None.


==Custom-Vehicle-Sirens==
 
 
=Custom-Vehicle-Sirens=
Custom Vehicle Sirens allows adding sirens to any individual vehicle in the game for instance to add an undercover sultan.
Custom Vehicle Sirens allows adding sirens to any individual vehicle in the game for instance to add an undercover sultan.


Line 106: Line 114:
Branch version: 1.4
Branch version: 1.4


===Functions===
==Functions==
[[SetVehicleSirens]]
[[SetVehicleSirens]]


Line 117: Line 125:
[[AddVehicleSirens]]
[[AddVehicleSirens]]


===Videos===
==Videos==
http://www.youtube.com/watch?v=zjJdLCtKccA
http://www.youtube.com/watch?v=zjJdLCtKccA


Line 126: Line 134:
http://www.youtube.com/watch?v=X3zE6hZOx4c
http://www.youtube.com/watch?v=X3zE6hZOx4c


===General Notes===
==General Notes==
None.
None.

Revision as of 20:02, 21 June 2012

Weapon Creation

Weapon creation is a branch for creating weapon elements which can fire bullets and do not require ped/players assigned to them.


Status: In progress

Branch: Weapon-Creation

Branch version: 1.4

Functions

weapon createWeapon(type, x, y, z) type = weapon name e.g. M4 x, y, z = x,y,z position

bool fireWeapon(weapon)

bool setWeaponState(weapon, state) state = "ready", "firing" or "reloading"

bool setWeaponProperty(weapon, property, value) property = damage/accuracy

General Notes

Created entities are for all intent and purpose objects so any object function will work on them like attachElements, setElementAlpha and such.

Videos

http://www.youtube.com/watch?v=LN1nZZnzlms


Custom Animations

Custom Animations is a branch for loading animations from .ifp files


Status: Abandoned

Branch: Custom-Animations

Branch version: 1.4

Functions

???

Videos

http://www.youtube.com/watch?v=D9YfVPiJniU

General Notes

See User:Cazomino05 for bugs.


Custom Weapon Stats

Custom Weapon Stats is a branch to allow people to edit one of each weapons "properties" for each skill level so for example an M4 at Pro level can have 1000 damage and an M4 at standard level can have 0.


Status: Merged - 1.3.1

Branch: Custom-Weapon-Stats

Branch version: 1.4

Functions

getWeaponProperty

setWeaponProperty

Videos

http://www.youtube.com/watch?v=M1dQWpDFq98

http://www.youtube.com/watch?v=xfdEvpcuk7s

http://www.youtube.com/watch?v=eDU06fZiU9M

General Notes

None.


Analog Control States

Analog Control States is a branch that is designed to allow proper setting and management of controls and therefore allows for setting of controls to be between the range of 0 and 1 rather than true/false

This only works for certain properties such as left/right


Status: Merged - 1.3.1

Branch: Analog-Control-States

Branch version: 1.4

Functions

setAnalogControlState

getAnalogControlState

Videos

None.

General Notes

None.


Custom-Vehicle-Sirens

Custom Vehicle Sirens allows adding sirens to any individual vehicle in the game for instance to add an undercover sultan.


Status: Merged - 1.3.1

Branch: Custom-Vehicle-Sirens

Branch version: 1.4

Functions

SetVehicleSirens

GetVehicleSirens

RemoveVehicleSirens

GetVehicleSirenParams

AddVehicleSirens

Videos

http://www.youtube.com/watch?v=zjJdLCtKccA

http://www.youtube.com/watch?v=ZJDrVf3qSm0

http://www.youtube.com/watch?v=1J0_v85FioA

http://www.youtube.com/watch?v=X3zE6hZOx4c

General Notes

None.