jkSetWaggle


Makes the player swing his weapon in internal view. Syntax:

jkSetWaggle(player, move_vec, speed);

move_vec: This vector consists of three measurements that tell JK how far to move the weapon from its original orientation. The vector is in this form: 'down side twist'.

down: This is how far down the model should move. Making this value negative will bring the model up. A value of -25 would bring the internal bryar model up into the middle of the screen.

side: This is how far to each side that the pov model should travel to. A value of 20 would make the internal model travel across 2/3 of the screen.

twist: This is the degrees that the model should rotate. A value of 360 would make the model twist all the way around as it waggled.

speed: This is the speed that the internal model should move at. The usual waggle speed is 350.


To stop the waggling, use:

jkSetWaggle(player, '0 0 0', 0);