Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Ammo bins; changing
Ammo bins; changing
2004-01-25, 9:48 AM #1
Is it possible to change which ammo bin is displayed on the screen for the weapons? (For example, with the Bryar selected, it displays power cells instead of energy units)

I posted this here because it looks like it would be done thru cog. If it turns out that it is not (which would be a big surprise to me), please move this topic to the Main Editing Forum.

Thanks.

------------------
I am Darth Slaw.
The Dark Lord of the Sith,
And part of the Nightfire mod team
May the mass times acceleration be with you.
2004-01-26, 7:59 AM #2
You mean that you want the Bryar to use power cells instead of energy units?

------------------
Check out updates for my editing work at the Shadow Jedi Academy.
2004-01-26, 10:24 AM #3
It was just an example. I just want to know if it is possible to change which ammo bins will be shown for the weapon (and how to do it) in the lower right corner. Another example would be to have the Rail Detonator display the ammo bin for energy cells. I can't seem to find anything that makes it possible to do this in the items.dat file, so I'm assuming the next best place to look would be thru cog. I wonder if maybe the kyle.cog has something?

If any help can be provided, that would be greatly appreciated. [http://forums.massassi.net/html/smile.gif]

------------------
I am Darth Slaw.
The Dark Lord of the Sith,
And part of the Nightfire mod team

[This message has been edited by Darth Slaw (edited January 26, 2004).]
May the mass times acceleration be with you.
2004-01-26, 2:03 PM #4
Do you mean how, when you draw bryar, it'll show your energy cell count, and when you draw fists it'll just show '---' where your ammo goes?

------------------
Quote:
<font face="Verdana, Arial" size="2">Originally posted by DrkJedi82:
thanks for the all your <3 are belong to somebody set up us the 1337 swank OWNED
</font>
2004-01-26, 2:16 PM #5
Yeah, that's it. Is there a way to change which one it shows?

------------------
I am Darth Slaw.
The Dark Lord of the Sith,
And part of the Nightfire mod team
May the mass times acceleration be with you.
2004-01-27, 5:00 AM #6
yep, open up the weapon cog in particular and up top you will see

int bin=116 local

or somethign simlar. if you look in the items dat you will find that that particlar bin is for a particlar energy, jsut change that bin number to the one you want.
if i rember corectly the cog handels the bin on teh screen and the weapon ammo

------------------
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
2004-01-27, 7:17 AM #7
Wrong answer. Many weapon cogs don't even have int bin=(number) local.

------------------
Quote:
<font face="Verdana, Arial" size="2">Originally posted by DrkJedi82:
thanks for the all your <3 are belong to somebody set up us the 1337 swank OWNED
</font>
2004-01-27, 10:30 PM #8
Be that as it may Checksum, the principle is the same [http://forums.massassi.net/html/wink.gif]. I'm still not overly sure why you'd want to use this method (just get a different ammo bin and display it in the HUD), but each to their own [http://forums.massassi.net/html/smile.gif] - I'm sure there's a good reason where Slaw's concerned [http://forums.massassi.net/html/smile.gif] [http://forums.massassi.net/html/biggrin.gif]

-Jackpot

------------------
"lucky_jackpot is the smily god..." - gothicX

"Life is mostly froth and bubble,
But two things stand in stone,
Kindness in another's trouble,
Courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||
2004-01-29, 7:07 AM #9
What isn't obvious about the reason? The weapon uses different ammo, therefore it should display the ammo it uses.

I just thought of a fix.
What you gotta do is this:
#1: Find out which guns already use which ammo type.
#2: Set up some new inventory bins. This will be the *real* ammo.
#3: Have the weapon use the *real* ammo for the actual fire message, and set the ammo it displays to the same value as the real ammo.

So you'd be using, say, bin 116 for ammo for gun #2, and bin 117 for ammo for gun #3 - these guns both display bin 11 by default.

So you have them use bins 116 and 117, and every time those bins are changed you change bin 11 to equal those bins.
------------------
Quote:
<font face="Verdana, Arial" size="2">Originally posted by DrkJedi82:
thanks for the all your <3 are belong to somebody set up us the 1337 swank OWNED
</font>


[This message has been edited by Checksum (edited January 29, 2004).]
2004-01-29, 9:36 AM #10
Used the forum search:

http://forums.massassi.net/html/Forum4/HTML/003407.html

------------------
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

-Tazz
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

Tazz
2004-01-29, 11:23 AM #11
DP's idea was just like mine, except less efficient.

------------------
Quote:
<font face="Verdana, Arial" size="2">Originally posted by DrkJedi82:
thanks for the all your <3 are belong to somebody set up us the 1337 swank OWNED
</font>
2004-01-31, 6:26 PM #12
I had forgotten why I wanted to know, and now I remember. I wanted my sniper rifle in my weapons mod (not Nightfire) to use different bullets than weapons 5 and 6. Now I can do it. Thanks. [http://forums.massassi.net/html/smile.gif]

------------------
I am Darth Slaw.
The Dark Lord of the Sith,
And part of the Nightfire mod team
May the mass times acceleration be with you.

↑ Up to the top!