| 
 
 
 
	
	
		
			|   | Page 1 of 1 
 | [ 14 posts ] |  |  
        
        
            | Author | Message |  
			| BreadFish 
					Joined: Sat Oct 10, 2009 8:36 pm
 Posts: 5
   |   Attachable Armor Quandryso i'm making these actors, and they're supposed to wear power armor like wh40k spacemarines (improves strength and speed, but i'll just settle for speed), and i was wondering if i could do it with the armor as attachables and the actors are only faster and stronger before the armor is gibbed or blown off them. i've been playing around with it, but i think i'm tarded or something. and if it's possible, would it involve lua or no, because lua is still like a foreign language to me  
 
 |  
			| Thu Oct 15, 2009 1:56 am | 
					
					   |  
		|  |  
			| TorrentHKU Loose Canon 
					Joined: Sun Mar 29, 2009 11:07 pm
 Posts: 2992
 Location: --------------->
   |   Re: Attachable Armor QuandryOh yeah. That would DEFINATELY require Lua. Last I checked, it wouldn't be possible with B23, but I think I heard that someone somehow hackjob-voodoo'd attachments into working with Lua. I honestly have no idea. Ask Mail2345, Kyred, or any of our other Lua Modders. They'll know how to really help, if at all possible.
 EDIT: Or Geti apparently.
 
 
 
    							Last edited by TorrentHKU on Thu Oct 15, 2009 4:02 am, edited 1 time in total. 
 
 |  
			| Thu Oct 15, 2009 2:22 am | 
					
					     |  
		|  |  
			| Azukki 
					Joined: Sat Nov 03, 2007 9:44 pm
 Posts: 1916
 Location: Flint Hills
   |   Re: Attachable Armor QuandryIf you made the attachments negative mass but less than the positive mass of the body, you would slow down as you lost them, as you would gain net mass.But this would make for wonky collisions.
 You could maybe attach invisible, non-colliding, negative mass attachables to your attachables. Then you get the inverted mass loss, maybe without the wonky collisions.
 
 Or you could use Lua.
 I've never really understood the whole MOID attachable Lua thing, so I can't really contribute any suggestions about that.
 
 
 |  
			| Thu Oct 15, 2009 3:14 am | 
					
					   |  
		|  |  
			| Geti 
					Joined: Sun Jul 13, 2008 9:57 am
 Posts: 4886
 Location: some compy
   |   Re: Attachable Armor Quandryyou sure can. its just hacky and time consuming. what you want to do is go look up mail's attachable handler/grabber, which is basically (not working code)  Code: self.attachables = {}for i = 1, moidlimit do
 local att = getmofromid(i)
 if att.RootID == self.ID and att.ID ~= self.ID then
 table.insert(self.attachables, att)
 end
 end
then you could run some checks on the relevant child attachables (by using string.find on their presetnames) to see weather they were still hanging about, and if not you could reduce speed, by forcing the controller to only use slow walk if possible. the speed of a character is kind of hard to scale, though. <_<
 
 |  
			| Thu Oct 15, 2009 3:41 am | 
					
					     |  
		|  |  
			| dragonxp 
					Joined: Wed Sep 09, 2009 3:16 am
 Posts: 3032
 Location: Somewhere in the universe
   |   Re: Attachable Armor QuandryHyperkultra wrote: Oh yeah. That would DEFINATELY require Lua. Last I checked, it wouldn't be possible with B23, but I think I heard that someone somehow hackjob-voodoo'd attachments into working with Lua. I honestly have no idea. Ask Mail2345, Kyred, or any of our other Lua Modders. They'll know how to really help, if at all possible.
 EDIT: Or Geti apparently.
You missed Grif and numgun. (atleast i THINK they can use lua)
 
 |  
			| Sun Oct 18, 2009 12:19 am | 
					
					   |  
		|  |  
			| wiffles 
					Joined: Fri May 08, 2009 1:39 am
 Posts: 482
 Location: Playing a children's card game
   |   Re: Attachable Armor Quandrybut you seem to have forgotten that they are both banned, so you cant really get their help can you?   
 
 |  
			| Sun Oct 18, 2009 12:22 am | 
					
					   |  
		|  |  
			| TorrentHKU Loose Canon 
					Joined: Sun Mar 29, 2009 11:07 pm
 Posts: 2992
 Location: --------------->
   |   Re: Attachable Armor QuandryGrif is stuck in perma-douche, and numgun can't really(I think). 
 
 |  
			| Sun Oct 18, 2009 12:56 am | 
					
					     |  
		|  |  
			| dragonxp 
					Joined: Wed Sep 09, 2009 3:16 am
 Posts: 3032
 Location: Somewhere in the universe
   |   Re: Attachable Armor QuandryHyperkultra wrote: Grif is stuck in perma-douche, and numgun can't really(I think).I here numgun got banned because of sudden spam, is this true? And why is Grif banned anyways?
 
 |  
			| Sun Oct 18, 2009 1:13 am | 
					
					   |  
		|  |  
			| Geti 
					Joined: Sun Jul 13, 2008 9:57 am
 Posts: 4886
 Location: some compy
   |   Re: Attachable Armor QuandryEh, grif is generally pretty helpful with lua stuff, but yeah, he's banned at the moment for flaming that girl. And numgun is banned indefinitely I think for the huge debacle of spamming/trolling a month or so ago. Also, for things like this, names dont really matter. in respect to the code, it has to be  Code: self.attachables = {}for i = 1, MovableMan:GetMOIDCount() - 1 do
 self.att = MovableMan:GetMOFromID(i)
 if self.att.RootID == self.ID and i ~= self.ID then
 table.insert(self.attachables, att)
 end
edit it to do what you need, this just makes a table and fills it with all child objects.
 
 |  
			| Sun Oct 18, 2009 1:23 am | 
					
					     |  
		|  |  
			| TorrentHKU Loose Canon 
					Joined: Sun Mar 29, 2009 11:07 pm
 Posts: 2992
 Location: --------------->
   |   Re: Attachable Armor QuandryIn a sense, names DO matter, since come looking to me for Lua help, and I'll calmly explain that I don't know a flying fekk about Lua coding. 
 
 |  
			| Sun Oct 18, 2009 1:35 am | 
					
					     |  
		|  |  
			| Geti 
					Joined: Sun Jul 13, 2008 9:57 am
 Posts: 4886
 Location: some compy
   |   Re: Attachable Armor QuandryHahah, true. Generally, though, posting a topic will get you a hasty response, and usually not just "OMGNOOBGTFO -User was banned for this post", but actual help. anyway, i've been thinking of ways to make an actor faster or slower, and i cant, unless self:GetController():SetState(Controller.MOVE_FAST , false) works.. 
 
 |  
			| Sun Oct 18, 2009 4:46 am | 
					
					     |  
		|  |  
			| Rawtoast 
					Joined: Mon Apr 06, 2009 9:41 am
 Posts: 712
 Location: New York
   |   Re: Attachable Armor QuandryGeti wrote: numgun is banned indefinitely I think for the huge debacle of spamming/trolling a month or so ago.
Actually, while I was in the ban purgatory thread (something which the goodies here unfortunately will never get to view), I saw that there was an expiration date on numgum's ban.
 
 |  
			| Sun Oct 18, 2009 5:16 am | 
					
					     |  
		|  |  
			| Geti 
					Joined: Sun Jul 13, 2008 9:57 am
 Posts: 4886
 Location: some compy
   |   Re: Attachable Armor QuandryAnd didnt take note of it? O_oBut anyway, have you tried setting Controller.MOVE_FAST to false? also, set it to true when the armour is attached.
 
 
 |  
			| Sun Oct 18, 2009 5:27 am | 
					
					     |  
		|  |  
			| TomThom 
					Joined: Sun Oct 18, 2009 1:54 am
 Posts: 139
   |   Re: Attachable Armor Quandrywell the mass thing mentioned earlier may work. and I'm not super sure about the scripting, because I'm no expert, but maybe put small "jets" on the attachables with super low life particles that could lift the actor a bit, so that way he can walk faster with his legs and jump higher with the jet pack due to the extra lift. i don't know if that is even possible. it's just a theory. i got the idea because if i use a heavy digger with a light actor and walk, i generally go faster, so maybe if you make the particles pull like the digger... 
 
 |  
			| Sun Oct 18, 2009 6:14 am | 
					
					   |  
		|  |  
		|  |  
	
		
			|   | Page 1 of 1 
 | [ 14 posts ] |  |  
 
	
		| Who is online |  
		| Users browsing this forum: No registered users |  
 
	|  | You cannot post new topics in this forum You cannot reply to topics in this forum
 You cannot edit your posts in this forum
 You cannot delete your posts in this forum
 You cannot post attachments in this forum
 
 |  
 |