D:
weapon.h?
That seems to have the void definitions, but no numerical specifications.
recoil is right here...
weapon.h?
That seems to have the void definitions, but no numerical specifications.
recoil is right here...
weapon.cpp Wrote:assaultrifle::assaultrifle(playerent *owner) : gun(owner, GUN_ASSAULT) {}
int assaultrifle::dynspread() { return shots > 3 ? info.spread * 3 : info.spread; }
float assaultrifle::dynrecoil() { return info.recoil + (rnd(8)*-0.01f); }
bool assaultrifle::selectable() { return weapon::selectable() && !m_noprimary && this == owner->primweap; }