This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function AIPlayer::setLCA( %this, %bool ) | |
{ | |
%this.setMoveX( 0 ); | |
if ( %bool ) | |
{ | |
%this.lcaTick(); | |
} | |
else if ( isEventPending( %this.lcaTick ) ) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exec( "./pathing.cs" ); | |
function AIPlayer::aiTick( %this ) | |
{ | |
cancel( %this.aiTick ); | |
%position = %this.getHackPosition(); | |
if ( isObject( nodeGroup ) ) | |
{ | |
%useNodes = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exec( "./pathing.cs" ); | |
function AIPlayer::aiTick( %this ) | |
{ | |
cancel( %this.aiTick ); | |
%position = %this.getHackPosition(); | |
if ( isObject( nodeGroup ) ) | |
{ | |
%useNodes = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function line( %a, %b ) | |
{ | |
%distance = vectorDist( %a, %b ); | |
%center = vectorScale( vectorAdd( %a, %b ), 0.5 ); | |
%x0 = getWord( %a, 0 ); | |
%y0 = getWord( %a, 1 ); | |
%z0 = getWord( %a, 2 ); | |
%x1 = getWord( %b, 0 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
datablock staticShapeData( lineShapeData ) | |
{ | |
shapeFile = "config/cube.dts"; | |
}; | |
function line( %a, %b ) | |
{ | |
%distance = vectorDist( %a, %b ); | |
%center = vectorScale( vectorAdd( %a, %b ), 0.5 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
datablock staticShapeData( lineShapeData ) | |
{ | |
shapeFile = "config/cube.dts"; | |
}; | |
// individual angles | |
function line( %a, %b ) | |
{ | |
%distance = vectorDist( %a, %b ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
datablock staticShapeData( cubeShapeData ) | |
{ | |
shapeFile = "config/cube.dts"; | |
}; | |
function nodeSO( %position, %owner ) | |
{ | |
if ( strLen( %owner ) && !isObject( %owner ) ) | |
{ | |
error( "ERROR: Invalid node owner." ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function findPath( %start, %end ) | |
{ | |
if ( !isObject( %start ) || !isObject( %end ) ) | |
{ | |
return; | |
} | |
%start = %start.getID(); | |
%end = %end.getID(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package flashlightPackage | |
{ | |
function serverCmdLight( %client ) | |
{ | |
parent::serverCmdLight( %client ); | |
if ( isObject( %client.player.light ) ) | |
{ | |
%client.player.light.detachFromObject(); | |
%client.player.flashlightTick(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var jsdom = require('jsdom'); | |
function discover(callback) { | |
jsdom.env( | |
'http://forum.blockland.us/?action=recent', | |
function (errors, window) { | |
discoverParse(callback, window.$); | |
window.close(); | |
} | |
); |