Adding Gun Recoil?

Bullet_ForceBullet_Force Join Date: 2012-11-02 Member: 165952Members
I wonder is this possible with a mod?

Comments

  • ChaosXBeingChaosXBeing Join Date: 2012-10-12 Member: 162114Members
    I think there was someone working on this not too long ago, so maybe they'd be willing to help you out? Try searching back a page or two and you should find the thread.
  • WilsonWilson Join Date: 2010-07-26 Member: 72867Members
    Yes, I have already implemented this, at least the same way day of defeat does recoil (the crosshair moves upward when shooting).

    You basically need to use Client.SetPitch() and Client.SetYaw() to modify the viewangles when you fire a bullet. Here is the thread where I was asking about it: <a href="http://www.unknownworlds.com/ns2/forums/index.php?showtopic=122026&st=0" target="_blank">http://www.unknownworlds.com/ns2/forums/in...122026&st=0</a> (note: there was a bug at the time causing weird behaviour, but it's been fixed now)

    I can post the full code up if you want but it's a little messy at the moment as I just quickly implemented it.
Sign In or Register to comment.