Skip to content

Instantly share code, notes, and snippets.

View Tustin's full-sized avatar

Josh Tustin

View GitHub Profile
@Tustin
Tustin / tunable_types.json
Last active May 1, 2016 21:12
PS3 tunable dump + data type
{"tunable":"XP_TUNABLE_DAILY_DEATHMATCH","index":4088,"type":"float"},
{"tunable":"XP_TUNABLE_DAILY_MISSION","index":4089,"type":"float"},
{"tunable":"XP_TUNABLE_DAILY_RACE","index":4090,"type":"float"},
{"tunable":"XP_TUNABLE_FIRST_WIN_OF_THE_DAY_BONUS","index":4091,"type":"float"},
{"tunable":"XP_TUNABLE_PLAY_ONE_OF_EACH_GAME_TYPE_AND_MINIGAME","index":4092,"type":"float"},
{"tunable":"XP_TUNABLE_PLAY_TEN_ROCKSTAR_VERIFIED_RACES_MISSIONS_OR_DEATHMATCHES","index":4093,"type":"float"},
{"tunable":"XP_TUNABLE_WIN_TEN_RACES_OR_DEATHMATCHES_CREATED_BY_OTHER_PLAYERS","index":4094,"type":"float"},
{"tunable":"XP_TUNABLE_PERFORMING_JOBS_WITH_OTHER_PLAYERS","index":4095,"type":"float"},
{"tunable":"XP_TUNABLE_COMPLETE_FRIENDS_CREATION","index":4096,"type":"float"},
{"tunable":"XP_TUNABLE_PLAY_YOUR_CREATIONS_AGAINST_OTHER_PLAYERS","index":4097,"type":"float"},
@Tustin
Tustin / jb700.cpp
Last active May 28, 2016 03:46
GTAV singleplayer JB700 recreation
int scene = -1;
int spikes[3];
void jb700_eject()
{
Vehicle veh = GET_VEHICLE_PED_IS_IN(PLAYER_PED_ID(), 1);
REQUEST_AMBIENT_AUDIO_BANK("CAR_STEAL_3_SCREAM", 0);
REQUEST_AMBIENT_AUDIO_BANK("CAR_THEFT_MOVIE_LOT", 0);
REQUEST_ANIM_DICT("misscarsteal4@actress");
if (IS_CONTROL_JUST_PRESSED(2, 0xCD) && GET_ENTITY_MODEL(GET_VEHICLE_PED_IS_IN(PLAYER_PED_ID(), 1)) == GET_HASH_KEY("jb700"))
{
function fetch_shouts(&$shoutobj, $limit = 20, $archive = false, $search_terms = false, $single_only = false)
{
$settings = $this->fetch_user_settings($this->vbulletin->userinfo['userid']);
$ignored = explode(',', $settings['s_ignored']);
$ignored[] = '-1';
$this->clean_array($ignored);
$ignored = implode(',', $ignored);
$posts = $db->query_read("
SELECT
post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted,
user.*, userfield.*, usertextfield.*,
" . iif($forum['allowicons'], 'icon.title as icontitle, icon.iconpath,') . "
" . iif($vbulletin->options['avatarenabled'], 'avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight,') . "
" . ((can_moderate($thread['forumid'], 'canmoderateposts') OR can_moderate($thread['forumid'], 'candeleteposts')) ? 'spamlog.postid AS spamlog_postid,' : '') . "
" . iif($deljoin, 'deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason,') . "
" . ($fetch_api_info ? "apipost.platformname AS mobile_platformname," : "") . "
editlog.userid AS edit_userid, editlog.username AS edit_username, editlog.dateline AS edit_dateline,
#using scripts\codescripts\struct;
#using scripts\shared\array_shared;
#using scripts\shared\callbacks_shared;
#using scripts\shared\clientfield_shared;
#using scripts\shared\compass;
#using scripts\shared\exploder_shared;
#using scripts\shared\flag_shared;
#using scripts\shared\laststand_shared;
#using scripts\shared\math_shared;
// generated by Call of Duty: MWR - do not modify - dehashed by Tustin (https://github.com/Tustin)
seta 0x2A70777D "1"
seta con_gameMsgWindow0MsgTime "5" //0xFC60C821
seta con_gameMsgWindow0LineCount "6" //0xCF9068E8
seta con_gameMsgWindow0ScrollTime "0.25" //0x09CE586D
seta con_gameMsgWindow0FadeInTime "0.25" //0x8E96CE41
seta con_gameMsgWindow0FadeOutTime "0.5" //0x0012C660
seta con_gameMsgWindow1MsgTime "8" //0x823D1218
seta con_gameMsgWindow1LineCount "6" //0x347799E1
seta con_gameMsgWindow1ScrollTime "0.25" //0xEF8F404C
function draw_insta_kill() {
self.insta_kill_timer = newClientHudElem(self);
self.insta_kill_timer.horzAlign = "center";
self.insta_kill_timer.vertAlign = "bottom";
self.insta_kill_timer.alignX = "center";
self.insta_kill_timer.alignY = "bottom";
self.insta_kill_timer.alpha = 1;
self.insta_kill_timer.fontScale = 1.8;
self.insta_kill_timer setText("Insta-kill: " + Int(level.zombie_vars[self.team]["zombie_insta_kill_time"]));
return self.insta_kill_timer;
#using scripts\codescripts\struct;
#using scripts\shared\clientfield_shared;
#using scripts\shared\system_shared;
#using scripts\shared\util_shared;
#using scripts\shared\flag_shared;
#insert scripts\shared\shared.gsh;
#insert scripts\shared\version.gsh;
#include <wchar.h>
#include <sys/prx.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/syscall.h>
#include <sys/ppu_thread.h>
#include <string.h>
#include <sys/sys_time.h>
#include <sys/time_util.h>
#include <stdarg.h>
@Tustin
Tustin / WHAT.c
Last active February 13, 2017 20:52
int PegasusWHATTHEFUCK(int iParam0) {
if (iParam0 < 0)
{
return -1;
}
switch (iParam0)
{
case 0:
return 17;