Skip to content

Instantly share code, notes, and snippets.

@iwanPlays
iwanPlays / gist:80eae7152f490abe29b4910835f8c721
Last active January 15, 2024 22:16
Kingdom Come Deliverance additional Cheat Teleport Location Coordinates
# Camp of Sir Kuno (DLC)
cheat_teleport x:2246 y:948 z:77
# Rattay south west fort
cheat_teleport x:2558 y:460 z:68
# Talmberg fort
cheat_teleport x:2331 y:2769 z:104
# Talmberg smith and stone quary
# Having trouble changing player speed.
# Not sure if lots of unused libraries/packages preventing finding out which acutally is used
# or if system has max speed limiters somewhere I'm not finding yet.
# The following changes are for Assembly-CSharp.dll via dnSpy 6.3.0
# Weapon reload speed
C_ModuleBase's Update() contains if (this.m_IsReloading) where it speeds up NPC reload by 1.5f for some reason.
You can do the same for yourself with more fun numbers by adding for example:
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css">
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:800px; -webkit-transform:rotate(0deg)">
<scene id="scene1">
<label t="translate(0,346)">
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
public class NavigationBaker : MonoBehaviour {
public NavMeshSurface[] surfaces;
public Transform[] objectsToRotate;
@iwanPlays
iwanPlays / UnrealPakDoc
Created August 8, 2020 19:16
UnrealPak.exe documentation (v4.22)
Usage:
UnrealPak <PakFilename> -Test
UnrealPak <PakFilename> -List [-ExcludeDeleted]
UnrealPak <PakFilename> <GameUProjectName> <GameFolderName> -ExportDependencies=<OutputFileBase> -NoAssetRegistryCache -ForceDependsGathering
UnrealPak <PakFilename> -Extract <ExtractDir> [-Filter=<filename>]
UnrealPak <PakFilename> -Create=<ResponseFile> [Options]
UnrealPak <PakFilename> -Dest=<MountPoint>
UnrealPak <PakFilename> -Repack [-Output=Path] [-ExcludeDeleted] [Options]
UnrealPak <PakFilename1> <PakFilename2> -diff
UnrealPak <PakFolder> -AuditFiles [-OnlyDeleted] [-CSV=<filename>] [-order=<OrderingFile>] [-SortByOrdering]
@iwanPlays
iwanPlays / r2sights.cs
Created August 3, 2020 09:35
Receiver 2 Tritium Sights mod
/* Receiver 2 Tritium Sights mod
1 model_10
-"barrel"
-"frame"
2 colt_detective
-"barrel"
-"frame"
3 colt_1911_a1
-"slide" - "front_sight"
lvl angle power
lvl1 304 12000000
lvl2 9 8880000
lvl3 176 24000000
lvl4 138 10560000
lvl5 75 18240000
@iwanPlays
iwanPlays / A Place, Forbidden Freesound Credits
Created May 23, 2020 12:24
A Place, Forbidden Freesound Credits
Additional Assets Used:
Footstep sounds, felix.blume, CC0 (modified)
https://freesound.org/people/felix.blume/sounds/413839/
Filing cabinet drawer sound, LloydEvans09, CC0 (modified)
https://freesound.org/people/LloydEvans09/sounds/185842/
Lamp on/off sound, Goup_1, Attribution
https://freesound.org/people/Goup_1/sounds/171148/
@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;