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 - Johnny Blockhead

Pages: 1 2 [3] 4 5 6 7 8 ... 285
31
Thanks! That works like a charm. I was able to figure out transparency, too. I just used this tutorial:
https://www.youtube.com/watch?v=SrZe0B0ra0U
It makes my model look like stuff now, so I'm going to have to go back and change something.

Edit: To clarify, the actual texture is transparent too.

32
Modification Help / Trouble with transparent textures and triggers
« on: May 14, 2016, 11:40:46 AM »
How exactly do you create a transparent texture on a staticshape .dts? If it counts for anything I'm using Port's .dts exporter. I have an orange-y material right now but it'd be better if it was 50% transparent.



I'm also having trouble detecting when someone enters the sphere. It's awkward because triggers can only be square, as far as I know. I'd still be fine with a square though, but the trigger isn't even going in the right place. I tracked the edges of the trigger with orange/blue colors, and the red brick is the origin of the staticshape and the trigger.




The problem is that instead of the origin (where the player stands when they place it) being in the center of the trigger, it's at the edge. Is there an easier way to make these triggers, or just a way to center the trigger? Can I somehow visualize the trigger?

Code:
if(isObject(%client.healZone)){
   %client.healZone.delete();
   %client.healZoneTrigger.delete();
}

%client.healZone = new StaticShape(%client.name @ "HealZone")
{
       position = %client.player.getHackPosition();
       rotation = %client.player.rotation;
   scale = "1 1 1";
      dataBlock = "HealShield";
   canSetIFLs = "0";
};
missionCleanup.add(%client.healZone);

%t = new Trigger(%client.name @ "HealZoneTrigger")
{
   datablock = HealZoneTrigger;
   polyhedron = "0 0 0 1 0 0 0 -1 0 0 0 1"; //shape
   position = %client.player.getHackPosition();
   rotation = %client.player.rotation;
};
missionCleanup.add(%t);
%client.healZoneTrigger = %t;
//%t.setTransform(%client.player.getHackPosition());
%t.setScale("6 6 6");

schedule(60000, 0, eval, %client.healZone @ ".delete();");
schedule(60000, 0, eval, %client.healZoneTrigger @ ".delete();");

Datablocks:
datablock StaticShapeData(HealShield)
{
   shapeFile = "./shield.dts";
};

datablock TriggerData(HealZoneTrigger)
{
    tickPeriodMS = 100;
};
function HealZoneTrigger::onEnterTrigger(%this, %trigger, %obj)
{
    talk("You entered the zone!");
    %obj.client.centerPrint("\c5You're in the zone!");
}
function HealZoneTrigger::onLeaveTrigger(%this, %trigger, %obj)
{
   talk("You left the zone!");
    %obj.client.centerPrint("");
}

33
General Discussion / Re: Boss Battles!
« on: May 08, 2016, 04:31:32 PM »
Just curious, the scientist's shield dome is a staticshape right?

34
Modification Help / Hammer edit always spawns emitter?
« on: April 03, 2016, 02:52:59 PM »
Sorry if this is a nooby question, haven't done weapons in Blockland or even coded for it at all for some time.
I'm trying to make an edit of the hammer item, but white. Whenever I swing the hammer, it always spawns the hit emitter even if I haven't hit anything. How do I stop this? Also, it won't make any sounds.

if(!isObject(SpaceAxeItem))
{
   datablock ItemData (SpaceAxeItem : HammerItem)
   {
      uiName         = "Space Axe";
      image         = SpaceAxeImage;
      canDrop         = true;

      doColorShift   = true;
      colorShiftColor = "0.9 0.9 0.9 1";
   };

   datablock ShapeBaseImageData(SpaceAxeImage : HammerImage)
   {

      item         = SpaceAxeItem;
      showBricks = false;
      doColorShift   = true;
      colorShiftColor = "0.9 0.9 0.9 1";
   };
}

//Functions
function SpaceAxeImage::onPreFire(%this, %obj, %slot)
{
   %obj.playthread(2, armAttack);
}

function SpaceAxeImage::onStopFire(%this, %obj, %slot)
{   
   %obj.playthread(2, root);
}

function SpaceAxeImage::onHitObject(%this, %obj, %slot, %col, %pos, %normal)
{
   talk("This doesn't work :(. Can anyone figure out why? I think this only works for raycasts or something, right?");
   parent::onHitObject(%this, %obj, %slot, %col, %pos, %normal);
}

35
hi im badspotte the ownr of blokland

36
Off Topic / Political Compass Thread v1488
« on: March 25, 2016, 01:13:28 AM »
politicalcompass.org/test
The political compass is a online test that, once taken, summarizes your standing in the political field. Take it!
(at this point there's no reason to make these threads, you guys are all commie green bastards)

mine:


37
Off Topic / Re: Post real life pictures of yourself.
« on: March 13, 2016, 04:48:49 PM »
except like many have
carolcat might have a bigger richard than you

38
Off Topic / Re: Post real life pictures of yourself.
« on: March 13, 2016, 04:45:31 PM »
uh like only 4 pages back..
you can never tell, dude...
you can never tell...

39
Off Topic / Re: Post real life pictures of yourself.
« on: March 13, 2016, 04:40:11 PM »
cant wait to start my therapy. cant believe someone actually mistook me for a girl from page 7858
it's my personal theory that a single female has never posted in this thread
my advice is to stay away from nooses

40
Off Topic / Re: Post real life pictures of yourself.
« on: March 12, 2016, 10:53:07 PM »
you might also want to lift and get a haircut
boom, normalcigarette life

41
hmm....



any relation?

42
Modification Help / Re: Block-Out Modification Topic (Fallout items)
« on: March 12, 2016, 07:37:40 PM »
Did you notice Flaming asking for donations? I'm not even asking smh...

Please Consider Donating Below





nice

honestly OP this is too big of a project for you to handle, it looks like you need to learn some more stuff.
i doubt this project will see fruition.

edit: take some of this back, hopped on blockland for the first time in a while and their build seems to be very nice. maybe there'll be some lacking in the add-ons department

43
Off Topic / Re: Oi, tis my birthday.
« on: February 18, 2016, 10:30:32 PM »
18 on your profile?

44
Off Topic / Re: Post real life pictures of yourself.
« on: February 17, 2016, 06:41:04 PM »
for the love of god please cut your hair

45
Off Topic / Re: Which 2016 presidential candidate would you vote for?
« on: February 17, 2016, 02:21:00 AM »
http://www.cnn.com/2015/11/20/opinions/obeidallah-Annoying Orange-anti-muslim/
doesn't say stuff about deporting people
:DDDD
ok seriously im going to loving sleep i'll do some bs tomorrow

Pages: 1 2 [3] 4 5 6 7 8 ... 285