mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
- DIRT_GLOBAL_MODIFIER is a global modifier to dirt generation
- second cleaning button in menu now orders entire team to clean their guns - global overheating modifier now also multiplies attachment modifiers - cleaning kits always use up 1% on use git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5913 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+4
-1
@@ -14702,9 +14702,12 @@ FLOAT GetItemDirtIncreaseFactor( OBJECTTYPE * pObj, BOOLEAN fConsiderAmmo )
|
||||
}
|
||||
}
|
||||
|
||||
// ammo modifies how much dirt a single shot makes, but only while shooting
|
||||
// ammo modifies how much dirt a single shot makes, but only while shooting, not when a gun gets dirty due to environmental effects
|
||||
if ( fConsiderAmmo )
|
||||
dirtincreasefactor *= (1.0f + AmmoTypes[(*pObj)[0]->data.gun.ubGunAmmoType].dirtModificator);
|
||||
|
||||
// multiply again for global modifer
|
||||
dirtincreasefactor *= gGameExternalOptions.iDirtGlobalModifier;
|
||||
|
||||
// dirt factor has to be >= 0 (items don't clean themselves)
|
||||
dirtincreasefactor = max(0.0f, dirtincreasefactor);
|
||||
|
||||
Reference in New Issue
Block a user