Author Topic: Adding recoil  (Read 982 times)


Hey, I would like to ask you guys for the code part (or whatever you call it) for a trigger on firing a weapon, and
when this happens add a certian amount of picth to the player. (AKA your aim goes up.) I'm not sure this is possible, but if it is please post it to here so I can [spoiler] copy it into any item's script.[/spoiler] I suck at scripting so intructions would be nice :-/

edit: I am not sure if this is the good section...

Sorry, you can't make a player's aim go up or down.

Unless you made some sort of client mod, recoil is not possible.
And besides, who would want to download a mod that makes your aim worse?

Spawn a small explosion on the player every time you fire the gun. Check the T+T code or GCat's old weaponset.

Spawn a small explosion on the player every time you fire the gun. Check the T+T code or GCat's old weaponset.
doesnt move the players aim up, which is what he's wanting.

Sorry, you can't make a player's aim go up or down.
GCat's new weapon set has recoil.

GCat's new weapon set has recoil.
Prob moves the weapon and node with an animation.

No, probably just shake-only explosions with code to make the spray wider.

Well, thanks anyway, but could someone please post that code to work with most guns by just copy&pasting it into the script?I still suck at coding.
« Last Edit: December 23, 2011, 02:53:03 AM by SgtDaemon »