Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Tuners
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    2. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    3. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    4. Bugs*

    1. Grand Theft Auto Series

      1. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    6. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

      1. GTANet 20th Anniversary
    2. Support

    3. Suggestions

Lethal Slices


spaceeinstein
 Share

Recommended Posts

spaceeinstein

Introduction

Lethal Slices is a modification for Grand Theft Auto: Vice City utilizing the CLEO Library. It increases the chance that the katana can slice off heads and allows all other sharp weapons (knife, cleaver, and machete) to slice off heads. Hits that knock peds down to the ground cannot slice off heads. Type "SLICES" to toggle this effect on or off. Bonus feature: type "HEADLESS" to pop off Tommy’s head.

 

Installation

  • Download the mod at GTAGarage.
  • Download CLEO for Vice City at http://cleo.li/.
  • From the CLEO download, copy VC.CLEO.asi into Vice City's folder.
  • If CLEO.asi already exists in the folder, you must delete that file.
  • From this mod download, place the CLEO folder containing SESlices.cs into Vice City's folder.
This mod has been tested only on VC v1.00 US.

 

Video

 

 

Source

 

Sanny Builder

 

constIS_ENABLED = [email protected]_OFFSET = [email protected]_STRUCT = [email protected] @DISABLEDwhile true    wait 10    if        0ADC:   test_cheat "SLICES"    then        if            IS_ENABLED == 0        then            0ACA: show_text_box "Cheat activated"            gosub @ENABLED        else            0ACA: show_text_box "Cheat deactivated"            gosub @DISABLED        end    end    if        0ADC:   test_cheat "HEADLESS"    then        0ACA: show_text_box "Cheat activated"        0A8D: PLAYER_STRUCT = read_memory 0x94AD28 size 4 virtual_protect 0        0AA6: call_method 0x5259F0 PLAYER_STRUCT num_params 2 pop 0 uchar 0 component 2 // CPed::RemoveBodyPart    endend:ENABLEDIS_ENABLED = 10A8C: write_memory 0x525E59 size 1 value 1 virtual_protect 10A8C: write_memory 0x525FB0 size 1 value 0xE9 virtual_protect 1 // jmp0AC6: LABEL_OFFSET = label @ENABLED_HEX offset0AB1: call_scm_func @RELATIVE_ADDRESS inputs 2 source 0x525FB1 target LABEL_OFFSET0AC6: LABEL_OFFSET = label @FINDPLAYERPED offset0AB1: call_scm_func @RELATIVE_ADDRESS inputs 2 source LABEL_OFFSET target 0x4BC120 // FindPlayerPed0AC6: LABEL_OFFSET = label @JE_1 offset0AB1: call_scm_func @RELATIVE_ADDRESS inputs 2 source LABEL_OFFSET target 0x5260200AC6: LABEL_OFFSET = label @JNE_2 offset0AB1: call_scm_func @RELATIVE_ADDRESS inputs 2 source LABEL_OFFSET target 0x5260200AC6: LABEL_OFFSET = label @JE_3 offset0AB1: call_scm_func @RELATIVE_ADDRESS inputs 2 source LABEL_OFFSET target 0x525FF90AC6: LABEL_OFFSET = label @JNE_4 offset0AB1: call_scm_func @RELATIVE_ADDRESS inputs 2 source LABEL_OFFSET target 0x5260200AC6: LABEL_OFFSET = label @JMP_5 offset0AB1: call_scm_func @RELATIVE_ADDRESS inputs 2 source LABEL_OFFSET target 0x525FF9return:DISABLEDIS_ENABLED = 00A8C: write_memory 0x525E59 size 1 value 0 virtual_protect 10A8C: write_memory 0x525FB0 size 4 value 0x68247C83 virtual_protect 10A8C: write_memory 0x525FB4 size 1 value 0x0A virtual_protect 1return:ENABLED_HEXhexE8                   // callend:FINDPLAYERPEDhex00 00 00 00          // FindPlayerPed39 D8                // cmp eax, ebx0F 84                // jeend:JE_1hex00 00 00 00          // 00526020 (can slice)8B 44 24 64          // mov eax,[esp+64]83 B8 44 02 00 00 11 // cmp dword ptr [eax+244],110F 85                // jneend:JNE_2hex00 00 00 00          // 00526020 (can slice)83 B8 18 05 00 00 1C // cmp dword ptr [eax+518],1C0F 84                // jeend:JE_3hex00 00 00 00          // 00525FF9 (cannot slice)83 B8 18 05 00 00 1D // cmp dword ptr [eax+518],1D0F 85                // jneend:JNE_4hex00 00 00 00          // 00526020 (can slice)E9                   // jmpend:JMP_5hex00 00 00 00          // 00525FF9 (cannot slice)endconstSOURCE = [email protected] = [email protected] : intTARGET : intend:RELATIVE_ADDRESS// [email protected] - source// [email protected] - targetTARGET -= SOURCETARGET -= 40A8C: write_memory SOURCE size 4 value TARGET virtual_protect 10AB2: ret 0
GTA3script

 

