|
KeeperS Karu
Registered User
Join date: 18 Oct 2008
Posts: 31
|
12-13-2008 11:54
Heyla!
I've got another question, here. I'm experimenting with making dual blades. Now, my very first instinct was to simply drop the script into the main weapon, and as long as the animations looked like dual blade fighting, it should be fine. But after thinking about it, I realized that that wouldn't work, as the second weapon wouldn't do any damage, which defeats the purpose of having a second weapon to fight with. So, what I did was take the sword script I've been working with, and took out all the code that triggered the animations, then dropped it into the second blade. I left everything else pretty much the same. My idea was that it still needs the sensors to tell whether someone is in range of the weapon. If so, then it can rez the bloodslpatter, calcuate push, etc.
It seems to work, in that I can get the bloodsplatter to rez when I get the second blade in range of the target, but I can't seem to tell if it's causing any damage. I don't have actual damage calculations in my blade scripts, as I figured that most combat HUDs, like DCS, do those calcualtions, anyhow. But now, I'm wondering if those HUDs take a second weapon into account? And if not, should I then try to figure out how to make my weapon cause damage on its own?
Thanks for the help! Keeper S. Karu
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
12-14-2008 03:13
depends on how detection of "damage" is being done. I believe it's per avatar, not per weapon, thought I could be mistaken. in which case all damage messages coming from one av would be treated as a single weapon.
if however those calculations are made per weapon, based on it's message, then modifying the identity string of the second weapon to be different than the first should allow it to be recognized as a seperate source.
there may be limiting code based on a per av basis as well to prevent people from mounting weapons on their bodies like vehicle hard points, in which case it probably won't do anything but look cool
TBH your best bet is to talk to the people that develop the systems you're using, ask them what limitations there are, and the best way to approach it.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
KeeperS Karu
Registered User
Join date: 18 Oct 2008
Posts: 31
|
12-14-2008 18:45
Oh, thank you, very much! I really appreciate the info!
|