Skip to content

Instantly share code, notes, and snippets.

@iwanPlays
iwanPlays / shininbladesai.ahk
Created August 15, 2018 14:35
Key-mashing AI for Shining Blades from https://steelraven7.itch.io/shinin-blades by SteelRaven7 and Wronex
F1::
loop {
Random, updown, 0, 5
if (updown < 2 ) {
Send {Up up}
Send {Down down}
} else if (updown < 4) {
Send {Down up}
Send {Up down}
} else {
Abort!
Abort Mission!
Acknowledged!
Advancing!
Affirmative!
All Clear!
ASAP! [Asap]
A S A P! [spelled out]
Attack!
Attack Formation.
Abort!
Abort Mission!
Acknowledged!
Advancing!
Affirmative!
All Clear!
ASAP! [Asap]
A S A P! [spelled out]
Attack!
Clear! [meaning that no more enemies are in the area]
Abort!
Abort Mission!
Acknowledged!
Advancing!
Affirmative!
All Clear!
ASAP! [Asap]
A S A P! [spelled out]
Attack!
Clear! [meaning that no more enemies are in the area]
Abort!
Abort Mission!
Acknowledged!
Advancing!
Affirmative!
All Clear!
ASAP! [Asap]
A S A P! [spelled out]
Attack!
Attack Formation.
@iwanPlays
iwanPlays / Receiver 2 credits as of 2020-04-30
Created April 30, 2020 15:22
Receiver 2 credits as of 2020-04-30
Max Danielsson - lead programmer, build systems
Jordan Fehr - firearm sounds
Adam Foster - web development
Michael Heald - web design, UI design
Rudolf Kremers - writing, design, production
Merlyn Morgan-Graham - production, programming
Jack Morris - social media, video production
Lukas Orsvärn - technical art, generalist
Anton Riehl - music
David Rosen - executive producer, generalist
@iwanPlays
iwanPlays / Receiver 2 Disco Lights
Created May 2, 2020 09:27
Receiver 2 Disco Lights
# disco for R2
### turrets - TurretScript() class
# Fields:
private Color[] fun = new Color[7];
private float cycler;
# Start():
@iwanPlays
iwanPlays / Ravenfield Time Stop DIY Mod
Last active May 4, 2020 06:56
Modding instructions to make Ravenfield's time stop only slow down enemies and physics but not the player
# Based on NueSB's old Time Stop mod
# Thanks to NueSB and BlipBloop for helping with this on Ravenfield's discord #modding chat!
# Thanks to Litttle_fish for fixing some issues!
# Makes many things 120% fast (Factor 1.2) and slows down rest of the game to 1% speed (Factor 0.01).
############ TASKS
- WORKAROUND (Less overheat) Normalize weapon HEAT cooldown
- WORKAROUND (Disabled) Muzzle flash blocks view
- FIXED Don't slow down weapon recoil recovery
@iwanPlays
iwanPlays / Unity create Material on the fly
Created May 10, 2020 17:46
Unity create Material on the fly
GameObject cube = GameObject.CreatePrimitive(PrimitiveType.Cube);
cube.transform.localScale = new Vector3(5,5,5);
Material mat = new Material(Shader.Find("Standard"));
mat.SetColor("_Color", new Color(1,0,0,.5f));
mat.SetFloat("_Mode", 3);
mat.SetInt("_SrcBlend", (int)UnityEngine.Rendering.BlendMode.SrcAlpha);
mat.SetInt("_DstBlend", (int)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
mat.EnableKeyword("_ALPHABLEND_ON");
mat.renderQueue = 3000;
lvl angle power
lvl1 304 12000000
lvl2 9 8880000
lvl3 176 24000000
lvl4 138 10560000
lvl5 75 18240000