Weapon change function

Freeform discussion about anything related to modding Transcendence.
Post Reply
bluesaberist
Commonwealth Pilot
Commonwealth Pilot
Posts: 97
Joined: Wed Jan 16, 2008 2:13 am
Location: Pennsylvania

Just when you guys will swear I left for good, I'll pop back into this forum.


Anyway, I wanted to make the linked fire able to turn off an on, so I stuck it in my (I use "my" loosely) weapon switching mod, only to find out (to my dismay) that the function doesn't work in 1.06a.

Here is a link to the mod:
http://xelerus.de/index.php?s=mod&id=77

It's been a while, and I never learned why that code worked in the first place, but it would be nice for it to work again. Can I get some help on it?
If you drop a bar of soap on the ground, is it dirty?
If a person is legally blind, and can suddenly see, is he breaking the law?
If a friend says he's going outside to get some air, what was he breathing before?
-Brad Stein
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

[teleported to Shipyards!]

Hi bluesaberist!
welcome back! :D

did you try the updated version of the switching function made by Atarlost ?
you can find it in his mod:
http://xelerus.de/index.php?s=mod&id=555
bluesaberist
Commonwealth Pilot
Commonwealth Pilot
Posts: 97
Joined: Wed Jan 16, 2008 2:13 am
Location: Pennsylvania

I found my error. I'm going to check the Xelerus upload now though, because I think it may have had broken code for the last two years. :cry:

[Minutes later...]

Yep, it's been broken over the last two years. I find that depressing and kind of embarrassing.

So basically, I had changed the name of the function without changing the name used to call the function. I don't know why I didn't think to check that off the bat, but I guess I assumed that I had it correct before.

Thank you digdug for the reply. I did spur me to find the error, even if it didn't point directly to it.
If you drop a bar of soap on the ground, is it dirty?
If a person is legally blind, and can suddenly see, is he breaking the law?
If a friend says he's going outside to get some air, what was he breathing before?
-Brad Stein
Post Reply