Blockland Forums > Modification Help

Firing a gun without hand moving

Pages: << < (2/3) > >>

Headcrab Zombie:

I thought that just specificies whether or not equipping the weapon raises your arm?

Demian:


--- Quote from: lordician on December 22, 2010, 07:24:50 PM ---stateSequence is for the animations on the model it is connected to (in case of a weapon, the weapon).
What you may notice when looking through the code of the default gun is the following lines:

--- Code: ---   //raise your arm up or not
   armReady = true;

--- End code ---
Change true into false and it should work properly.

--- End quote ---
Didn't work.

--- Quote from: Headcrab Zombie on December 22, 2010, 11:41:04 PM ---I thought that just specificies whether or not equipping the weapon raises your arm?

--- End quote ---
That's exactly what I'm looking for.

So far this is what I've got. It's the default gun.

--- Code: --- stateName[0]                     = "Activate";
stateTimeoutValue[0]             = 0.15;
stateTransitionOnTimeout[0]       = "Ready";

stateName[1]                     = "Ready";
stateTransitionOnTriggerDown[1]  = "Fire";

stateName[2]                    = "Fire";
stateTransitionOnTimeout[2]     = "Ready";
stateTimeoutValue[2]            = 0.14;
stateSequence[2]                = "Ready";
stateScript[2]                  = "onFire";
stateWaitForTimeout[2] = true;
--- End code ---


lordician:


--- Quote from: Demian on December 23, 2010, 03:58:43 AM ---Didn't work.That's exactly what I'm looking for.

So far this is what I've got. It's the default gun.

--- Code: --- stateName[0]                     = "Activate";
stateTimeoutValue[0]             = 0.15;
stateTransitionOnTimeout[0]       = "Ready";

stateName[1]                     = "Ready";
stateTransitionOnTriggerDown[1]  = "Fire";

stateName[2]                    = "Fire";
stateTransitionOnTimeout[2]     = "Ready";
stateTimeoutValue[2]            = 0.14;
stateSequence[2]                = "Ready";
stateScript[2]                  = "onFire";
stateWaitForTimeout[2] = true;
--- End code ---

--- End quote ---
Odd.

Headcrab Zombie:


--- Quote from: Demian on December 23, 2010, 03:58:43 AM ---That's exactly what I'm looking for.

--- End quote ---
You said firing, not equipping. In which case, that should work.

Demian:


--- Quote from: Headcrab Zombie on December 23, 2010, 10:31:39 AM ---You said firing, not equipping. In which case, that should work.

--- End quote ---
I need both.

Pages: << < (2/3) > >>

Go to full version