Post: [1.12] Drugs/Drunk/Spinning Mode (C#)
05-13-2014, 07:22 PM #1
iMoDz-Baptiste
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); Hi,
I update the code from Prime Notorius.

Add this under partial class :
    
private const uint G_Client = 0xF44400;
private const uint SpinningMode = G_Client + 0x6C;
private int TripModeSwitch = 0;


There is other ways to do this but this is how I do it (using a switch)
And then add a timer called TrippyMode or whatever and then add this in the timer:
    if(TripModeSwitch == 0)
{
PS3.SetMemory(SpinningMode, new byte[] { 0x49 });
SV_GameSendServerCommand(0, "J ac130_thermal");
Thread.Sleep(300);
TripModeSwitch++;
}
else if(TripModeSwitch == 1)
{
PS3.SetMemory(SpinningMode, new byte[] { 0x48 });
SV_GameSendServerCommand(0, "J aftermath");
Thread.Sleep(300);
TripModeSwitch++;
}
else if (TripModeSwitch == 2)
{
PS3.SetMemory(SpinningMode, new byte[] { 0x47 });
SV_GameSendServerCommand(0, "J default_night_mp");
Thread.Sleep(300);
TripModeSwitch++;
}
else if (TripModeSwitch == 3)
{
PS3.SetMemory(SpinningMode, new byte[] { 0x46 });
SV_GameSendServerCommand(0, "J near_death_mp");
Thread.Sleep(300);
TripModeSwitch++;
}
else if (TripModeSwitch == 4)
{
PS3.SetMemory(SpinningMode, new byte[] { 0x45 });
SV_GameSendServerCommand(0, "J mpnuke_aftermath");
Thread.Sleep(300);
TripModeSwitch++;
}
else if (TripModeSwitch == 5)
{
PS3.SetMemory(SpinningMode, new byte[] { 0x44 });
SV_GameSendServerCommand(0, "J end_game");
Thread.Sleep(100);
TripModeSwitch++;
}
else if (TripModeSwitch == 6)
{
PS3.SetMemory(SpinningMode, new byte[] { 0x43 });
SV_GameSendServerCommand(0, "J end_game");//you can add different visions or whatever
Thread.Sleep(100);
TripModeSwitch++;
}
else if (TripModeSwitch == 7)
{
PS3.SetMemory(SpinningMode, new byte[] { 0x42 });
SV_GameSendServerCommand(0, "J end_game");
Thread.Sleep(100);
TripModeSwitch++;
}
else if (TripModeSwitch == Cool Man (aka Tustin)
{
PS3.SetMemory(SpinningMode, new byte[] { 0x41 });
SV_GameSendServerCommand(0, "J end_game");
Thread.Sleep(100);
TripModeSwitch++;
}
else if (TripModeSwitch == 9)
{
PS3.SetMemory(SpinningMode, new byte[] { 0x40 });
SV_GameSendServerCommand(0, "J end_game");
Thread.Sleep(100);
TripModeSwitch = 0;
}


SV_GameSendServerCommand (not necessarily needed):
    private void SV_GameSendServerCommand(int Client, string Command)
{
int num = (int)RPC.Call(0x69A3F4, (object)Client, (object)0, (object)Command);
}


Then you can add this to your button to start it:
    TrippyMode.Start();


Later you just need to update de G_Client offset and SV_GameSendServerCommand. Smile

Credit : ~ Prime Notorius ~

The following 2 users say thank you to iMoDz-Baptiste for this useful post:

ALI ALHILFI, Mango_Knife
05-14-2014, 08:47 PM #2
good job man:yes::yes:

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo