Blockland Forums > Modification Help
Weapon script--need help please
<< < (2/2)
n0cturni:
Thank you!
n0cturni:
Wow, seriously thanks! Its beautiful but the only thing is that I cannot find the part of the segment of code you gave me that controls how you get kicked back a little bit.
Muffinmix:
This would be the kick-back effect
Where the "-3" is, change it to get more-less kickback, or give it a positive value for pull

--- Code: --- %obj.setVelocity(VectorAdd(%obj.getVelocity(),VectorScale(%obj.client.player.getEyeVector(),"-3")));
--- End code ---

Also this controls Bullet Spreadage (how wide of a spread is determined by how high the number is)


--- Code: ---%spread = 0.0015;
--- End code ---

And finally, this determines how many bullets are fired


--- Code: ---%shellcount = 1;
--- End code ---


Loz:
Wasn't this weapon already posted?  This should probably be locked.
Navigation
Message Index
Previous page

Go to full version