{LVAR_INT is_enabled, label_offset, player_structGOSUB disabledslices_loop:    WAIT 10    IF TEST_CHEAT "SLICES"        IF is_enabled = 0            PRINT_HELP_STRING "Cheat activated"            GOSUB enabled        ELSE            PRINT_HELP_STRING "Cheat deactivated"            GOSUB disabled        ENDIF    ENDIF    IF TEST_CHEAT "HEADLESS"        PRINT_HELP_STRING "Cheat activated"        READ_MEMORY 0x94AD28 4 0 player_struct        CALL_METHOD 0x5259F0 player_struct 2 0 0 2 // CPed::RemoveBodyPart    ENDIF    GOTO slices_loopenabled:    is_enabled = 1    WRITE_MEMORY 0x525E59 1 1 1    WRITE_MEMORY 0x525FB0 1 0xE9 1 // jmp    GET_LABEL_POINTER enabled_hex label_offset    CLEO_CALL relative_address 0 0x525FB1 label_offset    GET_LABEL_POINTER findplayerped label_offset    CLEO_CALL relative_address 0 label_offset 0x4BC120 // FindPlayerPed    GET_LABEL_POINTER je_1 label_offset    CLEO_CALL relative_address 0 label_offset 0x526020    GET_LABEL_POINTER jne_2 label_offset    CLEO_CALL relative_address 0 label_offset 0x526020    GET_LABEL_POINTER je_3 label_offset    CLEO_CALL relative_address 0 label_offset 0x525FF9    GET_LABEL_POINTER jne_4 label_offset    CLEO_CALL relative_address 0 label_offset 0x526020    GET_LABEL_POINTER jmp_5 label_offset    CLEO_CALL relative_address 0 label_offset 0x525FF9    RETURNdisabled:    is_enabled = 0    WRITE_MEMORY 0x525E59 1 0 1    WRITE_MEMORY 0x525FB0 4 0x68247C83 1    WRITE_MEMORY 0x525FB4 1 0x0A 1    RETURNenabled_hex:    DUMP        E8                   // call    ENDDUMPfindplayerped:    DUMP        00 00 00 00          // FindPlayerPed        39 D8                // cmp eax, ebx        0F 84                // je    ENDDUMPje_1:    DUMP        00 00 00 00          // 00526020 (can slice)        8B 44 24 64          // mov eax,[esp+64]        83 B8 44 02 00 00 11 // cmp dword ptr [eax+244],11        0F 85                // jne    ENDDUMPjne_2:    DUMP        00 00 00 00          // 00526020 (can slice)        83 B8 18 05 00 00 1C // cmp dword ptr [eax+518],1C        0F 84                // je    ENDDUMPje_3:    DUMP        00 00 00 00          // 00525FF9 (cannot slice)        83 B8 18 05 00 00 1D // cmp dword ptr [eax+518],1D        0F 85                // jne    ENDDUMPjne_4:    DUMP        00 00 00 00          // 00526020 (can slice)        E9                   // jmp    ENDDUMPjmp_5:    DUMP        00 00 00 00          // 00525FF9 (cannot slice)    ENDDUMP}{LVAR_INT source, targetrelative_address:    target -= source    target -= 4    WRITE_MEMORY source 4 target 1    CLEO_RETURN 0}

 

Thanks to dxtest for the initial idea.

Edited by spaceeinstein
Link to comment
Share on other sites

Should've been done in gta3script :(

Link to comment
Share on other sites

spaceeinstein

@Silent, I've updated the post to include both Sanny Builder and GTA3script syntax. I'll include both in future posts if I can remember (I still use SB :whistle:).

 

@Jack, unfortunately this only works when the player attacks someone else. This doesn't work for anyone else. EDIT: I might release an update to allow peds slicing off other peds' heads in the future. I have to add checks to make sure the player's head doesn't get sliced off.

Edited by spaceeinstein
  • Like 2
Link to comment
Share on other sites

@Jack, unfortunately this only works when the player attacks someone else. This doesn't work for anyone else. EDIT: I might release an update to allow peds slicing off other peds' heads in the future. I have to add checks to make sure the player's head doesn't get sliced off.

Oh, please upload it like that, would be fun see Tommy without head forever.

Link to comment
Share on other sites

spaceeinstein

Version 2 is released! Peds can now slice off each others' heads. Battles end very quickly though.

 

 

Bonus feature: type "HEADLESS" to pop off Tommy’s head.

Link to comment
Share on other sites

Bonus feature: type "HEADLESS" to pop off Tommy’s head.

 

It's a nice mod but, can you make a mod which enables gore without changing VC's skeletal animation system? Take a look

for details.

 

Your objective is to enable gore without making characters look blocky like in III.

Edited by EddoWilliams2016
Link to comment
Share on other sites

 

Bonus feature: type "HEADLESS" to pop off Tommys head.

Your objective is to enable gore without making characters look blocky like in III.

You could choose a better pair of words. This sounds like he is forced to do so. Just sayin', no hate.
Link to comment
Share on other sites

 

 

Bonus feature: type "HEADLESS" to pop off Tommys head.

Your objective is to enable gore without making characters look blocky like in III.

You could choose a better pair of words. This sounds like he is forced to do so. Just sayin', no hate.

 

I was just briefing him about his mission.

Link to comment
Share on other sites

YOU SHALL REACH YOUR MODDING NIRVANA IF AND ONLY IF THOU RELEASE GORE MOD

Link to comment
Share on other sites

YOU SHALL REACH YOUR MODDING NIRVANA IF AND ONLY IF THOU RELEASE GORE MOD

AND WHAT EXACTLY THOU MEAN

Link to comment
Share on other sites

wow,very cool,spaceeinstein you are my man :miranda:

 

I again have a bloody function idea,gun can 100% headshot,exclude capable of aiming gun (M4 Sniper),fire at will gun if shot head can 100% headshot,it very crazyyyyy :evilgrin:

Edited by dxtest
Link to comment
Share on other sites

spaceeinstein have you maybe seen this maxorator's video:

 

 



Last year I made some sort of increased gore level for the gta3 mostly by using parts of the same function CPed::InflictDamage
I spent a lot of time looking at that memory region as well as the other functions related to the one I just mentioned.
At that time I learned that when the player hits an NPC with a lethal weapon like M16, gta3 engine first makes the body part component invisible then clones the component (by using a function SpawnFlyingComponent) instead of detaching it like I originaly thought then leaves it on the ground as the new object. This was a big surprise for me and makes me wonder can VC engine do the same thing since the limb removal is imposible. Of course I tried but the only thing I was able to acomplish (besides the animation manipulation) is to make components partially invisible:

CPed + 0x56A // (Removed)BoneID (VC)
0x4FEA9C 100 cmp byte ptr [eax+56Ah], 2
0x4FEAA3 100 jnz short loc_4FEB04
0x4FEAA5 100 mov eax, [eax+4Ch]
0x4FEAA8 100 push eax
0x4FEAA9 104 call GetAtomicSkinHAnimHierarchy
0x4FEAAE 104 pop ecx
0x4FEAAF 100 mov ebp, eax
0x4FEAB1 100 push 2
0x4FEAB3 104 call GetBoneID

WRITE_MEMORY 0x4FEAA2 1 7 FALSE
WRITE_MEMORY 0x4FEAB2 1 7 FALSE

  • Like 2
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.