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

Pages: 1 2 3 4 [5] 6 7 8 9 10 ... 13
61
Modification Help / Making a brick invisible.
« on: November 12, 2007, 11:30:41 AM »
Is there a colour that sets the brick invisible, I done %brick.setColor(-1); it worked but gives a console error and any colour that doesn't exist just starts at 0 again and gives a console error.

62
Suggestions & Requests / Blaster
« on: November 11, 2007, 01:05:29 PM »


Flatshade the orange bit and then make it so it inherits the current colour of your spray can, Like the ski's.

63
Modification Help / TAB not working.
« on: November 11, 2007, 12:55:21 PM »
Code: [Select]
function servercmdgetCubeTriggerList(%client){
commandtoclient(%client,'updateCubeGUI',"CubeTriggerList","listClear");
for(%i =0; %i<%client.triggerCount; %i++){
%tag = "Trigger" SPC %i;
commandtoclient(%client,'updateCubeGUI',"CubeTriggerList","listRow",%client,%tag TAB %client.trigger[%i+1].maxCubes);
}
}

Code: [Select]
function servercmdgetCubeTriggerList(%client){
commandtoclient(%client,'updateCubeGUI',"CubeTriggerList","listClear");
for(%i =0; %i<%client.triggerCount; %i++){
%tag = "Trigger" SPC %i %tag TAB %client.trigger[%i+1].maxCubes; commandtoclient(%client,'updateCubeGUI',"CubeTriggerList","listRow",%client,%tag);
}
}

The bit after TAB doesn't show up in the gui.

64
Modification Help / Apply impulse in the direction that an object hits it.
« on: November 11, 2007, 07:18:23 AM »
Code: [Select]
package push{
function Armor::onCollision(%this, %obj, %col, %thing, %other){
if(%col.getDatablock().getName() $= "WCubeVehicle"){
%start = %obj.getEyePoint();
%end = vectorAdd(vectorScale(vectorNormalize(%obj.getEyeVector()), 5), %start);
%vehicle = ContainerRayCast(%start, %end, $TypeMasks::VehicleObjectType);
if(%vehicle){
if(%vehicle.getDatablock().getName() $= "WCubeVehicle"){
echo(%obj.getVelocity());
%col.setVelocity(%obj.getVelocity());
}
}
}
parent::OnCollision(%this, %obj, %col, %thing, %other);
}
};
activatePackage(push);

I'm trying to make it so when you walk into the weighted companion cube you push it in direction you're trying to walk but that doesn't want to let you push it.

The raycast is there to make it so you can only push it if you're facing it.

65
Modification Help / Getting the killer of a bot.
« on: November 08, 2007, 12:54:58 PM »
I've tried several ways, and none of them have worked so now i'm here asking you guys for help again.

I've tried:
  • EnemyAI::OnDeath();
    • EnemyAi's the player datablock I made for the bots.
    • It says unkown command on death, Knowing me I've probably raped it somehow.
  • ProjectileData::Damage()
    • Then running a schedule like 100 milliseconds after to check wether you've killed the bot, that works but I couldn't get the killer from it.

66
Suggestions & Requests / Heroes decals.
« on: November 07, 2007, 06:10:10 PM »
Like the mythbusters ones, I want to be Sylar D=

67
Forum Games / Monsters/Bad guys
« on: November 07, 2007, 01:59:59 PM »
Yar well I need monster avatars so post pictures of monsters/bad guys made in-game with your blockland of character.

Rules:

1) Don't submit stuff other people have already done.
2) No: creepbears, Gay pirates etc etc...
3) Must use default Decals.
4) If you use custom colours please give me the colour code.

68
Modification Help / Weapon screwing up direct damage.
« on: November 07, 2007, 01:51:55 PM »
Code: [Select]
datablock ShapeBaseImageData(WoodenSwordImage : swordImage){
item = WoodenSwordItem;
projectile = WoodenSwordProjectile;
doColorShift = true;
colorShiftColor = "0.392 0.196 0.000 1.000";
};

datablock ItemData(WoodenSwordItem : swordItem){
   iconName = "./ItemIcons/sword";
   doColorShift = true;
   colorShiftColor = WoodenSwordImage.colorShift;
   image = WoodenSwordImage;
};

datablock ProjectileData(WoodenSwordProjectile : swordProjectile){
   directDamage        = 10;
};

function WoodenSwordImage::onPreFire(%this, %obj, %slot)
{
   %obj.playthread(2, armattack);
}

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

It screws up Melle damage and says bad stuff in the console.

