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 - Cowboy Dude

Pages: 1 2 3 4 5 [6] 7 8 9 10 11 ... 32
76
Modification Help / Weird bot item mounting onto player [SOLVED]
« on: May 21, 2018, 03:28:55 AM »
So I'm trying to create my first ever bot item (The Infinity Gauntlet) and unsurprisingly I'm running into a lot of issues. But I wanna take things one step at a time and just want to know how to fix this strange item mounting that changes depending on where my player is looking. I am really not much of a coder and have tried to get help on the issue.



Possibly Relevant Pieces of Code:
Code: [Select]
datablock PlayerData(InfinityGauntletArmor : PlayerStandardArmor) {
shapeFile = "./Shapes/Infinity Gauntlet.dts";

uiName = "";

boundingBox = vectorScale("1 1 1", 4);
crouchBoundingBox = vectorScale("1 1 1", 4);

keepWhenDead = 1;
};

datablock ItemData(InfinityGauntletItem : HammerItem) {
shapeFile = "./Shapes/Infinity Gauntlet.dts";
uiName = "Infinity Gauntlet";

doColorShift = false;

botDatablock = InfinityGauntletBot;
iconName = "./icon_ShortSword";
image = InfinityGauntlet_Image;
};
function equipGauntlet(%pl)
{
if (!isObject(%pl.InfinityGauntletBot))
{
%pl.InfinityGauntletBot  = new AIPlayer()
{
datablock = InfinityGauntletArmor;
player = %pl;
//class = %sword;
};
%pl.InfinityGauntletBot.kill();
%pl.InfinityGauntletBot.setScale(%pl.getScale());
}
if (!isObject(%pl.emptyBot))
{
%pl.emptyBot = new AIPlayer()
{
datablock = InfinityGauntletArmor;
};
%pl.emptyBot.kill();
%pl.emptyBot.hideNode("ALL");
%pl.InfinityGauntletBot.setScale(%pl.getScale());
}
%pl.mountObject(%pl.emptyBot, 1);
%pl.emptyBot.mountObject(%pl.InfinityGauntletBot, 8);
%pl.playThread(1, armReadyLeft);
}
function InfinityGauntlet_Image::onMount(%this, %obj, %slot)
{
equipGauntlet(%obj);
%obj.triggerDown = 0;
}


SOLVED: I guess I didn't develop this weapon enough. I needed to create a proper unequip function to delete the bot properly as it only spawns at the appropriate orientation as it's first spawned and then reoriented every subsequent time I re-equip it (as the bot is not deleted). Here's the code I needed in case anyone ever has to deal with this:
Code: [Select]
function InfinityGauntlet_Image::onUnMount(%this, %obj, %slot)
{
if(%obj.getMountedObject(0).getDatablock() == InfinityGauntletArmor.getID() && %obj.getMountedObject(0).getMountedObject(0).getDatablock() == InfinityGauntletArmor.getID())
{
%obj.getMountedObject(0).getMountedObject(0).delete();
%obj.getMountedObject(0).delete();
}
%obj.client.applyBodyParts();
%obj.client.applyBodyColors();
}

78
Suggestions & Requests / Re: the infinity gauntlet
« on: May 10, 2018, 02:59:14 AM »
Click to view in P3D

79
Add-Ons / Re: [SWCCC] Hatmod - Star Wars Alien Hats
« on: May 09, 2018, 12:27:55 PM »
Are there pictures? Because I can't see anything lmao
There are pictures. Idk how you can't see them they're hosted by imgur if that helps.

80
Suggestions & Requests / Re: the infinity gauntlet
« on: May 09, 2018, 11:51:35 AM »
Hold my beer.

81
Clan Discussion / Re: Star Wars Content Creation Clan [Hoth]
« on: May 08, 2018, 11:41:14 PM »
Just pushed out another add-on. Check it out! https://forum.blockland.us/index.php?topic=318797.0

82
Add-Ons / [SWCCC] Hatmod - Star Wars Alien Hats
« on: May 08, 2018, 11:40:17 PM »



Requires Hatmod and Script_Hatmod_NodeHiding


Includes six new alien hats inspired by Star Wars!
(Left-to-right) Aqualish, Bith, Duros, Ithorian, Gran, and Rodian

