2716
Off Topic / Re: Anime and Manga Megathread
« on: July 19, 2014, 07:40:16 PM »nichijouI've seen a few, but I forget which ones.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
nichijouI've seen a few, but I forget which ones.
so is sword art online good or badSAO is an anime I wouldn't call really good or bad. It just is. Some people love and some hate it. Some point out its flaws, some its redeeming factors. All in all, though I don't really think it falls heavily towards good or bad, regardless of what many people say (unlike some anime like Angel Beats; you won't find a ton of people calling that a bad series). I'd say watch it and decide for yourself. Personally, I enjoyed it.
I'm calling the internet police for jailbreakShhh...
Baked shadows would be nice.There's not much point without terrains/interiors...
Me neither. It has nothing to do with a user's OS.I was saying that in jest, hence the
. But I wouldn't say it has nothing to do with the user's OS; a certain OS won't prevent viruses, but it's a simple truth that if a user isn't careful, they're much more likely to get a virus on a Windows computer. Not hating on Windows or anything, that's just how it is.
function clientcmdHC_client_ping(%x)
{
commandtoserver('HC_client_pong',%x);
$HCServer = 1;
}
package supportheightcontrol
{
function crouch(%val)
{
if($HCServer)
{
if(%val==1)
commandtoserver('hoverDescend');
else
commandtoserver('hoverStop');
}
Parent::crouch(%val);
}
function jump(%val)
{
if($HCServer)
{
if(%val==1)
commandtoserver('hoverAscend');
else
commandtoserver('hoverStop');
}
Parent::jump(%val);
}
function disconnect(%a)
{
if($HCServer)
{
commandtoserver('hoverStop');
$HCServer = 0;
}
Parent::disconnect(%a);
}
};
activatePackage(supportheightcontrol);$Server::HeightControl::delay=100;
//Ping-Pong is from the compass mod. All credits go to the original creator for this.
//This is a safe and good way to check if the server has the mod and if the client has the clientside.
function servercmdHC_client_pong(%client,%x)
{
if(%x == %client.HCchecknumber)
{
%client.hasHeightControlClient = 1;
}
}
package HeightControlServer
{
function GameConnection::loadMission(%client,%a,%b,%d,%e,%f)
{
Parent::loadMission(%client,%a,%b,%d,%e,%f);
%client.HCchecknumber = getRandom(0,100);
commandtoclient(%client,'HC_client_ping',%client.HCchecknumber);
}
//Slight support for people who don't have the client. :3
//People without the client will only be able to 'spam' the jump key to go up.
//They will have to rely on gravity to go down. :S
function FlyingVehicleData::onTrigger(%this,%obj,%client)
{
if(!%client.hasHeightControlClient)
{
%data= %obj.getDatablock();
if(%data.heightcontrol)
{
if(getsimtime() >= %obj.lastHoverMove+$Server::HeightControl::delay)
{
%velocity= "0 0 "@%data.ascendVelocity;
%obj.setVelocity(vectorAdd(%obj.getVelocity(),%velocity));
%obj.lastHoverMove=getsimtime();
}
}
}
}
function Armor::onMount(%this,%player,%obj,%a,%b,%c,%d,%e,%f)
{
Parent::onMount(%this,%player,%obj,%a,%b,%c,%d,%e,%f);
if(isObject(%player.client) && %obj.getDatablock().heightcontrol)
{
%player.client.bottomPrint("\c6Heightcontrol has been detected in this vehicle. Type /HChelp for help.",3);
}
}
};
ActivatePackage(HeightControlServer);
function servercmdHChelp(%client)
{
if(%client.hasHeightControlClient)
{
messageclient(%client,'',"When in a vehicle with Heightcontrol enabled, press your jump-key to ascend and your crouch-key to descend.");
messageclient(%client,'',"You can also hold the keys to automatically ascend/descend.");
}
else
{
messageclient(%client,'',"You do not have the add-on Support_HeightControl and thus you can only ascend by clicking the jump key to ascend.");
messageclient(%client,'',"People with the add-on have the following extra's (due to client sided code):");
messageclient(%client,'',"- Descend using crouch key.");
messageclient(%client,'',"- Ascend/Descend automatically by holding the jump/crouch key.");
if(%client.hasRTB)
messageclient(%client,'',"<a:rtb-3612>Click here to use RTB to download Support_HeightControl.</a>");
else
messageclient(%client,'',"\c6You can download Support_HeightControl by visiting the following link: <a:http://forum.returntoblockland.com/dlm/viewFile.php?id=3612>Support_HeightControl on RTB</a>.");
}
}
function servercmdhoverAscend(%client)
{
%client.hoverTrigger = 1;
hoverLoop(%client,1);
}
function servercmdhoverDescend(%client)
{
%client.hoverTrigger = 1;
hoverLoop(%client,0);
}
function hoverLoop(%client,%dir)
{
if(%client.hoverTrigger)
{
%player=%client.player;
if(!%player)
return;
%mnt= %player.getObjectMount();
if(!isObject(%mnt))
return;
%mountObj= %mnt.getMountNodeObject(0);
if(%mountObj!$=%player)
return;
%data= %mnt.getDatablock();
if(%data.heightcontrol)
{
if(getsimtime() >= %mnt.lastHoverMove+$Server::HeightControl::delay)
{
if(%dir==1)
%velocity= "0 0 "@%data.ascendVelocity;
else
%velocity= "0 0 "@%data.descendVelocity;
%mnt.setVelocity(vectorAdd(%mnt.getVelocity(),%velocity));
%mnt.lastHoverMove=getsimtime();
%client.HChoverMove = schedule($Server::HeightControl::delay,0,hoverLoop,%client,%dir);
}
}
}
}
function servercmdhoverStop(%client)
{
cancel(%client.HChoverMove);
%client.hoverTrigger=0;
}can you paste the code the heightcontrol addon uses for ::onTrigger?Yes, when I get to my computer.
lelHey. Still haven't ever had a virus!
oh the days of the "virusless" macs...