Difference between revisions of "Fistfite.dat"

From GTAMods Wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
The '''fistfite.dat''' file contains information on melee attacks, including damage and animation, in [[GTA III]] and [[Vice City]]. The file is located in the <code>\data</code> folder of the game's directory.
+
The '''fistfite.dat''' file is located in the <code>.\data</code> directory and contains information on melee attacks, including damage and animation, in [[GTA III]] and [[Vice City]].
  
 
==Format==
 
==Format==
{| {{prettytable}}
+
The file is in plain text format so it can be opened with any text editor (like [[wikipedia:Microsoft Notepad|Notepad]]). Line comments are indicated by the character <code>#</code> (number sign) and empty lines are allowed. They can be placed anywhere in the file. Each entry takes up one line and follows a specific format detailed below. Data in each entry are separated by any whitespace like <code> </code>&nbsp;(space) and <code> </code>&nbsp;(horizontal tab). The file must contain the text <code>ENDWEAPONDATA</code> in order for the game to stop reading the file.
! {{Icon|3}}
+
 
! {{Icon|VC}}
+
{|class="wikitable center-col-1"
! Name
+
!style="width: 2em;" |{{Icon|3}}
! Type
+
!style="width: 2em;" |{{Icon|VC}}
! Description
+
!Name
 +
!Type
 +
!Description
 
|-
 
|-
| colspan="2"| <center>A</center>
+
|colspan="2"|A
| Move Name
+
|Move Name
| string
+
|string
| Any names can be used here. This is only used for identification.
+
|Any names can be used here. This is only used for identification.
 
|-
 
|-
| colspan="2"| <center>B</center>
+
|colspan="2"|B
| Start Fire Time
+
|Start Fire Time
| float
+
|float
|  
+
|
 
|-
 
|-
| colspan="2"| <center>C</center>
+
|colspan="2"|C
| End Fire Time
+
|End Fire Time
| float
+
|float
|  
+
|
 
|-
 
|-
| colspan="2"| <center>D</center>
+
|colspan="2"|D
| Combo follow on time
+
|Combo follow on time
| float
+
|float
| Right after the first attack, the next attack will be the next move in the list within the group. Successive attacks (mashing attack button) will no longer follow the list until the attack is no longer successive. This was never used in the game by default.
+
|Right after the first attack, the next attack will be the next move in the list within the group. Successive attacks (mashing attack button) will no longer follow the list until the attack is no longer successive. This was never used in the game by default.
 
|-
 
|-
| colspan="2"| <center>E</center>
+
|colspan="2"|E
| Strike Radius
+
|Strike Radius
| float
+
|float
| The effective distance to do damage. Can also affect victims behind you.
+
|The effective distance to do damage. Can also affect victims behind you.
 
|-
 
|-
| <center>-</center>
+
| -
| <center>F</center>
+
|{{a|c}} |F
| Extend Reach Multiplier
+
|Extend Reach Multiplier
| float
+
|float
|  
+
|
 
|-
 
|-
| <center>F</center>
+
|F
| <center>G</center>
+
|{{a|c}} |G
| Hit Level
+
|Hit Level
| character
+
|character
 
|
 
|
G - ground; feet, but can glitch the animation of the victim if the victim is standing.<br>
+
*G - ground; feet, but can glitch the animation of the victim if the victim is standing.
L - low; attack the stomach.<br>
+
*L - low; attack the stomach.
M - mid; attack the face.<br>
+
*M - mid; attack the face.
H - high; unlike to its name, this will automatically select which hit level to use based on the animation.<br>
+
*H - high; unlike to its name, this will automatically select which hit level to use based on the animation.
N - none; does no damage
+
*N - none; does no damage
 
|-
 
|-
| <center>G</center>
+
|G
| <center>H</center>
+
|{{a|c}} |H
| Animation Name
+
|Animation Name
| string
+
|string
| The name of the animation to use from the <code>[[ped.ifp]]</code> file. Any animation should work and do damage as long as the animation is loaded and the animation can reach the victim. You can use <i>default</i> as the name to use default animations.
+
|The name of the animation to use from the <code>[[ped.ifp]]</code> file. Any animation should work and do damage as long as the animation is loaded and the animation can reach the victim. You can use <i>default</i> as the name to use default animations that are [[hardcoded]] into the game.
 
|-
 
|-
| <center>H</center>
+
|H
| <center>I</center>
+
|{{a|c}} |I
| Damage
+
|Damage
| integer
+
|integer
| The higher the damage, the more health the victim loses and, if the victim's health is low enough, the father the victim flies into the air.
+
|The higher the damage, the more health the victim loses and, if the victim's health is low enough, the farther the victim flies into the air. The damage value for punching while running is defined in <code>[[weapon.dat]]</code> and the damage is calculated differently there.
 
|-
 
|-
| <center>I</center>
+
|I
| <center>J</center>
+
|{{a|c}} |J
| Flags
+
|Flags
| integer
+
|integer
|  
+
|
 
|}
 
|}
  
 
==List of moves==
 
==List of moves==
The line number determines which move to use and which group the move belongs to.
+
{{incomplete}}
 +
