Skip to content

Instantly share code, notes, and snippets.

@dannythehacker
Forked from iwanPlays/Ravenfield Gold
Created September 27, 2022 23:05
Show Gist options
  • Save dannythehacker/29a3bce603cf9c3d516f51394d28cc04 to your computer and use it in GitHub Desktop.
Save dannythehacker/29a3bce603cf9c3d516f51394d28cc04 to your computer and use it in GitHub Desktop.
BlipBloop's Gold Mod, iwanPlays' modifications https://youtube.com/iwanPlays
BlipBloop's Gold Mod code
with iwanPlays' modifications
WEAPON:
START:
for (int i = 0; i < base.GetComponentsInChildren<MeshRenderer>().Length; i++)
{
for (int j = 0; j < base.GetComponentsInChildren<MeshRenderer>()[i].materials.Length; j++)
{
base.GetComponentsInChildren<MeshRenderer>()[i].materials[j].color = new Color(0.99f, 0.85f, 0f);
}
}
VEHICLE:
DAMAGE:
for (int i = 0; i < base.GetComponentsInChildren<MeshRenderer>().Length; i++)
{
for (int j = 0; j < base.GetComponentsInChildren<MeshRenderer>()[i].materials.Length; j++)
{
base.GetComponentsInChildren<MeshRenderer>()[i].materials[j].color = new Color(0.99f, 0.85f, 0f);
}
}
ACTOR:
DAMAGE:
Material[] materials = this.skinnedRenderer.materials;
materials[this.actorMaterialIndex] = new Material(Shader.Find("Specular"));
this.skinnedRenderer.materials = materials;
this.skinnedRendererRagdoll.materials = materials;
this.skinnedRenderer.material.color = new Color(0.99f, 0.85f, 0f);
this.skinnedRendererRagdoll.material.color = new Color(0.99f, 0.85f, 0f);
for (int i = 0; i < base.gameObject.GetComponentsInParent<MeshRenderer>().Length; i++)
{
base.gameObject.GetComponentsInParent<MeshRenderer>()[i].material.color = new Color(0.99f, 0.85f, 0f);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment