Difference between revisions of "0446"

From GTAMods Wiki
Jump to navigation Jump to search
 
(page updates)
Line 1: Line 1:
<code>0446=2,%1d% %2d%</code><br>
+
{{Icon|trilogy}} '''SET_CHAR_SUFFERS_CRITICAL_HITS'''
'''Description''': Sets the actor's ability to be decapitated<br>
+
<hr />
'''Parameter 1''': Actor handle<br>
+
'''Description'''
'''Parameter 2''': Flag<br>
+
: Sets the character's ability to be dismembered
'''Supports''': GTA3, Vice City, San Andreas<br>
+
'''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]]

Revision as of 17:44, 27 January 2015

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