FileFront Forums

FileFront Forums (http://forums.filefront.com/)
-   SW:JK3 Modding, Mapping and Editing (http://forums.filefront.com/sw-jk3-modding-mapping-editing-528/)
-   -   [Help] Floating Lightsabers (http://forums.filefront.com/sw-jk3-modding-mapping-editing/438224-floating-lightsabers.html)

Nikomaru7 July 11th, 2011 04:14 PM

Floating Lightsabers
 
You know how in KOTOR 2 Darth Traya uses floating lightsabers to fight? How could I make a floating lightsaber npc, and make it take damage only when it gets hit on (or at least somewhat near) the hilt? :Puzzled:

minilogoguy18 July 11th, 2011 04:16 PM

Re: Floating Lightsabers
 
Edit the textures of any npc so that they are all transparent, google a tutorial on alpha channels in the image editing program that your comfortable using.

Nikomaru7 July 11th, 2011 04:49 PM

Re: Floating Lightsabers
 
Ok, now I have a floating lightsaber, but is there any way to only make it take damage when it gets hit near the hilt?

Silverfang22 July 11th, 2011 04:58 PM

Re: Floating Lightsabers
 
Quote:

Originally Posted by Nikomaru7 (Post 5529348)
Ok, now I have a floating lightsaber, but is there any way to only make it take damage when it gets hit near the hilt?

Basically, no.

Delta_135 July 12th, 2011 10:46 AM

Re: Floating Lightsabers
 
you can't really avoid hitting the hilt without hitting the npc too.

Jose Carlos July 12th, 2011 11:05 AM

Re: Floating Lightsabers
 
Oh, it's totally possible. You just need a player model that has a completely transparent right hand mesh and a single, tiny polygon for every other bit of the model. The chances of hitting the rest of the body is so miniscule that it might as well be just the hilt in a disembodied hand. It might also be a good idea to disable this player model in MP.

Silverfang22 July 13th, 2011 01:51 AM

Re: Floating Lightsabers
 
Quote:

Originally Posted by Jose Carlos (Post 5529665)
Oh, it's totally possible. You just need a player model that has a completely transparent right hand mesh and a single, tiny polygon for every other bit of the model. The chances of hitting the rest of the body is so miniscule that it might as well be just the hilt in a disembodied hand. It might also be a good idea to disable this player model in MP.

Actually serverside (at least for multiplayer) the model that the server uses for hit detection is kyle, hence why in jk2 if you used the kyle/fpls2 model people could still hit you. It is possible to change this in the source code afaik, but of course that would require a mod to be placed on the server.

Jose Carlos July 13th, 2011 02:17 AM

Re: Floating Lightsabers
 
Quote:

Originally Posted by Silverfang
Actually serverside (at least for multiplayer) the model that the server uses for hit detection is kyle, hence why in jk2 if you used the kyle/fpls2 model people could still hit you. It is possible to change this in the source code afaik, but of course that would require a mod to be placed on the server.

It's reasonable to assume that since he specifically asked about an npc floating lightsaber, he wants to use it in SP. And from my 10 minutes of testing, SP uses the current model itself as the hitbox. I had to lightning the thing to death and I only gave it 100 hit points.

iZero July 13th, 2011 05:02 AM

Re: Floating Lightsabers
 
Hmm, this is just a theroy, but couldn't you just make a lightsaber model where every attack you make acts as the duel-style kata? I don't know how this works IG, but I think you might be able to do it.

eezstreet July 13th, 2011 08:51 AM

Re: Floating Lightsabers
 
Quote:

Originally Posted by Jose Carlos (Post 5529876)
It's reasonable to assume that since he specifically asked about an npc floating lightsaber, he wants to use it in SP. And from my 10 minutes of testing, SP uses the current model itself as the hitbox. I had to lightning the thing to death and I only gave it 100 hit points.

SP calculates a hitbox based on the NPC height and width values in .npc files...same as how MP does it.


All times are GMT -7.

Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.