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 → the newbie is here once again
the newbie is here once again
2002-01-30, 9:27 AM #1
when the player presses a special button, it's supposed to do this, put on a silencer..
as soon as i press the button, it crashes... i guess my newbie-brain has forgotten something with the keys or something..
i haven't made anything for the else yet but that can't be the problem(or am i wrong?)..

Code:
user0:


if (silencer == 0)
{
silencer = silencer + 1;

DeactivateWeapon(player, mode);
if (trackID!= -1) jkStopPovKey(player, trackID, 0);
jkSetPovModel(player, silencermodel);	
trackID = jkPlayPOVKey(player, silenceron, 0, 20);
SetMountWait(player, GetKeyLen(silenceron));
PlaySoundThing(silenceronsnd, player, 1, 0.3, 5.5, 0x80);
}

else 
{
return;
}

return;
2002-01-30, 10:23 AM #2
Sounds like jk cant find your key frame.

[This message has been edited by Hellcat (edited January 30, 2002).]
Team Battle.
2002-01-31, 7:38 AM #3
I have checked and it can't be that...
2002-01-31, 8:09 PM #4
Try putting // infront of Deactivate weapon and test it to see if it crashes. A weapon has to be activated before it can be deactivated I do believe.....
-Hell Raiser
2002-02-01, 4:08 AM #5
The 0x in front of flags tells JK the number is hexadecimal. If there is no 0x, JK assumes the number is decimal. So correct the POV keyframe flags to 0x20.

------------------
Each cog better than the next
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.

↑ Up to the top!