Credits
Gran and Bith by me
Aqualish, Duros, and Ithorian commissioned by me. Made by Filipe.
Rodian provided by Filipe (Never before released)
DOWNLOAD



---- CLICK BELOW AND JOIN TODAY ----


83
Add-Ons / Re: [HatMod Script] Node Hiding + Player Hats
« on: May 08, 2018, 11:10:52 PM »
This is some impeccable timing I'm about to release a hatmod pack that needs this!

84
Games / Re: is SW battlefront 2 (EA, not the old one) worth $24?
« on: May 07, 2018, 11:11:39 AM »
No it's not worth it and I say this as a huge ass fan/idiot who bought Battlefront 2015. For such a big game, the developers have proven time and time again to be grossly incompotent. The game is riddled with issues such as infantry flashbangs literally taking out half of a hero's health, Darth Maul's Saber throw literally touching enemies and dealing no damage. And you might think these would be fixed in a patch but it'll take you weeks, if you're lucky, for DICE to finally patch this stuff out. The current ensemble of skins consists of rehashes from the 2015 game and slight changes to heroes like Kylo Ren with a scar, Yoda with his hood up, and Chewbacca with a bandage on his arm. The Clone Wars content is minimal (which is huge for a Clone Wars fan): the only heroes of that era are Yoda and Maul (No Obi-Wan or Anakin aka the main characters of the prequels), absolutely no Clone/Droid skins, 3 Galactic Assault maps, and 2 Starfighter Assault maps. There is a heavy lack of offline content with no Galactic Assault nor Starfighter Assault (but that's okay because it's coming Soon™). There has been a total of 2 seasons in the span of 5 months and the second one is loving Solo. The only decent thing to come from this game as of late is a temporary Ewok hunt mode.

Don't try to give this game any special treatment because of it's name. In fact, you should expect MORE because it's a AAA Star Wars Game made by the developers of Battlefield. I hope to be proven wrong and this game gets better but no doubt EA dropped this the instant they had to get rid of their cash cow lootcrates.

EDIT: Let's not forget the lack of a server browser, private matches (which was in the 2015 game), and the ability to host servers. This game will eventually die with no way to play some of your favorite modes unless you're lucky enough for DICE to bother adding them in. Nowadays you have to go to extensive efforts to organize with people just to play the DLC maps of the 2015 game otherwise you're SOL on weapon contracts or if you just wanted to play a bloody DLC map.

85
Games / Thanos is coming to Fornite
« on: May 07, 2018, 10:50:23 AM »


SOURCE: http://ew.com/gaming/2018/05/07/thanos-fortnite-avengers-infinity-war/?

So there'll be 6 Infinity Stones spread across the map. The person who holds all six will become Thanos.  The details of how Thanos plays is unknown but it probably involves killing half the server.

86
Off Topic / Re: It's MasterLegoDude's Birthday
« on: May 05, 2018, 05:18:15 PM »
And it was Filipe's birthday a couple of days before that

May is the month of cool peoples' birthdays
That's weird my birthday is in November

87
I was going to comment on how Block Wars No Hope premiered 2 years ago today but apparently it got copyright striked... again.

https://www.youtube.com/watch?v=frbYYYp1_HE

EDIT: Aaaaaaaaand we're back baby!

88
Off Topic / Re: Anyone watch the new avengers movie yet?
« on: April 28, 2018, 03:21:33 AM »
i did and it had its moments. better than the other avenger movies though.

[SPOILER]the ending pissed me off. they have some pretty big balls to leave it on a cliffhanger after killing like almost all of the avengers. no idea what was announced at the end credits.[/SPOILER]

[SPOILER]They summoned Captain Marvel. That's her insignia.[/SPOILER]

89
Clan Discussion / Re: Star Wars Content Creation Clan [Hoth]
« on: April 25, 2018, 12:50:41 AM »

Special thanks to Trinko for bringing my model ingame! Still has some features I need to implement.

90
Off Topic / Another Star Wars Solo Trailer
« on: April 08, 2018, 08:00:47 PM »
https://www.youtube.com/watch?v=jPEYpryMp2s&feature=youtu.be

Big step up from the previous trailer in my opinion.


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