Quote
base/server/scripts/allgamescripts.cs (7842): Register Object failed for object (null) of class Projectile.

Set::Add: Object "0" doesn't exist.

However, if i exec the file again it gets rid of the console error.

69
Modification Help / Adding AI's to minigames.
« on: November 07, 2007, 11:54:51 AM »
How would you add an AiPlayer to a mingame, I tried AddMember, no luck.

70
Modification Help / Preventing AIPlayers from attack your feet
« on: November 06, 2007, 03:09:05 PM »
When you use %bot.setAimObject(%player); It makes them aim at your feet, is there a way to make them aim at your body?

71
Modification Help / Item not picking up.
« on: November 05, 2007, 11:56:04 AM »
Code: [Select]
function Armor::onCollision(%this, %obj, %col, %thing, %other){
if(%col.dataBlock $= "Castuffem"){
%ColWorth = %Col.getShapeName();
%obj.client.cash = %obj.client.cash+%ColWorth;
%col.delete();
CenterPrint(%obj.client,"<just:left> < " @ $Currency @ %obj.client.cash @ " >",2);
} else if(%col.onSale){
if(%col.seller !$= %obj.client){
commandtoclient(%obj.client,'centerprint',"\c6This item is on sale for \c0" @ %col.getShapeName() @ ". \n If you'd like to buy it please type /buy.",4,4,5000);
%obj.client.buyItem = %col;
return;
}
}
Parent::onCollision(%this, %obj, %col, %thing, %others);
}

function servercmdSell(%client, %amount){
if(isObject(%client.wrenchBrick.item)){
%item = %client.wrenchBrick.item;
%item.setShapeName(($CurrencyFront ? ($Currency @ %amount) : (%amount @ $currency)));
%item.price = %amount;
%item.seller = %client;
%item.onSale = 1;
}
}

function serverCmdBuy(%client){
if(isObject(%client.buyItem)){
%item = %client.buyItem;
%a = %item.getDatablock();
if(%client.cash >= %item.price){
if(%client.player.tool[0] $= "0"){ %slot = 0; } else if(%client.player.tool[1] $= "0"){ %slot = 1; } else if(%client.player.tool[2] $= "0"){ %slot = 2; } else if(%client.player.tool[3] $= "0"){ %slot = 3; } else if(%client.player.tool[4] $= "0"){ %slot = 4; }
if(%slot $= ""){ messageclient(%client,"","\c6You have no room for this."); return; }
%client.cash = %client.cash-%item.price;
%client.player.tool[%slot] = nametoID(%a);
messageClient(%client, 'MsgItemPickup', '', %slot, nametoID(%a));
if(isObject(%item.seller.player)){
%item.seller.cash = %item.seller.cash+%item.price;
}
}
}
}

72
Modification Help / Objects not loading.
« on: November 02, 2007, 03:58:34 PM »
Code: [Select]
function loadFRZ(%name, %client){
%file=new fileObject();
%file.openForRead("Add-Ons/FRZ/" @ %Name @ ".FRZ");
%aiCount = 0;
%objCount = 0;
while(!%file.isEOF()){
%line=%file.readLine();
switch$(firstWord(%line)){
case "OBJ":
%objCount++;
%obj[%objCount].obj = restWords(%line);
case "POS":
%obj[%objCount].pos = restWords(%line);
case "AI":
%obj[%objCount].ai = restWords(%line);
}
echo(%obj[%objCount].obj);
}
}

It's trying to load this:

Code: [Select]
OBJ Add-Ons/shapes/SniperRifle.dts
POS 21.3679 -124.867 288.332 1 0 0 0
OBJ base/data/shapes/Hammer.dts
POS 16.5396 -127.129 288.333 1 0 0 0
OBJ PlayerNoJet
POS 12.7424 -101.98 286.332 1 0 0 0
AI 1

73
Is there a way to spawn a static model through script without making a new datablock?

I've tried:

Code: [Select]
%i = new StaticShape(){
datablock = gunItem;
}

Didn't work.

and this:

Code: [Select]
%i = new Item(){
datablock = gunItem;
}
%i.collideable = 1;
%i.static = 1;

neither did that.

74
Gallery / Frozen in time.
« on: November 01, 2007, 03:36:41 PM »
Not really a build, just something I done, took me about and hour to position the bots it'd be better if I knew how to make particles come out the gun without making it fired.




75
Modification Help / Applying an object's colorShift while it's in a gui?
« on: October 29, 2007, 01:45:05 PM »
Is there a way to apply an items ColorShift while it's in a gui?

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