This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using Rage; | |
| using GetStatusForDebug.UI; | |
| [assembly: Rage.Attributes.Plugin("CauseRealStackOverflow", Description = "Causes real stack overflow and freeze the game.", Author = "kagikn")] | |
| namespace GetStatusForDebug | |
| { | |
| public static class EntryPoint | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Drawing; | |
| using System.Windows.Forms; | |
| using GTA; | |
| using GTA.Native; | |
| using GTA.Math; | |
| using System.Runtime.InteropServices; | |
| using NativeUI; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void Resurrect(Ped ped) | |
| { | |
| int maxHealth = ped.MaxHealth; | |
| bool isCollisionEnabled = ped.HasCollision; | |
| var vehicle = ped.CurrentVehicle; | |
| var seatIndex = ped.SeatIndex; | |
| ped.Health = maxHealth; | |
| ped.Task.ClearAllImmediately(); | |
| ped.SetConfigFlag(33, false);//removes the flag that can cause an instant kill by one damage or starting ragdoll |