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 - Treynolds416

Pages: 1 ... 529 530 531 532 533 [534] 535 536 537 538 539 ... 722
7996
Modification Help / Help with discerning a brick's position
« on: March 26, 2011, 02:19:32 PM »
Basically, look at a brick, type a server command, and have the coordinates of a brick presented to you.


Lilboarder's attempt (modified by me) worked perfectly, but only for basepates. Otherwise, the function did not seem able to find the object.
Code: [Select]
function servercmdobjtest(%client)
{
ClientCmdCenterPrint("You activated the function", 3);
%obj = %client.player;
%scale = vectorScale(%obj.getEyeVector(),100);
%ray = containerRaycast(%obj.getEyePoint(),%scale,$Typemasks::fxBrickObjectType);

%brick = firstWord(%ray);
messageClient(%client,'',%brick.getPosition());
ClientCmdCenterPrint("It probably didn't work", 3);
}



Iban's attempt was a lot more cleaned up and user friendly, although it didn't work at all. Everytime I called the function, I would always get "Look at a brick, dummy". After some testing, I determined that the function never actually found the object, for whatever reason.
Code: [Select]
function serverCmdObjTest(%client)
{
%obj = %client.player;
if(!isObject(%obj))
{
%client.centerPrint("\c5Spawn first, dummy.", 2);
return;
}

%fvec = %obj.getForwardVector();
%fX = getWord(%fvec, 0);
%fY = getWord(%fvec, 1);

%evec = %obj.getEyeVector();
%eX = getWord(%evec, 0);
%eY = getWord(%evec, 1);
%eZ = getWord(%evec, 2);

%eXY = mSqrt((%eX * %eX) + (%eY * %eY));
%aimVec = (%fX * %eXY) SPC (%fY * %eXY) SPC %eZ;

%range = 100;
%end = vectorAdd(%start, vectorScale(%aimVec, %range));
%masks = $TypeMasks::FxBrickAlwaysObjectType;
%col = firstWord(containerRayCast(%start, %end, %masks, %obj));

if(!isObject(%col))
{
%client.centerPrint("\c5Look at a brick, dummy.", 2);
return;
}
messageClient(%client, '', "\c5BRICK POSITION\c6:" SPC %col.getPosition());
echo("BRICK POSITION:" SPC %col.getPosition());
}

Any help would be appreciated greatly.

7997
Add-Ons / Re: Path Camera Events [V.0.76]
« on: March 26, 2011, 02:12:46 PM »
Next is keybinds, lol.

But this is awesome enough, thanks lil

7998
Clan Discussion / Re: Ark Angels
« on: March 26, 2011, 07:13:12 AM »
Don't use the original UI icons for the hammer and wrench. They've been whited to look good in game.

7999
Gallery / Re: Arthur's Quest
« on: March 25, 2011, 10:11:36 PM »
I can top that
:D
=D
<3
D=
D:
^_^
;D
;3
=3
:3
xD
XD
=P
Done.                                             On-Topic: Nice build i like the concept,
                                                                      So i hope this takes off!  :cookieMonster:                                                                           
Go away

8000
Suggestions & Requests / Re: Pirate Cannon Boat
« on: March 25, 2011, 03:37:47 PM »
Damn jirue you should had asked for a giant pirate ship with stationary cannons on the side. Treynolds would had modeled that instead.
Probably not lol

Also, Jirue, I don't think this is the kind of boat for dem ridges. I'll try to explain in-game

8001
Suggestions & Requests / Re: Pirate Cannon Boat
« on: March 24, 2011, 09:37:43 PM »
Okay guys.


So apparently Jirue thinks that this...

...does not match the default boat style

I think he's just being overly perfectionist, but I would like to know what the community thinks.



Note: This picture is just a preview. The color will be fixed and I will add oarlocks. Also, I just realized that my player was still shrunken when I took this.

8002
Suggestions & Requests / Re: Vigulante Gamemode
« on: March 24, 2011, 06:45:13 PM »
You don't know what a vigilante is, nor can you spell it correctly


:/

8003
Modification Help / Re: Animation problems
« on: March 24, 2011, 06:43:06 PM »
Like... assign them all to the same thing, again? I don't understand how that would change anything..
It would help discern what exactly is the problem

8005
Just split the chocolate in half and share it :D
PREDICTABILITY IS A NO NO

8006
Clan Discussion / Re: {K} Krypt - yet another new OP theme
« on: March 24, 2011, 04:20:09 PM »
but what am i betting?
numbers

231323313231333231312313

See? I got plenty of those

8007
Gallery / Re: [VIDEO] When a Noob doesn't listen #2
« on: March 23, 2011, 06:06:06 PM »
That was awesome

8008
Gallery / Re: Uploading Images for your Gallery Threads.
« on: March 23, 2011, 05:58:50 PM »
Inb4Spook/Burple

8009
Faces, Decals, Prints / Re: New Letter Prints: Blockland Logo (Impact)
« on: March 23, 2011, 05:58:08 PM »
Letters need to be bigger on the bricks.

So that it doesn't look like when you spell something out it has spaces in between each letter.

Pages: 1 ... 529 530 531 532 533 [534] 535 536 537 538 539 ... 722