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

Pages: 1 2 3 4 [5] 6 7 8 9 10 ... 13
61
Modification Help / Brick Buy Done
« on: July 22, 2013, 06:24:49 PM »
I want to prevent people from buying bricks from the B bricks menu. What function do I not parent?

62
Modification Help / Hide Brick Inventory [Solved]
« on: July 21, 2013, 08:59:06 AM »
I want to prevent the inventory gui from showing up when you cycle through its slots. I can find the command myself if someone tells me how to list all CommandToClient functions.

63
Modification Help / Check If Item Is Spawned On A Brick
« on: July 20, 2013, 09:07:01 AM »
Is there a function to check if an item is spawned on something? I need to differentiate between Ctrl+W dropped items and brick-mounted ones.

64
Modification Help / Prop Weapons?
« on: July 20, 2013, 05:32:36 AM »
I'm making an ammo script, but I'm not sure what to do about the reload animations. The bullets don't fire because it stops the onFire parent, but the gun'll still have smoke and everything. This is for default guns, but worse case, I may just code some simple alt guns that have everything the same except that they don't work w/o ammo.

65
Modification Help / Finding All Bricks With a Radius Search [Solved]
« on: July 18, 2013, 05:06:58 AM »
Code: [Select]
initContainerRadiusSearch(%startB,5,$TypeMasks::fxBrickObjectType);
%mats = containerSearchNext();
This only gives me the closest one.

66
Modification Help / Cannot Recognize the Color Black [Solved]
« on: July 18, 2013, 02:12:51 AM »
Code: [Select]
//get brick color
%brickRGBA = getColorIDTable(%brick.getColorId());
%r = getWord(%brickRGBA, 0);
%g = getWord(%brickRGBA, 1);
%b = getWord(%brickRGBA, 2);
//echo("brick rgb = " @ %r SPC %g SPC %b);
//echo("brick hsv " @ RGBtoHSV(%r,%g,%b));
%brickH = getWord(RGBtoHSV(%r,%g,%b), 0);

%brickRGB = %r SPC %g SPC %b;
%brickRGB = vectorNormalize(%brickRGB);

//get mat color
%matRGBA = %matColor;
%r = getWord(%matRGBA, 0);
%g = getWord(%matRGBA, 1);
%b = getWord(%matRGBA, 2);
//echo("mat rgb = " @ %r SPC %g SPC %b);
//echo("mat hsv " @ RGBtoHSV(%r,%g,%b));
%matH = getWord(RGBtoHSV(%r,%g,%b), 0);

%matRGB = %r SPC %g SPC %b;
%matRGB = vectorNormalize(%matRGB);

//compare
%hDiff = mAbs(%matH - %brickH);
if(%hDiff > 0.5)
// %hDiff = 1 - %hDiff;
if(%hDiff < 0)
%hDiff = vectorScale(%hDiff,-1);

//echo("hDiff = " @ %hDiff);
bottomPrint(%obj.client,"<font:impact:24><br><br><br><br><color:FFF200><just:right>hDiff = " @ %hDiff SPC "",1);

%obj.isBright=0;
if(%brickRGB $= "1 0 0" || %brickRGB $= "1 0 1" || %brickRGB $= "1 1 1" || %brickRGB $= "0 1 0" || %brickRGB $= "0 1 1" || %brickRGB $= "0 0 1" || %brickRGB $= "0 0 0")
{
echo("isBright");
%obj.isBright=1;
}
isBright only becomes 1 with colors like blue and green, but for black it just doesn't call it.

67
Modification Help / Force Avatar [Solved]
« on: July 10, 2013, 11:50:44 PM »
How do I prevent people form updating their avatar? I set everything up for when they first spawn (onAdd), but they can just update it back in Avatar Options.

68
Modification Help / onAdd not working? [N/A]
« on: July 10, 2013, 08:35:00 PM »
Code: [Select]
datablock PlayerData(PlayerCrafting : PlayerStandardArmor)
{
canJet = 0;
canCraft = 1;

uiName = "Crafting Player";
showEnergyBar = false;
};

package CraftAdd
{
function Armor::onAdd(%data,%obj)
{
parent::onAdd(%data,%obj);
if(%data.canCraft)
{
applyDefaultCharacterPrefs(%obj);
talk("found Crafting Player");
}
}
};activatePackage(CraftAdd);
The talk gets called, but the default character prefs part doesn't.

69
Gallery / Physics Jump Pre-Alpha
« on: June 17, 2013, 07:26:03 AM »



This shows something possible with the new Physics Framework I am working on.

70
Modification Help / Manually mount to a Vehicle?
« on: June 17, 2013, 03:39:17 AM »
Which functions are necessary to mount a player to a vehicle, without parenting onMount. Why? To avoid the onMount sound.

71
Off Topic / Xbox One
« on: June 13, 2013, 03:09:48 AM »
Do you like it? Do you like it... now.

72
Modification Help / Face Player onDeath
« on: June 11, 2013, 08:28:21 PM »
I have the euler rotations set up and everything, the only issue is that I can't figure out how to call it onDeath. onCollision and onDamage did not work for me. Maybe I used the incorrectly, I don't know. I need to find the killer and the killed for my rotational code to work.

73
Help / Default Smiley and Jacket Decals failing
« on: June 09, 2013, 07:52:26 PM »
I don't know why but these decals stop working after a while. It might be an add-on I have.

74
Add-Ons / Physics Death [Update 7/7/13]
« on: June 06, 2013, 06:00:19 AM »
Tired of the boring old death animation? Well here's a new jeep-like physics based one!

Features:
- New tilting so the player falls more naturally and doesn't clip through things.
- Jeep like physics that are much more reliable than tumble.
- Regular death animation is replaced with a new dramatic one.
- Velocity inheritance, so if you get shot with a shotgun you fly back the same.

Video

Download

75
Add-Ons / Action Melee [Updated 8/10/13]
« on: June 04, 2013, 05:22:09 PM »
Action Melee brings a much more visceral hand-to-hand combat experience to Blockland. It features four moves:



Punching (Click with the weapon equiped): It's a simple semi-alternating punch mechanic, but it does damage. Each swing aims for the torso area.



Air Tackling (punch at someone below you from a certain range): If you happen to be above your target, just look at them to highlight them in a pink square. Then just punch to dive down and kick them in the head! This attack does 100 Damage, so it won't kill heavy enemies in one go.


Neck Breaking (punch someone in the back): Sneak up on your enemy and kill them with a fancy neck snap. Similar to the Air Tackle, this neck snap can only be done on enemies who have 100hp or less.

Misc. Feature List
- Punches do 30 damage, same as the default gun.
- When hit, players flinch.
- You tilt with the arm you punch with.
- You bend forward when you punch.
- Your melee cannot be dropped.
- Custom punch sounds.
- Uses default animations, so no model issues.
- Uses both hands.
- Bots are excellent at killing you with this mod.

Update List
- Fixed being able to snap necks and such outside of minigame.
- Added Air Tackle Indicator when looking at an enemy and in range.
- Removed Weapon Stealing (probably temporarily).
- Made the script more efficient.
- Added special Fx when you deal the final blow to an enemy.
- Action Melee cannot be mounted while in a vehicle (to prevent animation glitches).
- Air Tackle is more efficient/easier to aim now.
- Punching now alternates hands semi-randomly (e.g. left, left, right, left, right, left, right, right, right).

Download

Pages: 1 2 3 4 [5] 6 7 8 9 10 ... 13