Skip to content

Instantly share code, notes, and snippets.

Avatar

Joshua L Langerz82

  • Australia
View GitHub Profile
View fileio.c
/***************************************************************************
fileio.c
File access functions.
Copyright (c) 1996-2006, Nicola Salmoria and the MAME Team.
Visit http://mamedev.org for licensing and usage restrictions.
***************************************************************************/
@Langerz82
Langerz82 / xencode.sh
Created Nov 4, 2020
encodes ROM zip with x encode zip file
View xencode.sh
#!/bin/bash
mkdir tmp
cd tmp
unzip -v ../$1.zip
unzip -v ../$1x.zip
rm ../$1.zip
zip -v ../$1.zip *.*
cd ..
rm -f -r tmp
View ASTARv2.js
define(function() {
var AStar = (function () {
/**
* A* (A-Star) algorithm for a path finder
* @originalauthor Andrea Giammarchi
* @revisedauthor Langerz82
* @license Proprietary.
View ASTAR - Fine Grid Movement.
define(function() {
var AStar = (function () {
/**
* A* (A-Star) algorithm for a path finder
* @author Andrea Giammarchi
* @license Mit Style License
*/
View movementPhysicsOptimizer.diff
diff --git a/apps/openmw/engine.cpp b/apps/openmw/engine.cpp
index 1299fde0d..dd0839d60 100644
--- a/apps/openmw/engine.cpp
+++ b/apps/openmw/engine.cpp
@@ -232,6 +232,7 @@ OMW::Engine::Engine(Files::ConfigurationManager& configurationManager)
, mFSStrict (false)
, mScriptBlacklistUse (true)
, mNewGame (false)
+ , mPhysicsFPS(60)
, mCfgMgr(configurationManager)
View 3488.diff
diff --git a/apps/openmw/mwmechanics/aicombat.cpp b/apps/openmw/mwmechanics/aicombat.cpp
index ee1b9cecd..b0b4d994d 100644
--- a/apps/openmw/mwmechanics/aicombat.cpp
+++ b/apps/openmw/mwmechanics/aicombat.cpp
@@ -133,7 +133,10 @@ namespace MWMechanics
}
storage.updateCombatMove(duration);
+ storage.mRotateMove = false;
if (storage.mReadyToAttack) updateActorsMovement(actor, duration, storage);
View attack.diff
diff --git a/gamefilesd/level/afterLevelLoad.json b/gamefilesd/level/afterLevelLoad.json
index 1b694b6..4ea1661 100755
--- a/gamefilesd/level/afterLevelLoad.json
+++ b/gamefilesd/level/afterLevelLoad.json
@@ -30,5 +30,12 @@
"then": { "name": "audio.stop", "id": "main" },
"else": { "name": "audio.play", "id": "main" }
}
- ]
+ ],
View playerUpdate.json
{
"action": [
{
"name": "action.set",
"id": "updateLifeManaOrbs",
"action": [
{
"name": "<=",
"param1": "%currentLevel.currentPlayer.life%",
"param2": 0,
View pxgamepadv2.js
(function() {
//var jQuery = $;
function PxGamepad() {
// map button indices to names
this.buttonNames = [
'a',
'b',
'x',
View PlayerLight.diff
diff --git a/Diablo.vcxproj b/Diablo.vcxproj
index dcdb974..261b9a8 100644
--- a/Diablo.vcxproj
+++ b/Diablo.vcxproj
@@ -198,6 +197,7 @@
<ClCompile Include="Source\towners.cpp" />
<ClCompile Include="Source\track.cpp" />
<ClCompile Include="Source\trigs.cpp" />
+ <ClCompile Include="Source\util.cpp" />
<ClCompile Include="Source\wave.cpp" />
You can’t perform that action at this time.