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

Pages: 1 2 3 4 5 [6] 7 8 9 10 11 ... 204
76
You just need to fix your variables I think. In spawnPlayer function, put crosshairTarget(%obj) instead and use %obj instead of %player. I've never seen dpawnPlayer with more than %this so maybe even use %this.player instead.

Onclientleavegame has undefined %player, use %client.player.

%client = %player.client in crosshairTarget function.

That should fix it

77
Creativity / Re: The new and improved 3D model topic!
« on: June 06, 2016, 08:00:38 PM »
More goblin goodness. Trying to add lots of possible outfit combinations. They'll be color-able too which is nice :D



78
Creativity / Re: The new and improved 3D model topic!
« on: June 06, 2016, 05:24:29 PM »
Yeah if you do plan to keep using sketchup: 1) draw in triangles, don't leave it up to the exporter or it'll make more than it needs a lot of the time 2) color everything you want to keep (this makes it easy to delete double faces as they will be grouped seperately in order to apply the material, 3) be sure to make components and groups if you plan on animating.

It's worth learning something else if you have the time, but if you don't (like me) just do whatever works for you

79
Creativity / Re: The new and improved 3D model topic!
« on: June 06, 2016, 03:01:40 PM »
If you prefer sketchup, you can export to obj format, import to blender and then export to dts. That way you don't need to learn a new program for modeling, just the import / export process

80
Creativity / Re: The new and improved 3D model topic!
« on: June 06, 2016, 01:48:23 PM »
Friendly neighborhood goblin

81
Creativity / Re: The new and improved 3D model topic!
« on: June 05, 2016, 09:35:39 PM »
^
Maybe try removing the ability for the head to turn?
Are you kidding? That's awesome

82
Creativity / Re: The new and improved 3D model topic!
« on: June 05, 2016, 05:58:00 AM »
Moving the whole model up and down during the run animation is something very easy / subtle but it'll take it to a whole new level! Just my 2c

Edit: in fact, looking at it again it'd be better to rotate the whole model so the head is facing slightly up when it goes on its hind legs and come back down with more force when it lands on the front legs. Looking good though

83
Creativity / Re: The new and improved 3D model topic!
« on: June 04, 2016, 08:49:16 AM »
Can I make dog a playertype? :cookieMonster:

84
Sorry, I should've thought of that


85
I'm no graphic artist but I figured I'd give my BL project a plug :cookieMonster:


86
Modification Help / Re: Strange Packaging Bug
« on: June 01, 2016, 07:23:22 PM »
Yep, thank you!

87
General Discussion / Re: Hair? Or no hair?
« on: June 01, 2016, 07:02:57 PM »
Oh my, the timing of this thread has made me giddy..

88
Modification Help / Re: Strange Packaging Bug
« on: June 01, 2016, 11:13:46 AM »
Would this mean I have to consolidate all of the armor::onTrigger packages or just that one is not working properly?

89
Modification Help / [Solved] Strange Packaging Bug
« on: June 01, 2016, 10:38:56 AM »
I'm encountering a bug where a package is activated during exec and then in-game the code inside the package doesn't work. Then when I deActivatePackage and activatePackage again through the console, it works perfectly.

Anyone run into this before?

Here is the package:
Code: [Select]
package FoodMenu
{
      function Armor::onTrigger(%this, %player, %slot, %val)
      {
         if(isObject(%player.getMountedImage(0)) && %player.getMountedImage(0).getName()$="rawFoodBagImage")
{
   if(%slot == 4 && %val)
   {
      if(%player.client.maxRawFoodOptions $= 1)
 return;

      if(%player.client.currRawFoodSelection $= %player.client.lastRawFoodItem)
      {
    for(%i = 1; 21 > %i; %i++)
                  {
           if(%player.client.rawFood[%i] != 0)
           {
%player.client.currRawFoodSelection = %i;
break;
           }
 }
 %player.playThread(0,plant);
 updateRawFoodUI(%player.client);
 return;
      }

      else
      {
         %player.client.currRawFoodSelection = nextAvailableRawFoodSelection(%player.client);
         %player.playThread(0,plant);
 updateRawFoodUI(%player.client);
         return;
      }
   }
   updateRawFoodUI(%player.client);
}
else Parent::onTrigger(%this, %player, %slot, %val);
      }
};
activatePackage(FoodMenu);

And the function called within:
Code: [Select]
function updateRawFoodUI(%client)
{
   %client.maxRawFoodOptions = getMaxRawFoodOptions(%client);

   %firstTime = 1;
   %foodCount = 0;

   for(%i = %client.currRawFoodSelection; 21 > %i; %i++) //cycle through the player owned foods to create the list
   {
      if(%firstTime)
      {
         %list = "\c6" @ getRawFoodItem(%i) SPC "x" SPC %client.rawFood[%i] @ "\n";
         %foodCount++;
%firstTime = 0;
continue;
      }

      if(%foodCount $= 3) //stop once we have 3 items for the current list
         break;

      %foodItem = %client.rawFood[%i];

      if(%foodItem !$= 0) //if the player has the food, add it to the list
      {
         %list = %list @ "\c7" @ getRawFoodItem(%i) SPC "x" SPC %client.rawFood[%i] @ "\n";
         %foodCount++;
%client.lastRawFoodItem = %i;
      }
   }

   if(%client.maxRawFoodOptions == 1 && %foodCount == 1) //if they have 1 item, don't show the scroll option
   {
      commandToClient(%client,'centerPrint',"<font:impact:64>\c3Raw Food\n<font:impact:32>\c6" @ %list,-1);
      return;
   }

   if(%foodCount $= 0 || %client.maxRawFoodOptions == 0) //no raw food
      commandToClient(%client,'centerPrint',"<font:impact:64>\c3Raw Food\n<font:impact:32>\n\c6You have no raw food packed in your bag.",-1);

   if(%foodCount $= 1 && %client.maxRawFoodOptions > 1) //they're at the end of the list but have more options in the list
      commandToClient(%client,'centerPrint',"<font:impact:64>\c3Raw Food\n<font:impact:32>\c6" @ %list @ "\n\n\c0\\/ \c6Right click to scroll",-1);

   if(%foodCount $= 2) //special case to make sure the scroll UI isn't higher up when there's less options
      commandToClient(%client,'centerPrint',"<font:impact:64>\c3Raw Food\n<font:impact:32>\c6" @ %list @ "\n\c0\\/ \c6Right click to scroll",-1);

   if(%foodCount $= 3) //standard UI
      commandToClient(%client,'centerPrint',"<font:impact:64>\c3Raw Food\n<font:impact:32>\c6" @ %list @ "\c0\\/ \c6Right click to scroll",-1);      
}

90
General Discussion / Re: POLL: BL RPG Quest & Bosses
« on: June 01, 2016, 10:13:41 AM »
I wont do a video but here is a picture of a boss from early-game currently in-dev. Click for Spoiler

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