- Joined
- Nov 28, 2014
- Messages
- 480
- Reaction score
- 286
I was here testing some things and playing around with the code a bit, my character had no skills at all, I thought I'd put an ATTM to improve the weapon's recoil and kill zombies, I ended up discovering that this **** was useless... then I thought let's make sense of what the original developers didn't care about.
Laser Logic: for when you are not pressing the mouse aim button
Forward Grip Logic: for when pressing the mouse aim button and for when it is disabled as well
All these settings can be customized by you, I just left here a simple basis of how to do it.
sorry my **** english!
Laser Logic: for when you are not pressing the mouse aim button
Forward Grip Logic: for when pressing the mouse aim button and for when it is disabled as well
All these settings can be customized by you, I just left here a simple basis of how to do it.
sorry my **** english!
View attachment 268060
open WarZ.sln
search for
add abellow
open WarZ.sln
search for
Code:
if (wpn->getCategory()==storecat_SHTG) spread *= 1.2f;
add abellow
Code:
//DouglasPro:: recoil forward grip and others
if(wpn->m_Attachments[WPN_ATTM_BOTTOM_RAIL] && (wpn->m_Attachments[WPN_ATTM_BOTTOM_RAIL]->m_itemID == 400000 || wpn->m_Attachments[WPN_ATTM_BOTTOM_RAIL]->m_itemID == 400009
|| wpn->m_Attachments[WPN_ATTM_BOTTOM_RAIL]->m_itemID == 400088))
{
spread *= 0.5f;
recoil *= 0.5f;
}
if(wpn->m_Attachments[WPN_ATTM_LEFT_RAIL] && (wpn->m_Attachments[WPN_ATTM_LEFT_RAIL]->m_itemID == 400004) && (!m_isAiming)){ //DouglasPro:: logic for laser rifle
spread *= 0.2f;
recoil *= 0.2f;
}

