new smg spread

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4970 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-05-21 13:30:18 +00:00
parent 5ae1987204
commit f3441764df
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -1049,6 +1049,7 @@ bool shotgun::selectable() { return weapon::selectable() && !m_noprimary && this
subgun::subgun(playerent *owner) : gun(owner, GUN_SUBGUN) {}
bool subgun::selectable() { return weapon::selectable() && !m_noprimary && this == owner->primweap; }
int subgun::dynspread() { return min(info.spread * (shots - 1), info.spread * 5); }
// sniperrifle
@@ -1072,7 +1073,7 @@ bool sniperrifle::reload()
return r;
}
#define SCOPESETTLETIME 100
#define SCOPESETTLETIME 180
int sniperrifle::dynspread()
{
if(scoped)
@@ -1124,7 +1125,7 @@ bool rifle::selectable() { return weapon::selectable() && !m_noprimary && this =
assaultrifle::assaultrifle(playerent *owner) : gun(owner, GUN_ASSAULT) {}
int assaultrifle::dynspread() { return shots > 3 ? 70 : info.spread; }
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; }