Author Topic: [FIXED] Weapon is constantly playing a cyclic animation (its not suppose to)  (Read 831 times)

So I have a model which is a broom reskin, and its set to play a cyclic spinning animation when you fire it, but the problem is that its ALWAYS playing the animation.

i dont think it has anything to do with states because ive tried copying it from one of my other weapons that also uses one cyclic animation and it still has the problem, but here it is.

Spin is the name of the cyclic animation
Code: [Select]
stateName[0]                    = "Activate";
stateTimeoutValue[0]            = 0.0;
stateTransitionOnTimeout[0]     = "Ready";
stateSequence[0] = "equip";
stateSound[0] = tr8rEquipSound;

stateName[1]                    = "Ready";
stateTransitionOnTriggerDown[1] = "PreFire";
stateAllowImageChange[1]        = true;
stateSequence[1] = "Ready";

stateName[2] = "PreFire";
stateScript[2]                  = "onPreFire";
stateAllowImageChange[2]        = true;
stateTimeoutValue[2]            = 0.01;
stateTransitionOnTimeout[2]     = "Fire";
stateSequence[2] = "Ready";

stateName[3]                    = "Fire";
stateTransitionOnTimeout[3]     = "Fire";
stateTimeoutValue[3]            = 0.2;
stateFire[3]                    = true;
stateAllowImageChange[3]        = true;
stateScript[3]                  = "onFire";
stateWaitForTimeout[3] = true;
stateSequence[3] = "spin";
stateTransitionOnTriggerUp[3] = "StopFire";
stateSound[3] = tr8rBroomSwingSound;

stateName[4] = "CheckFire";
stateTransitionOnTriggerUp[4] = "StopFire";
stateTransitionOnTriggerDown[4] = "Fire";
stateSound[4] = tr8rBroomSwingSound;
stateSequence[4] = "spin";

stateName[5]                    = "StopFire";
stateTransitionOnTimeout[5]     = "Ready";
stateTimeoutValue[5]            = 0.2;
stateAllowImageChange[5]        = true;
stateWaitForTimeout[5] = true;
stateSequence[5]                = "Ready";
stateScript[5] = "onStopFire";
« Last Edit: January 12, 2016, 06:29:41 PM by Trogtor »

Stop the thread when it stops firing (::onStopFire)

loving Tr8r ahahah love you Trog

Stop the thread when it stops firing (::onStopFire)
you'd have to be more specific because i have no experience with function arguments

i decided not to do cyclic and literally none of the sequences are working properly.

Just like earlier, the spinning animation still decides to play when i equip it (even though its suppose to play "equip" which is a totally different sequence). since its not a cyclic, it just stops.

i know for a fact they were exported fine. they show up in shaper correctly but seriously what the hell.

basically, the only thing the stupid model wants to do is play the spinning animation at the beginning, that's it. like literally that state specifically does not activate that animation and its handicapped


edit: just updated the op with what states im currently working with
« Last Edit: January 12, 2016, 05:57:56 PM by Trogtor »

renaming spin to fire somehow fixed it.

man how handicapped