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.


Topics - YoshiDude

Pages: 1 [2]
16
Modification Help / I'm having problems with my first weapon add-on...
« on: March 25, 2010, 04:54:05 AM »
Now, I know some people are going to start saying "gtfo newcigarette", but I just need some help with this script. I'm getting syntax errors in the following code:
Code: [Select]
function SORImage::onFire(%this,%obj,%slot)
{
if(%obj.getImageAmmo(%slot))
{
%projectile = SORProjectileA;
%spread = 0;
%shellcount = 1;

for(%shell=0; %shell<%shellcount; %shell++)
{
%vector = %obj.getMuzzleVector(%slot);
%objectVelocity = %obj.getVelocity();
%vector1 = VectorScale(%vector,(%projectile.muzzleVelocity));
%vector2 = VectorScale(%objectVelocity, %projectile.velInheritFactor);
%velocity = VectorAdd(%vector1,%vector2);
%x = (getRandom() - 0.5) * 10 * 3.1415926 * %spread;
%y = (getRandom() - 0.5) * 10 * 3.1415926 * %spread;
%z = (getRandom() - 0.5) * 10 * 3.1415926 * %spread;
%mat = MatrixCreateFromEuler(%x @ " " @ %y @ " " @ %z);
%velocity = MatrixMulVector(%mat, %velocity);

%p = new (%this.projectileType)()
{
dataBlock = %projectile;
initialVelocity = %velocity;
initialPosition = %obj.getMuzzlePoint(%slot);
originPoint = %obj.getMuzzlePoint(%slot);
sourceObject = %obj;
sourceSlot = %slot;
client = %obj.client;
serverPlay3D(SORShot1Sound, %obj.getMuzzlePoint(%slot));
};
MissionCleanup.add(%p);
}
return %p;
}
else
{
%projectile = SORProjectileB;
%spread = 0.010;
%shellcount = 8;

for(%sh=0; %sh<%shellcount; %sh++)
{
%vector = %obj.getMuzzleVector(%slot);
%objectVelocity = %obj.getVelocity();
%vector1 = VectorScale(%vector,%projectile.muzzleVelocity);
%vector2 = VectorScale(%objectVelocity, %projectile.velInheritFactor);
%velocity = VectorAdd(%vector1,%vector2);
%x = (getRandom() - 0.5) * 10 * 3.1415926 * %spread;
%y = (getRandom() - 0.5) * 10 * 3.1415926 * %spread;
%z = (getRandom() - 0.5) * 10 * 3.1415926 * %spread;
%mat = MatrixCreateFromEuler(%x @ " " @ %y @ " " @ %z);
%velocity = MatrixMulVector(%mat, %velocity);

%p = new (%this.projectileType)()
{
dataBlock = %projectile;
initialVelocity = %velocity;
initialPosition = %obj.getMuzzlePoint(%slot);
originPoint = %obj.getMuzzlePoint(%slot);
sourceObject = %obj;
sourceSlot = %slot;
client = %obj.client;
if %sh=1 {
serverPlay3D(SORShot2Sound, %obj.getMuzzlePoint(%slot));
};
};
MissionCleanup.add(%p);
}
return %p;
}
}

It's on the first serverPlay3D. Any ideas? I'm not really sure what to do...
And yeah, I know it's an ASKR edit... Sorry for not knowing this language.

17
Gallery / Xbox 360 controller support
« on: January 25, 2010, 06:50:24 AM »
I made it with GlovePIE. It's pretty good for a first release of something, I guess... I didn't include any screenshots or videos for obvious reasons. It'd be hard to demonstrate that this works even over video. Just trust me and try it out yourself.

After looking at the random copyright I added, don't say I'm not Wuffie. You don't know that as a fact. I am Wuffie. I changed the username I go by after I made this YoshiDude account.

GlovePIE download:
http://glovepie.org/GlovePIEWithEmotiv043.zip

.PIE file download:
http://www.mediafire.com/?mmgnume3zny

MOST controls are said in the .PIE file, but I was too lazy to add:
LB + RB is the modifier for the control pad, Y, and X. When you hold it down, Y is for switching from first person to third person and back, and X is for spraycan. Control pad left and right is rotating and up/down is vertical movement for bricks.

I also forgot: When you're in menus, use the right stick to move the mouse and RT to click.

18
Help / I need help with odd lag.
« on: January 24, 2010, 06:16:04 AM »
Okay, so I'm the type of guy who goes on a bunch of different messengers and crap while playing games. The problem with Blockland is that when I bring the MAIN game window back into focus (not the console), it lags for about 5 seconds before it can work again. It's really annoying and I can't figure out what's causing it. Nothing appears on the console when this happens, either. I have Vista 64-bit OS with a Pentium Dual CPU T3200 @ 2GHz processor. I've checked if there was any CPU usage changes when the freeze happens. Nothing. Anyone know what's going on?

19
It's probably not a modem problem. I haven't changed anything in the server options either. I'd really appreciate help.

20
Help / I am having problems porting forward.
« on: July 07, 2009, 09:39:13 PM »
My modem is a Westell VersaLink, model 327W. When I connect to my IP to change the settings, the format of the settings is oddly different. However, I managed to create a setting or whatever, so I could do it. I followed all of the steps, but all of the servers I start are always dead in ping. Could someone help me, please?

Pages: 1 [2]