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?
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.
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.
"And that was when I realized that poking a sleeping dragon in the eye was a really bad idea." My personal opinions are the opinions, viewpoints and damn near exact words of the Inter-Universal Alliance of Cornavesalionecular Medo-isethonomic Searathon Magtherium Guardians.
Last edited by Jose Carlos; July 12th, 2011 at 11:05 AM.
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.
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.
"And that was when I realized that poking a sleeping dragon in the eye was a really bad idea." My personal opinions are the opinions, viewpoints and damn near exact words of the Inter-Universal Alliance of Cornavesalionecular Medo-isethonomic Searathon Magtherium Guardians.
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.
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.
Gunslinger's Academy: "basicly like killin jedis n stuff with big guns" Add me to PSN: j3LL1b33n
Last edited by eezstreet; July 13th, 2011 at 08:52 AM.
This site is part of the Defy Media Gaming network
The best serving of video game culture, since 2001. Whether you're looking for news, reviews, walkthroughs, or the biggest collection of PC gaming files on the planet, Game Front has you covered. We also make no illusions about gaming: it's supposed to be fun. Browse gaming galleries, humor lists, and honest, short-form reporting. Game on!