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

Pages: 1 2 [3]
31
Add-Ons / DestructoZ
« on: April 11, 2009, 07:02:41 PM »
DestructoZ
A gun used to fake kill bricks.

Description
This was created to be just like Pandan's DissasembleZ but with range.

Screenshots

Download
Tool_DestructoZ.zip (Last Updated: Fri Apr 17, 2009 5:28 pm)

Installation
Put Tool_DestructoZ.zip into the Add-Ons folder in your Blockland folder.

Click Here to view this file on the RTB Download Manager

32
Modification Help / Syntax Error Destructo Gun
« on: April 11, 2009, 04:18:24 PM »
I am making a Destructo gun and i am having a problem with the code

Code: [Select]
Loading Add-On: Tool_DestructoGun (CRC:778720298)
Add-Ons/Tool_DestructoGun/server.cs Line: 17 - Syntax error.
>>> Some error context, with ## on sides of error halt:
   filename    = "./HL2Shot1.wav";

   description = AudioClose3d;

   preload = true;

};

datablock AudioProfile(DestructobulletHitSound)

{

   filename    = "add-ons/Weapon_Gun/bulletHit.wav";

   description = AudioClose3d;

   preload = true;



//shell

datablock DebrisData(##e##structogunShellDebris)

{

^shapeFile = "add-ons/Weapon_Gun/gunShell.dts";

^lifetime = 2.0;

^minSpinSpeed = -400.0;

^maxSpinSpeed = 200.0;

^elasticity = 0.5;

^friction = 0.2;

^numBounces = 3;

^staticOnMaxBounce = true;

^snapOnMaxBounce = false;

^fade = true;
>>> Error report complete.

ADD-ON "Tool_DestructoGun" CONTAINS SYNTAX ERRORS
I original had it as destructogunshell but changed it when it said that was the error it then changed to the e.

33
Modification Help / New Tumble command
« on: April 04, 2009, 12:23:50 AM »
The tumble command changed from just a simple tumble(%col, 15000); to something entirly differnt i was trying to figure out how it worked on the skies but had no luck i was wondering if someone could point me n the right direction i am working on a taser.

34
Modification Help / Taser
« on: April 03, 2009, 10:23:55 PM »
I was having some trouble porting the old taser.

Code: [Select]
function taserProjectile::onCollision(%this,%obj,%col,%fade,%pos,%normal) 
{
if(%col.getclassname() $= "Player"){
if(!minigamecandamage(%obj, %col) || %col.taserned == 1){
echo("Cant damage or is taserned");
return;
}
if(%col.police == 1){
messageclient(%client,"","You cannot taser police officers.");
return;
}
%col.cantdie = 1;
%newvec = %col.getvelocity();
%newvec = VectorAdd(%vec, "8 8 8");
%col.setvelocity(%newvec);
tumble(%col, 15000);
%col.setwhiteout(1.2);
schedule(3500,0,"Throb",%col);
%col.playthread(2, armattack);
schedule(5000,0,"Detwitch",%col);
%col.taserned = 1;
schedule(4000,0,"Detaser",%col);
%col.undie = schedule(15000,0,"Undie",%col);
}
}

This is the part I am having trouble with i am trying to remove the code of the old RPG and it seems to not like it when i take out too much(in other words syntax error)

35
Add-Ons / Sandvich
« on: April 03, 2009, 09:54:44 PM »
Sandvich
A sandvich made for eating.

Description
A sandvich that can be used to heal or as a prop. Model made by Rotondo. I asked for permission to use model and it was granted.

Screenshots

Download
Item_Sandvich.zip (Last Updated: Fri Apr 03, 2009 5:54 pm)

Installation
Put Item_Sandvich.zip into the Add-Ons folder in your Blockland folder.

Click Here to view this file on the RTB Download Manager

36
Off Topic / Covered Wagon
« on: March 27, 2009, 11:41:35 PM »
Kaje the creator of the covered wagon has not posted since mid Febuary and i was wondering if i should post the covered wagon or not.

37
Modification Help / Collision Data
« on: March 26, 2009, 08:29:46 PM »
How would i add it to add damage and explosion look on collision.

Current Collision
Code: [Select]
function tripOver(%player)
{
   if(isObject(%player) && %player.getClassName() $= "Player")
   {
      %player.playAudio(0, MineExplosionSound);
      %player.setWhiteOut(0.25);
      %player.schedule(5*1000, playThread, 2, root);
      return;
   }
   error("Object not found, or object is not a player!");
}

38
Modification Help / 3rd person Model Messup
« on: March 25, 2009, 08:49:28 PM »
I have been working on a Landmine but when i look at it in thrid person the model is messed up but in first person it is fine. What would i do to fix this.

39
Modification Help / Add Sound To Heal
« on: March 20, 2009, 09:03:51 PM »
I was wondering how to add the sound of eating in when I "fire" the Hamburger. I already have the sound but how should i put it in the script.
Code: [Select]
//Hamburger.cs

datablock ParticleData(HamburgerHealParticle)
{
   dragCoefficient      = 5.0;
   gravityCoefficient   = -0.2;
   inheritedVelFactor   = 0.0;
   constantAcceleration = 0.0;
   lifetimeMS           = 1000;
   lifetimeVarianceMS   = 500;
   useInvAlpha          = false;
   textureName          = "./heal";
   colors[0]     = "1.0 1.0 1.0 1";
   colors[1]     = "1.0 1.0 1.0 1";
   colors[2]     = "0.0 0.0 0.0 0";
   sizes[0]      = 0.4;
   sizes[1]      = 0.6;
   sizes[2]      = 0.4;
   times[0]      = 0.0;
   times[1]      = 0.2;
   times[2]      = 1.0;
};

datablock ParticleEmitterData(HamburgerHealEmitter)
{
   ejectionPeriodMS = 35;
   periodVarianceMS = 0;
   ejectionVelocity = 0.5;
   ejectionOffset   = 1.0;
   velocityVariance = 0.49;
   thetaMin         = 0;
   thetaMax         = 120;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   particles = "HamburgerHealParticle";

   uiName = "Emote - Heal";
};

datablock ShapeBaseImageData(HamburgerHealImage)
{
shapeFile = "base/data/shapes/empty.dts";
emap = false;

mountPoint = $HeadSlot;

stateName[0] = "Ready";
stateTransitionOnTimeout[0] = "FireA";
stateTimeoutValue[0] = 0.01;

stateName[1] = "FireA";
stateTransitionOnTimeout[1] = "Done";
stateWaitForTimeout[1] = True;
stateTimeoutValue[1] = 0.350;
stateEmitter[1] = HamburgerHealEmitter;
stateEmitterTime[1] = 0.350;

stateName[2] = "Done";
stateScript[2] = "onDone";
};
function HamburgerHealImage::onDone(%this,%obj,%slot)
{
%obj.unMountImage(%slot);
}

datablock ItemData(HamburgerItem)
{
category = "Weapon";  // Mission editor category
className = "Weapon"; // For inventory system

// Basic Item Properties
shapeFile = "./Hamburger.dts";
rotate = false;
mass = 1;
density = 0.2;
elasticity = 0.2;
friction = 0.6;
emap = true;

//gui stuff
uiName = "Hamburger";
iconName = "./Icon_Hamburger";
doColorShift = false;

// Dynamic properties defined by the scripts
image = HamburgerImage;
canDrop = true;
};

datablock ShapeBaseImageData(HamburgerImage)
{
   // Basic Item properties
   shapeFile = "./Hamburger.dts";
   emap = true;

   // Specify mount point & offset for 3rd person, and eye offset
   // for first person rendering.
   mountPoint = 0;
   offset = "-0.11 0.3 0.1";
   eyeOffset = 0; //"0.7 1.2 -0.5";
   rotation = eulerToMatrix( "-90 90 0" );

   className = "WeaponImage";
   item = HamburgerItem;

   //raise your arm up or not
   armReady = false;

   doColorShift = false;

   // Initial start up state
stateName[0]                     = "Ready";
stateTransitionOnTriggerDown[0]  = "Fire";
stateAllowImageChange[0]         = true;

stateName[1]                     = "Fire";
stateTransitionOnTimeout[1]      = "Ready";
stateAllowImageChange[1]         = true;
      stateScript[1]                   = "onFire";
stateTimeoutValue[1]    = 1;
};

function HamburgerImage::onFire(%this,%obj,%slot)
{
if(!isObject(%obj.client.minigame))
return;

for(%i=0;%i<5;%i++)
{
%toolDB = %obj.tool[%i];
if(%toolDB $= %this.item.getID())
{
%obj.setDamageLevel(0);
%obj.emote(HamburgerHealImage);
%obj.tool[%i] = 0;
%obj.weaponCount--;
messageClient(%obj.client,'MsgItemPickup','',%i,0);
serverCmdUnUseTool(%obj.client);
break;
}
}
}

package HamburgerPackage
{
function Armor::onCollision(%this, %obj, %col, %thing, %other)
{
if(%col.dataBlock $= "HamburgerItem" && isObject(%obj.client.minigame) && %col.pickupNow !$= 1)
{
if(!isObject(%col.spawnbrick))
{
if((%obj.getDamageLevel() >= 1) && %obj.client.minigame $= %col.minigame)
{
%obj.setDamageLevel(0);
%obj.emote(HamburgerHealImage);
%col.delete();
}
else
%col.pickupNow = 1;
return;
}
}
Parent::onCollision(%this, %obj, %col, %thing, %others);
}
};
activatePackage(HamburgerPackage);

40
Add-Ons / Hamburger
« on: March 20, 2009, 08:40:04 PM »
Hamburger
A hamburger used to heal.

Description
This is a hamburger that I made a while ago and decided that because people wanted it posted I would. It is just a normal hamburger. Post any questions or bugs you find.

V2 Includes:
Eating Sound
Use outside of minigames
Icon

Screenshots

Download
Item_Hamburger.zip (Last Updated: Sun Mar 22, 2009 6:03 pm)

Installation
Put Item_Hamburger.zip into the Add-Ons folder in your Blockland folder.

Click Here to view this file on the RTB Download Manager

41
Modification Help / CTF Flag Model
« on: March 19, 2009, 10:33:07 PM »
I created a script for flags like the ones in Halo. They use events for the scoring system. So I am not good at modeling so I was wondering if anyone could make a model of a flag. If you do make a model they should be red and blue also make them large enough so the fabric of the flag is going over your shoulder.

42
Modification Help / Remote Code
« on: March 19, 2009, 09:33:21 PM »
How would i set it so if you right click projectile is thrown yet stays then on right click it explodes. Code such as code like code used for Remote Bomb in v8.

43
Modification Help / Mount Point Issues
« on: March 18, 2009, 10:06:33 PM »
I am Having some problems with a old mdoel from RTB 1.045 and i can't model for stuff so i can't remake it and i was wondering if anyone had a idea of how to fix this without remaking it. (or you could remake it and post link).
Pic (don't mind color just didn't feel like changing it for now)

Pages: 1 2 [3]