Difference between revisions of "0446"

From GTAMods Wiki
Jump to navigation Jump to search
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<code>0446=2,%1d% %2d%</code><br>
+
[[File:Gta3_0446.png|thumb|An example of dismemberment in GTA III]]
'''Description''': Sets the actor's ability to be decapitated<br>
+
{{Icon|trilogy}} '''SET_CHAR_SUFFERS_CRITICAL_HITS'''
'''Parameter 1''': Actor handle<br>
+
<hr />
'''Parameter 2''': Flag<br>
+
'''Description'''
'''Supports''': GTA3, Vice City, San Andreas<br>
+
: Sets the character's ability to be dismembered
 +
'''Syntax'''
 +
: 0446: set_actor [''char handle''] dismemberment_possible [''int'']
 +
'''Parameter'''
 +
: [''char handle'']
 +
:: The handle of the character
 +
: [''int'']
 +
:: 0 = disable dismemberment, {{hint|1|or any value other than 0}} = enable dismemberment
  
==Flags==
+
This opcode sets the character's ability to be dismembered. Limb shots and notably headshots are critical hits, each with unique animations, and characters will die instantly from those hits. When dismemberment is disabled, these points are no longer critical hits. In GTA III, limb shots will physically break the limbs away from the characters. In GTA III and Vice City, headshots will make the head disappear. This opcode was never called in the original script of GTA III.
'''Flag 0''': Disables decaptitation<br>
 
'''Flag 1''': Enables decaptitation
 
  
==Keywords==
+
== Keywords ==
set, toggle, actor, decaptitate, decapitation, headless
+
set, toggle, actor, decapitate, decapitation, headless, dismember
  
 
[[Category:OpCodes]]
 
[[Category:OpCodes]]

Latest revision as of 19:21, 27 January 2015

An example of dismemberment in GTA III

GTA III Vice City San Andreas SET_CHAR_SUFFERS_CRITICAL_HITS


Description

Sets the character's ability to be dismembered

Syntax

0446: set_actor [char handle] dismemberment_possible [int]

Parameter

[char handle]
The handle of the character
[int]
0 = disable dismemberment, 1 = enable dismemberment

This opcode sets the character's ability to be dismembered. Limb shots and notably headshots are critical hits, each with unique animations, and characters will die instantly from those hits. When dismemberment is disabled, these points are no longer critical hits. In GTA III, limb shots will physically break the limbs away from the characters. In GTA III and Vice City, headshots will make the head disappear. This opcode was never called in the original script of GTA III.

Keywords

set, toggle, actor, decapitate, decapitation, headless, dismember