Skip to content

Instantly share code, notes, and snippets.

Wampa842

Block or report user

Report or block Wampa842

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Wampa842
Wampa842 / BuyableBehaviour.cs
Last active Aug 10, 2018
My Summer Car buyable mod item
View BuyableBehaviour.cs
/*
When the mod is loaded, instantiate your GameObject, then set its position to somewhere in Teimo's shop.
The GameObject must have the usual interactivity components - a convex MeshCollider and a Rigidbody.
It's best to set Rigidbody.isKinematic to true and GameObject.tag to "Untagged" before adding the behaviour component.
*/
/*MIT License
Copyright(c) 2018 Wampa842
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@Wampa842
Wampa842 / getCetusTime.js
Last active Feb 13, 2018
A function to pull the Cetus bounty reset timestamp from the world state file, then pass it to a callback
View getCetusTime.js
//The first parameter defines the platform (1: PC, 2: PS4, 3: XBO). If it's 0 or undefined, the function won't fetch anything - it'll instead use a static timestamp.
//I don't think there's any major difference between the platforms' times, you can probably safely use the PC data and remove the unnecessary lines.
//On success, the time is passed to the callback function. On any error, the callback will receive the static timestamp.
function getCetusTime(platform, callback)
{
var timestamp = 1510884902; //Static timestamp to be returned in case of an error. Correct as of 2018-02-13, for PC version 22.12.2. Might not be accurate in the future.
if(!platform || (platform > 3))
{
callback(timestamp);
return;
You can’t perform that action at this time.