===GTA III===
 +
{|class="wikitable"
 +
!Entry ||Move ||Description
 +
|-
 +
|0 ||Null ||
 +
|-
 +
|1 ||StdPunch ||
 +
|-
 +
|2 ||Idle ||
 +
|-
 +
|3 ||Shuffle_f ||
 +
|-
 +
|4 ||Knee ||
 +
|-
 +
|5 ||Headbutt ||
 +
|-
 +
|6 ||PunchJab ||
 +
|-
 +
|7 ||PunchHook ||
 +
|-
 +
|8 ||Kick ||
 +
|-
 +
|9 ||LongKick ||
 +
|-
 +
|10 ||RoundHouse ||
 +
|-
 +
|11 ||BodyBlow ||
 +
|-
 +
|12 ||GroundKick ||
 +
|-
 +
|13 ||HitFront ||
 +
|-
 +
|14 ||HitBack ||
 +
|-
 +
|15 ||HitRight ||
 +
|-
 +
|16 ||HitLeft ||
 +
|-
 +
|17 ||HitBody ||
 +
|-
 +
|18 ||HitChest ||
 +
|-
 +
|19 ||HitHead ||
 +
|-
 +
|20 ||HitBigStep ||
 +
|-
 +
|21 ||HitOnFloor ||
 +
|-
 +
|22 ||HitBehind ||
 +
|-
 +
|23 ||Idle2Norm ||
 +
|}
  
===GTA III===
 
{{incomplete}}
 
 
===Vice City===
 
===Vice City===
{{incomplete}}
 
  
===Other===
+
====Other====
{| {{prettytable}}
+
{|class="wikitable"
! Line
+
!Entry ||Move ||Description
! Move
 
! Description
 
 
|-
 
|-
| 1 || null ||
+
|0 ||Null ||null
 
|-
 
|-
| 2 || standard punch ||
+
|1 ||StdPunch ||standard punch
 
|-
 
|-
| 3 || idle ||  
+
|2 ||Idle ||idle
 
|-
 
|-
| 4 || shuffle ||  
+
|3 ||Shuffle_f ||shuffle (moving forwards to attack)
 
|}
 
|}
  
===Frontal attack===
+
====Frontal attack====
 
These moves are used when you are standing still attacking a victim in front with the fist or small weapons that can melee in close range.
 
These moves are used when you are standing still attacking a victim in front with the fist or small weapons that can melee in close range.
{| {{prettytable}}
+
{|class="wikitable"
! Line
+
!Entry ||Move ||Description
! Move
 
! Description
 
 
|-
 
|-
| 5 || knee || Attacks with the right knee
+
|4 ||Knee ||Attacks with the right knee
 
|-
 
|-
| 6 || punch hook || Attacks with the left fist
+
|5 ||PunchHook ||Attacks with the left fist
 
|-
 
|-
| 7 || jab || Attacks with the left fist
+
|6 ||Jab ||Attacks with the left fist
 
|-
 
|-
| 8 || punch || Attacks with the right fist
+
|7 ||Punch ||Attacks with the right fist
 
|-
 
|-
| 9 || long kick || Kicks high in the air with the right leg
+
|8 ||LongKick ||Kicks high in the air with the right leg
 
|-
 
|-
| 10 || round house || Swings the right leg around in the air
+
|9 ||RoundHouse ||Swings the right leg around in the air
 
|}
 
|}
  
===Directional attacks===
+
====Directional attacks====
 
These moves are used when the victim is not in front.
 
These moves are used when the victim is not in front.
{| {{prettytable}}
+
{|class="wikitable"
! Line
+
!Entry ||Move ||Description
! Move
 
! Description
 
 
|-
 
|-
| 11 || kick || front left attack
+
|10 ||FwdLeft ||front left kick attack
 
|-
 
|-
| 12 || headbutt || front right attack
+
|11 ||FwdRight ||front right headbutt attack
 
|-
 
|-
| 13 || back kick || rear left attack
+
|12 ||BackKick ||rear left kick attack
 
|-
 
|-
| 14 || ||
+
|13 ||BackFlip ||
 
|-
 
|-
| 15 || elbow || left attack
+
|14 ||BackLeft ||left elbow attack
 
|-
 
|-
| 16 || back kick || rear right attack
+
|15 ||BackRight ||rear right kick attack
 
|-
 
|-
| 17 || elbow || right attack
+
|16 ||RightSweep ||right elbow attack
 
|}
 
|}
  
===Special attack===
+
====Special attack====
{| {{prettytable}}
+
{|class="wikitable"
! Line
+
!Entry ||Move ||Description
! Move
 
! Description
 
 
|-
 
|-
| 18 || ground kick || Kicks floor with right foot
+
|17 ||GroundKick ||Kicks ground with right foot
 
|}
 
|}
  
===Responses===
+
====Responses====
 
These moves are responses from being attacked.
 
