1
Off Topic / Re: Ask Caribou ANYTHING!
« on: August 28, 2014, 03:52:50 PM »
How Donald Duck are the police?
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.
package glowstickPackage
{
function Armor::onCollision(%this, %obj, %col, %a, %b, %c, %d, %e, %f)
{
if(%col.dataBlock $= "SmokeGrenadeItem" && %col.canPickup)
{
for(%i=0;%i<%this.maxTools;%i++)
{
%item = %obj.tool[%i];
if(%item $= 0 || %item $= "")
{
%freeSlot = 1;
break;
}
}
if(%freeSlot)
{
%obj.pickup(%col);
return;
}
}
Parent::onCollision(%this, %obj, %col, %a, %b, %c, %d, %e, %f);
}
};
activatePackage(glowstickPackage);
function glowstickImage::onCharge(%this, %obj, %slot)
{
%obj.playthread(2, spearReady);
%obj.lastHESlot = %obj.currTool;
}
function glowstickImage::onAbortCharge(%this, %obj, %slot)
{
%obj.playthread(2, root);
}
function glowstickProjectile::onCollision(%this,%obj,%col,%fade,%pos,%normal)
{
serverPlay3D(glowstickBounceSound,%obj.getTransform());
}
function glowstickImage::onFire(%this, %obj, %slot)
{
%obj.playthread(2, spearThrow);
Parent::OnFire(%this, %obj, %slot);
%currSlot = %obj.lastHESlot;
%obj.tool[%currSlot] = 0;
%obj.weaponCount--;
messageClient(%obj.client,'MsgItemPickup','',%currSlot,0);
serverCmdUnUseTool(%obj.client);
}
function glowstickImage::onDone(%this,%obj,%slot)
{
%obj.unMountImage(%slot);
if you can get me a zip of all the sounds in wav form
I can make you a script that will turn them into /commands
name the files what you want the command to be (medic.wav will be /medic and overwrite other /medic commands)
1/10 please.Okay, but i have some ideas to get it better:
I think this is the right place for it. I'm not sure.