This file contains 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
for (int i = VehiclePool.Length - 1; i >= 0; i--) | |
{ | |
Vehicle veh = VehiclePool[i]; | |
if (veh.IsOnFire && !OnFireList.ContainsKey(veh.Handle)) | |
{ | |
var fx = new VehicleEffects(veh); | |
fx.InitializeFire_SmokeEffect(); | |
OnFireList.Add(veh.Handle, vehicleEffect); |
This file contains 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
foreach (var item in OnFireList) | |
{ | |
var vehicle = new Vehicle(item.Key); | |
if (!vehicle.IsOnFire) | |
{ | |
item.Value.RemoveFire_SmokeEffects(); | |
deleteQueue.Enqueue(item.Key); | |
} |
This file contains 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
while (deleteQueue.Count > 0) | |
{ | |
var item = deleteQueue.Dequeue(); | |
OnFireList.Remove(item); | |
} |
This file contains 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
[StructLayout(LayoutKind.Explicit)] | |
public struct PtfxAssetStore | |
{ | |
[FieldOffset(0x10)] | |
public int MaxItems; //0x10-0x14 | |
[FieldOffset(0x18)] | |
[MarshalAs(UnmanagedType.LPStr)] | |
public string StoreName; | |
[FieldOffset(0x38)] | |
public IntPtr Items; //0x38 |
This file contains 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.Runtime.InteropServices; | |
using System.Text; | |
using System.Xml; | |
namespace Memory | |
{ | |
public static unsafe class MemoryAccess | |
{ | |
[UnmanagedFunctionPointer(CallingConvention.ThisCall)] |
This file contains 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
pattern = new Pattern("\x45\x33\xC9\x44\x8B\xC5\x48\x8B\xD3\x48\x8B\xCE", "xxxxxxxxxxxx"); | |
result = pattern.Get(-5); | |
if (result == IntPtr.Zero) return; | |
byte[] byteArray = { 0x90, 0x90, 0x90, 0x90, 0x90 }; | |
Marshal.Copy(byteArray, 0, result, byteArray.Length); |
This file contains 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
#region SetupAfterburnerPatch | |
pattern = new Pattern("\x3C\x07\x0F\x84\x00\x00\x00\x00\x8B\x87\x00\x00\x00\x00", "xxxx????xx????"); | |
result = pattern.Get(-155); | |
byte[] bytes = { 0xE9, 0x79, 0x01, 0x00, 0x00, 0x90 }; | |
Marshal.Copy(bytes, 0, result, bytes.Length); |
This file contains 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.Windows.Forms; | |
using GTA; | |
using GTA.Native; | |
using Control = System.Windows.Forms.Control; | |
public delegate void UIChatMessageHandler(UIChat sender, string message); | |
public class UIChat : GTA.Script | |
{ |
This file contains 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
void function GimmeTheLootThread() | |
{ | |
while ( true ) | |
{ | |
if ( GetConVarInt( "2" ) == 0 || !autoLootEnabled) | |
{ | |
wait 5.0 | |
continue | |
} |
This file contains 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
void function IconForLootThread( entity player, entity loot, LootData lootData, array<var> itemRuis, var farRui ) { | |
EndSignal( player, "OnDestroy" ) | |
EndSignal( player, "OnDeath" ) | |
EndSignal( loot, "OnDestroy" ) | |
Assert ( IsNewThread(), "Must be threaded off." ) | |
if ( player != GetLocalClientPlayer() ) return | |
if ( GetCodeBool( "StreamingMode" ) ) return | |
if ( !IsValid( loot ) ) return | |
if ( lootData.lootType == eLootType.MAINWEAPON ) { |
OlderNewer