Show Posts

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.


Messages - BluetoothBoy

Pages: 1 ... 177 178 179 180 181 [182] 183 184 185 186 187 ... 483
2716
Off Topic / Re: Anime and Manga Megathread
« on: July 19, 2014, 07:40:16 PM »
nichijou
I've seen a few, but I forget which ones.

2717
Off Topic / Re: Anime and Manga Megathread
« on: July 19, 2014, 07:33:28 PM »
so is sword art online good or bad
SAO 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.

2718
Off Topic / Re: Just jailbroke my phone, what should I get?
« on: July 19, 2014, 07:29:37 PM »
I'm calling the internet police for jailbreak
Shhh...

Essentials:

Activator (control over many actions based on gestures)
iFile (full system/FTP/etc file browser)
Poof (can hide/show apps)

Eclipse is pretty cool too (changes UI color).

2719
Gallery / Re: Game's Home
« on: July 19, 2014, 07:26:28 PM »
Why do people take screenshots with shadows on in interiors when there's no lights? It'd look better without shadows if you aren't going to light it.

2720
Baked shadows would be nice.
There's not much point without terrains/interiors...

I want to see... Ambient occlusion (don't hate me)!

2721
General Discussion / Re: Should Blockland be supported on Linux?
« on: July 19, 2014, 07:12:29 PM »
Me neither. It has nothing to do with a user's OS.
I was saying that in jest, hence the :cookieMonster:. 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.

2722
Add-Ons / Re: Snowboard [v.1.0] - Version 1.1 coming Monday!
« on: July 19, 2014, 05:15:00 PM »
Version 1.1, which allows bunny hops, will be released on Monday! :D

2723
Modification Help / Re: How to bypass height control? [SOLVED]
« on: July 19, 2014, 05:13:12 PM »
I figured it out. In my script, I used WheeledVehicleData::onTrigger instead of Armor::onTrigger. Because height control uses FlyingVehicleData::onTrigger, there are no conflicts. Thanks for the help, everybody!

2724
Modification Help / Re: How to bypass height control?
« on: July 19, 2014, 04:24:55 PM »
Ok, here's the client (pretty sure it's the issue):
Code: [Select]
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);

And here's the server:

Code: [Select]
$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;
}

Pretty sure it has to do with either function jump() or not having all the arguments in onTrigger.

2725
General Discussion / Re: Should Blockland be supported on Linux?
« on: July 19, 2014, 04:00:43 PM »
I actually find it odd people are complaining about using Wine to run Blockland. It actually runs decently, provided you have a not-sucky computer.

2726
Modification Help / Re: How to bypass height control?
« on: July 19, 2014, 03:56:00 PM »
can you paste the code the heightcontrol addon uses for ::onTrigger?
Yes, when I get to my computer.

2727
Off Topic / Re: Post your DreamScene backgrounds
« on: July 19, 2014, 03:55:09 PM »
My background used to be an epic music visualizer, but it taxed my system, do I turned it off. :(

2728
Off Topic / Re: Youtubers that you think are hilarious
« on: July 19, 2014, 02:11:16 PM »
Nobody's said it yet so... Olan Rogers.

2729
Modification Help / Re: Two new questions!
« on: July 19, 2014, 02:02:15 PM »
Crap. I don't want to have to use left click, but unless someone can figure out how it can be bypassed, I'll have to do that. I'll still look at the code though to try and fix it, though.

2730
General Discussion / Re: Should Blockland be supported on Linux?
« on: July 19, 2014, 01:52:40 PM »
lel

oh the days of the "virusless" macs...
Hey. Still haven't ever had a virus!  :cookieMonster:

Pages: 1 ... 177 178 179 180 181 [182] 183 184 185 186 187 ... 483