These moves are responses from being attacked.
 +
{|class="wikitable"
 +
!Entry ||Move ||Description
 +
|-
 +
|18 ||HitFront ||
 +
|-
 +
|19 ||HitBack ||
 +
|-
 +
|20 ||HitRight ||
 +
|-
 +
|21 ||HitLeft ||
 +
|-
 +
|22 ||HitBody ||
 +
|-
 +
|23 ||HitChest ||
 +
|-
 +
|24 ||HitHead ||
 +
|-
 +
|25 ||HitBigStep ||
 +
|-
 +
|26 ||HitOnFloor ||
 +
|-
 +
|27 ||HitBehind ||
 +
|}
  
===Melee weapon attacks===
+
====Melee weapon attacks====
 +
These moves are used for sharp melee weapons.
 +
{|class="wikitable"
 +
!Entry ||Move ||Description
 +
|-
 +
|28 ||Attack1 ||First swing of sharp melee weapon
 +
|-
 +
|29 ||Attack2 ||Second swing of sharp melee weapon
 +
|-
 +
|30 ||Attack3 ||Final swing of sharp melee weapon or screwdriver stabbing
 +
|}
 +
 
 +
====Miscellaneous====
 +
{|class="wikitable"
 +
!Entry ||Move ||Description
 +
|-
 +
|31 ||Idle2Norm ||
 +
|}
  
{{N|VC}}
+
{{N|VC|3}}
  
[[Category:File Formats]][[Category:GTA_3]]
+
[[Category:File Formats]]

Latest revision as of 04:43, 7 July 2017

The fistfite.dat file is located in the .\data directory and contains information on melee attacks, including damage and animation, in GTA III and Vice City.

Format

The file is in plain text format so it can be opened with any text editor (like Notepad). Line comments are indicated by the character # (number sign) and empty lines are allowed. They can be placed anywhere in the file. Each entry takes up one line and follows a specific format detailed below. Data in each entry are separated by any whitespace like  (space) and  (horizontal tab). The file must contain the text ENDWEAPONDATA in order for the game to stop reading the file.

GTA III Vice City Name Type Description
A Move Name string Any names can be used here. This is only used for identification.
B Start Fire Time float
C End Fire Time float
D Combo follow on time float Right after the first attack, the next attack will be the next move in the list within the group. Successive attacks (mashing attack button) will no longer follow the list until the attack is no longer successive. This was never used in the game by default.
E Strike Radius float The effective distance to do damage. Can also affect victims behind you.
- F Extend Reach Multiplier float
F G Hit Level character
  • G - ground; feet, but can glitch the animation of the victim if the victim is standing.
  • L - low; attack the stomach.
  • M - mid; attack the face.
  • H - high; unlike to its name, this will automatically select which hit level to use based on the animation.
  • N - none; does no damage
G H Animation Name string The name of the animation to use from the ped.ifp file. Any animation should work and do damage as long as the animation is loaded and the animation can reach the victim. You can use default as the name to use default animations that are hardcoded into the game.
H I Damage integer The higher the damage, the more health the victim loses and, if the victim's health is low enough, the farther the victim flies into the air. The damage value for punching while running is defined in weapon.dat and the damage is calculated differently there.
I J Flags integer

List of moves

This section is incomplete. You can help by fixing and expanding it.

GTA III

Entry Move Description
0 Null
1 StdPunch
2 Idle
3 Shuffle_f
4 Knee
5 Headbutt
6 PunchJab
7 PunchHook
8 Kick
9 LongKick
10 RoundHouse
11 BodyBlow
12 GroundKick
13 HitFront
14 HitBack
15 HitRight
16 HitLeft
17 HitBody
18 HitChest
19 HitHead
20 HitBigStep
21 HitOnFloor
22 HitBehind
23 Idle2Norm

Vice City

Other

Entry Move Description
0 Null null
1 StdPunch standard punch
2 Idle idle
3 Shuffle_f shuffle (moving forwards to attack)

Frontal attack

These moves are used when you are standing still attacking a victim in front with the fist or small weapons that can melee in close range.

Entry Move Description
4 Knee Attacks with the right knee
5 PunchHook Attacks with the left fist
6 Jab Attacks with the left fist
7 Punch Attacks with the right fist
8 LongKick Kicks high in the air with the right leg
9 RoundHouse Swings the right leg around in the air

Directional attacks

These moves are used when the victim is not in front.

Entry Move Description
10 FwdLeft front left kick attack
11 FwdRight front right headbutt attack
12 BackKick rear left kick attack
13 BackFlip
14 BackLeft left elbow attack
15 BackRight rear right kick attack
16 RightSweep right elbow attack

Special attack

Entry Move Description
17 GroundKick Kicks ground with right foot

Responses

These moves are responses from being attacked.

Entry Move Description
18 HitFront
19 HitBack
20 HitRight
21 HitLeft
22 HitBody
23 HitChest
24 HitHead
25 HitBigStep
26 HitOnFloor
27 HitBehind

Melee weapon attacks

These moves are used for sharp melee weapons.

Entry Move Description
28 Attack1 First swing of sharp melee weapon
29 Attack2 Second swing of sharp melee weapon
30 Attack3 Final swing of sharp melee weapon or screwdriver stabbing

Miscellaneous

Entry Move Description
31 Idle2Norm