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 → Weapon cog's Hud display
Weapon cog's Hud display
2001-06-28, 6:20 AM #1
How do you change the value displayed in the HUD from powercells to energycells? Because I want to make the crossbow's cog use energy cells.

[This message has been edited by IDJunkguy (edited June 28, 2001).]
2001-06-28, 9:23 AM #2
I'm lost.

------------------
"I am Murray, the all powerful demonic skull, BWAHAHAHAHAHA!"-Murray
Viva la Monkey Island!
"I am Murray, the all powerful demonic skull, BWAHAHAHAHAHA!"-Murray
Viva la Monkey Island!
2001-06-28, 11:17 AM #3
How do you make the HUD show the number of energycells (instead of powercells) when you are using the #5 crossbow?
2001-06-28, 4:13 PM #4
Write to the weap_crossbow.cog a couple things.

In symbols:

flex powercells local
flex enrgycells local

In selected:

powercells=GetInv(player, 12);
enrgycells=GetInv(player, 11);

SetInv(player, 12, enrgycells);
SetInv(player, 11, powercells);

In deselected:

powercells=GetInv(player, 11);
enrgycells=GetInv(player, 12);

SetInv(player, 11, enrgycells);
SetInv(player, 12, powercells);


This should do it, but I've not tested it.

You cannot otherwise change the display, as the display is HARDCODED in the JK Engine to show the particular ammo for whatever weapon.

↑ Up to the top!