Hank East
Content Creator
- Joined
- Jan 25, 2012
Title. A mod that toggles teeth clenching on and off.
EDIT:
EDIT2:
Clench.txt
EDIT3:
Different approach, ignores teeth clench:
EDIT:
Code:
package
{
public class Main extends flash.display.MovieClip
{
public var lProxy:Class;
public var her;
public function initl(l)
{
var lp = lProxy.createProxy(her, "startClenchingTeeth");
lp.hooked = false;
l.unloadMod();
}
}
}
EDIT2:
Code:
package
{
import flash.utils.Dictionary;
public class Main extends flash.display.MovieClip
{
public var modSettingsLoader:Class;
public var lProxy:Class;
public var cData;
public var loader;
public var her;
private var lp:*;
public function initl(l)
{
var msl:* = new modSettingsLoader("Clench", settingsLoaded, cData);
lp = lProxy.createProxy(her, "startClenchingTeeth");
l.unloadMod();
}
public function settingsLoaded(e):void
{
var dict:Dictionary = e.settings;
if (dict["toggleClench"] != null)
loader.registerFunctionPersist(toggleClench, dict["toggleClench"]);
}
private function toggleClench() : void
{
lp.hooked = !lp.hooked;
if(!lp.hooked) her.clenchTeeth = false;
loader.updateStatus("Toggle Clench: " + (lp.hooked?"ON":"OFF"));
}
}
}
Clench.txt
Code:
toggleClench=37
EDIT3:
Different approach, ignores teeth clench:
Code:
package
{
public class Main extends flash.display.MovieClip
{
public var lProxy:Class;
public var her:*;
private var clench_tmp:Boolean = false;
public function initl(l:*) : void
{
var lp = lProxy.createProxy(her, "move");
lp.addPre(
function(a, b)
{
clench_tmp = her.clenchTeeth;
her.clenchTeeth = false;
}, true);
lp.addPost(
function()
{
if(her.penisInMouthDist > 0)
her.clenchedTeethTimer = Math.max(0,her.clenchedTeethTimer-1);
else if(her.pos < 1/10)
her.clenchedTeethTimer = Math.min(her.clenchedTeethTime, her.clenchedTeethTimer+1);
her.clenchTeeth = clench_tmp;
}, true);
lp = lProxy.createProxy(her, "startClenchingTeeth");
lp.addPre(
function()
{
clench_tmp = true;
l.updateStatus("CLENCH!");
}, true);
lp = lProxy.createProxy(her, "updateLips");
lp.addPre(
function()
{
her.clenchTeeth = clench_tmp || (her.clenchedTeethTimer != her.clenchedTeethTime) && !her.mouthFull;
}, true);
lp = lProxy.createProxy(her, "startClenchingTeeth");
var mf_temp;
lp.addPre(
function()
{
l.updateStatus(her.clenchTeeth + "_" + her.mouthFull);
clench_tmp = her.clenchTeeth;
her.clenchTeeth = false;
mf_temp = her.mouthFull;
her.mouthFull = false;
}, true);
lp.addPost(
function()
{
her.mouthFull = mf_temp;
her.clenchTeeth = clench_tmp;
}, true);
l.unloadMod();
}
}
}