Re: How do I do those gun 3DOs with hand work? Here!


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]

Posted by Hideki on October 22, 1998 at 03:07:42:

In Reply to: Re: How do I do those gun 3DOs with hand work? posted by JM on October 21, 1998 at 13:44:53:

:
: : I've made some new weapons and other 3DOs, but how does those gun 3DOs in 1st person view work?
: : What do I need to edit do replace some of the weapons with my own? Or how hard is it to make 2 weapoons for the same number (like in MotS)?

: : -NorthChaos

: You need to edit the 3do files listed in the weapon cog... under symbols, 'model'. As for two weapons, in the item.dat, replace the 'empty' weapon cog associated with an empty slot (JUST change the cog name, from weap_empty.cog to yer own, mots only) The name of the bin (the first column) gives away which weapon that one toggles with.

For the povmodel I'm quite sure but you need more than 1 mesh if you have edited it with JED you might only have 1 mesh, I just copied a few more meshes to work(arm and shoulder).

For having 2 weapons in 1 key is definitely impossible in MotS' way. I guess... But I did it in this way.
1)Mix 2 weapons in 1 cog saying like

if(GetInv(player, 116) == 1)
{
all 1st weapon part
}
else
{
the other weapon part
}
in every section

Make sure not to forget every symbols for both weapons.

2)Make a cog with a hot key which will send message to the activated section. Then in that section type
if(GetCurWeapon(player) == WeaponInt)
{
if(GetInv(player, 116) == 0)
{
SetInv(player, 116, 1);
SendMessage(GetInvCog(player, WeaponInt), selected);
}
else
{
SetInv(player, 116, 0);
SendMessage(GetInvCog(player, WeaponInt), selected);
}
}

So when you press the button it will pop up the other weapon on the same key!Don't send message to deselected section or you'll have a bug included when you pick up a new weapon while then.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]