First off add this to the top of your form under public partial class:
Code:
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:
Code:
if(TripModeSwitch == 0)
{
PS3.SetMemory(0x00f43fec, new byte[] { 0x49 });
SV_GameSendServerCommand(0, "J ac130_thermal");
Thread.Sleep(300);
TripModeSwitch++;
}
else if(TripModeSwitch == 1)
{
PS3.SetMemory(0x00f43fec, new byte[] { 0x48 });
SV_GameSendServerCommand(0, "J aftermath");
Thread.Sleep(300);
TripModeSwitch++;
}
else if (TripModeSwitch == 2)
{
PS3.SetMemory(0x00f43fec, new byte[] { 0x47 });
SV_GameSendServerCommand(0, "J default_night_mp");
Thread.Sleep(300);
TripModeSwitch++;
}
else if (TripModeSwitch == 3)
{
PS3.SetMemory(0x00f43fec, new byte[] { 0x46 });
SV_GameSendServerCommand(0, "J near_death_mp");
Thread.Sleep(300);
TripModeSwitch++;
}
else if (TripModeSwitch == 4)
{
PS3.SetMemory(0x00f43fec, new byte[] { 0x45 });
SV_GameSendServerCommand(0, "J mpnuke_aftermath");
Thread.Sleep(300);
TripModeSwitch++;
}
else if (TripModeSwitch == 5)
{
PS3.SetMemory(0x00f43fec, new byte[] { 0x44 });
SV_GameSendServerCommand(0, "J end_game");
Thread.Sleep(100);
TripModeSwitch++;
}
else if (TripModeSwitch == 6)
{
PS3.SetMemory(0x00f43fec, 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(0x00f43fec, new byte[] { 0x42 });
SV_GameSendServerCommand(0, "J end_game");
Thread.Sleep(100);
TripModeSwitch++;
}
else if (TripModeSwitch == 8)
{
PS3.SetMemory(0x00f43fec, new byte[] { 0x41 });
SV_GameSendServerCommand(0, "J end_game");
Thread.Sleep(100);
TripModeSwitch++;
}
else if (TripModeSwitch == 9)
{
PS3.SetMemory(0x00f43fec, new byte[] { 0x40 });
SV_GameSendServerCommand(0, "J end_game");
Thread.Sleep(100);
TripModeSwitch = 0;
}
SV_GameSendServerCommand (not necessarily needed):
Code:
public static void SV_GameSendServerCommand(int Client, string Command)
{
int num = (int)RPC.Call(0x608800, (object)Client, (object)0, (object)Command);
}
Then you can add this to your button to start it:
Code:
TrippyMode.Start();
Code:
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:
Code:
if(TripModeSwitch == 0)
{
PS3.SetMemory(0x00f43fec, new byte[] { 0x49 });
SV_GameSendServerCommand(0, "J ac130_thermal");
Thread.Sleep(300);
TripModeSwitch++;
}
else if(TripModeSwitch == 1)
{
PS3.SetMemory(0x00f43fec, new byte[] { 0x48 });
SV_GameSendServerCommand(0, "J aftermath");
Thread.Sleep(300);
TripModeSwitch++;
}
else if (TripModeSwitch == 2)
{
PS3.SetMemory(0x00f43fec, new byte[] { 0x47 });
SV_GameSendServerCommand(0, "J default_night_mp");
Thread.Sleep(300);
TripModeSwitch++;
}
else if (TripModeSwitch == 3)
{
PS3.SetMemory(0x00f43fec, new byte[] { 0x46 });
SV_GameSendServerCommand(0, "J near_death_mp");
Thread.Sleep(300);
TripModeSwitch++;
}
else if (TripModeSwitch == 4)
{
PS3.SetMemory(0x00f43fec, new byte[] { 0x45 });
SV_GameSendServerCommand(0, "J mpnuke_aftermath");
Thread.Sleep(300);
TripModeSwitch++;
}
else if (TripModeSwitch == 5)
{
PS3.SetMemory(0x00f43fec, new byte[] { 0x44 });
SV_GameSendServerCommand(0, "J end_game");
Thread.Sleep(100);
TripModeSwitch++;
}
else if (TripModeSwitch == 6)
{
PS3.SetMemory(0x00f43fec, 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(0x00f43fec, new byte[] { 0x42 });
SV_GameSendServerCommand(0, "J end_game");
Thread.Sleep(100);
TripModeSwitch++;
}
else if (TripModeSwitch == 8)
{
PS3.SetMemory(0x00f43fec, new byte[] { 0x41 });
SV_GameSendServerCommand(0, "J end_game");
Thread.Sleep(100);
TripModeSwitch++;
}
else if (TripModeSwitch == 9)
{
PS3.SetMemory(0x00f43fec, new byte[] { 0x40 });
SV_GameSendServerCommand(0, "J end_game");
Thread.Sleep(100);
TripModeSwitch = 0;
}
SV_GameSendServerCommand (not necessarily needed):
Code:
public static void SV_GameSendServerCommand(int Client, string Command)
{
int num = (int)RPC.Call(0x608800, (object)Client, (object)0, (object)Command);
}
Then you can add this to your button to start it:
Code:
TrippyMode.Start();