- Joined
- May 4, 2013
- Messages
- 269
- Reaction score
- 129
This is a tutorial for adding a slower recoil for snipers, equal to Infestation.
Here is a video showing how it will look:
In AI_Player.cpp, search for:
And make this "if" like this:
Well, it's just that XD Oh, do not forget to increase the recoil of the snipers ItemsDB.xml!
Here is a video showing how it will look:
In AI_Player.cpp, search for:
Code:
if(RecoilCooldown>0)
And make this "if" like this:
Code:
if(RecoilCooldown>0 && m_Weapons[m_SelectedWeapon]->getCategory() == storecat_SNP) // Sniper recoil
RecoilViewModTarget = R3D_LERP(RecoilViewModTarget, r3dVector(0,0,0), R3D_MIN((timePassed)*GPP->c_fRecoilCooldownSpeed*.5f, 1.0f));
else if(RecoilCooldown>0)
RecoilCooldown = RecoilCooldown-timePassed;
Well, it's just that XD Oh, do not forget to increase the recoil of the snipers ItemsDB.xml!

