GaryRoachSanderson Posted October 5, 2012 Share Posted October 5, 2012 Is there any way in CLEO to make all weapons able to perform headshots? C0Y0T3 1 Link to comment Share on other sites More sharing options...
Michael-Knight1 Posted October 5, 2012 Share Posted October 5, 2012 Is there any way in CLEO to make all weapons able to perform headshots? Compile This Script : {$CLEO}0000:0652: [email protected] = integer_stat 130 while True if Player.Defined($PLAYER_CHAR) then 0652: [email protected] = integer_stat 130 if 001C: [email protected] > [email protected] // (int) then 0084: [email protected] = [email protected] // (int) end // if endend // while Link to comment Share on other sites More sharing options...
GaryRoachSanderson Posted October 5, 2012 Author Share Posted October 5, 2012 Thanks a lot, Michael-Knight1 Do you mind explaining the code to me a little? I actually expected more complex memory hacking rather than a simple stat change. What does 0652 do exactly? Thanks again! Link to comment Share on other sites More sharing options...
Michael-Knight1 Posted October 5, 2012 Share Posted October 5, 2012 Thanks a lot, Michael-Knight1 Do you mind explaining the code to me a little? I actually expected more complex memory hacking rather than a simple stat change. What does 0652 do exactly? Thanks again! this is not memory hacking . you need to learn scm codding Link to comment Share on other sites More sharing options...
GaryRoachSanderson Posted October 5, 2012 Author Share Posted October 5, 2012 I tried the script and it crashes my game when I start a new game or load a save game. But anyway the script doesn't quite make sense since all it does it store the "number of headshots" stats to [email protected] and [email protected] which I don't see how it gives all weapons the ability to perform headshots. And yes I do know some cleo scripting, I just don't know how to create the particular feature I want at the moment. Link to comment Share on other sites More sharing options...
Michael-Knight1 Posted October 5, 2012 Share Posted October 5, 2012 (edited) I tried the script and it crashes my game when I start a new game or load a save game. But anyway the script doesn't quite make sense since all it does it store the "number of headshots" stats to [email protected] and [email protected] which I don't see how it gives all weapons the ability to perform headshots. And yes I do know some cleo scripting, I just don't know how to create the particular feature I want at the moment. anyways contact goin-god it can to help you about head shot script a lot EDIT : download this script which made by Goin God for GTA Biohazard http://www.gtaforums.com/index.php?showtopic=392999 Edited October 5, 2012 by Michael-Knight1 Link to comment Share on other sites More sharing options...
ThirteenAG Posted October 5, 2012 Share Posted October 5, 2012 (edited) I suggest something like this. Don't have sanny at the moment to compile and test, but it's should work fine. {$CLEO}0000:while true wait 0 if Player.Defined($PLAYER_CHAR) then0A8D: [email protected] = read_memory 0xB74490 size 4 virtual_protect 0000A: [email protected] += 0x40A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0for [email protected] = 0 to 35584 step 0x100 0A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0 000A: [email protected] += 0x1 if and 0029: [email protected] >= 0x00 001B: 0x80 > [email protected] then 005A: [email protected] += [email protected] // (int) if 056D: (check) actor [email protected] defined then if 031D: actor [email protected] hit_by_weapon 57 // 57 by any weapon then if 0AB1: call_scm_func @GetActorDamagingPed 1 [email protected] [email protected] then if 07D6: [email protected] == $PLAYER_ACTOR // integer vars then 0321: AS_actor [email protected] die_headshotted end end end end end end end end:GetActorDamagingPed0A96: [email protected] = actor [email protected] [email protected] += 0x764:TestPed0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0if [email protected] > 0then 0A8D: [email protected] = read_memory 0x00B74490 size 4 virtual_protect 0 0AA8: call_function_method 0x4442D0 struct [email protected] num_params 1 pop 0 [email protected] [email protected] if 056D: actor [email protected] defined then 0AB2: ret 1 [email protected] endend0AB2: ret 1 -1 :GetActorDamagingVehicle0A96: [email protected] = actor [email protected] [email protected] += 0x764:TestVehicle0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0if [email protected] > 0then 0A8D: [email protected] = read_memory 0x00B74494 size 4 virtual_protect 0 0AA8: call_function_method 0x424160 struct [email protected] num_params 1 pop 0 [email protected] [email protected] if 056E: car [email protected] defined then 0AB2: ret 1 [email protected] endend0AB2: ret 1 -1 :GetVehicleDamagingPed0A97: [email protected] = car [email protected] [email protected] += 0x50Cjump @TestPed:GetVehicleDamagingVehicle0A97: [email protected] = car [email protected] [email protected] += 0x50Cjump @TestVehicle Edited October 7, 2012 by ThirteenAG Widescreen Fixes Pack || Project2DFX || SaveLoader || WindowedMode || CLEO Scripts Link to comment Share on other sites More sharing options...
GaryRoachSanderson Posted October 5, 2012 Author Share Posted October 5, 2012 Thanks a lot, ThirteenAG. but no luck, it crashes upon loading the game. By the way, is the scm function :GetActorDamagingPed where we check if an actor has been hit in the head? Link to comment Share on other sites More sharing options...
ThirteenAG Posted October 7, 2012 Share Posted October 7, 2012 (edited) Shame, it should be 0321: AS_actor [email protected] die_headshotted , because [email protected] is a $PLAYER_ACTOR. Try again. UPD. Working. http://www.sendspace.com/file/axt72f Edited October 7, 2012 by ThirteenAG Widescreen Fixes Pack || Project2DFX || SaveLoader || WindowedMode || CLEO Scripts Link to comment Share on other sites More sharing options...
GaryRoachSanderson Posted October 7, 2012 Author Share Posted October 7, 2012 Shame, it should be 0321: AS_actor [email protected] die_headshotted , because [email protected] is a $PLAYER_ACTOR. Try again. UPD. Working. http://www.sendspace.com/file/axt72f Thanks man. It works now. But there is a weird bug still, peds die headshotted as long as they are shot, doesn't matter if they were shot in the leg, hands or body, and not only in the head. Is it possible to fix this please? But thanks anyway for your effort in trying to help me, appreciate it. Link to comment Share on other sites More sharing options...
Node Posted October 7, 2012 Share Posted October 7, 2012 Shame, it should be 0321: AS_actor [email protected] die_headshotted , because [email protected] is a $PLAYER_ACTOR. Try again. UPD. Working. http://www.sendspace.com/file/axt72f Thanks man. It works now. But there is a weird bug still, peds die headshotted as long as they are shot, doesn't matter if they were shot in the leg, hands or body, and not only in the head. Is it possible to fix this please? But thanks anyway for your effort in trying to help me, appreciate it. I don't understand, you're trying to make it so peds die instantly when shot in the head, isn't this already coded into the game? Link to comment Share on other sites More sharing options...
ThirteenAG Posted October 8, 2012 Share Posted October 8, 2012 Hm, i'm misunderstood the question then. This code actually makes every weapon kill peds with a headshot, not exactly like into the original game. But which weapons can't do a headshots? Because i never noticed that kind of thing. Widescreen Fixes Pack || Project2DFX || SaveLoader || WindowedMode || CLEO Scripts Link to comment Share on other sites More sharing options...
GaryRoachSanderson Posted October 8, 2012 Author Share Posted October 8, 2012 Hm, i'm misunderstood the question then. This code actually makes every weapon kill peds with a headshot, not exactly like into the original game.But which weapons can't do a headshots? Because i never noticed that kind of thing. Hi ThirteenAG, currently in the original game, only a few weapons can perform headshots, as in decapitating the ped's head when they are shot in the head, those that can't includes the 9mm, silenced 9mm, MP5, tec9, mac10. When shot in the head, they die a regular death but without "losing their head" literally. Try to headshot a ped with the M4 and the 9mm pistol, you will see the difference. I have also added many weapons to the game using Ryosuke's Weapon Limit Adjuster, and none of those weapons can make peds "die headshotted", which is why I was looking for a script that solves this problem. Cheers! Link to comment Share on other sites More sharing options...
TheGodfather. Posted October 8, 2012 Share Posted October 8, 2012 So you want weapons like 9mm to shoot like M4 to make the PED Headshotted.. It looks like you are requesting a mod.. Link to comment Share on other sites More sharing options...
GaryRoachSanderson Posted October 8, 2012 Author Share Posted October 8, 2012 So you want weapons like 9mm to shoot like M4 to make the PED Headshotted.. It looks like you are requesting a mod.. Yup, basically that summarizes what I want to achieve. There already is a script though, so I'm not requesting a mod. Link to comment Share on other sites More sharing options...
Michael-Knight1 Posted October 8, 2012 Share Posted October 8, 2012 So you want weapons like 9mm to shoot like M4 to make the PED Headshotted.. It looks like you are requesting a mod.. Yup, basically that summarizes what I want to achieve. There already is a script though, so I'm not requesting a mod. Requesting ! Lock Topic . Post There : http://www.gtaforums.com/index.php?showtopic=378015&st=0 Link to comment Share on other sites More sharing options...
Recommended Posts