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:
@@ -11762,7 +11762,7 @@ FLOAT GetSingleShotTemperature( OBJECTTYPE *pObj )
|
||||
singleshottemperature = Weapon[ pObj->usItem ].usOverheatingSingleShotTemperature;
|
||||
|
||||
// determine modificator according to attachments
|
||||
FLOAT modificator = gGameExternalOptions.iOverheatTemperatureGlobalModfier;
|
||||
FLOAT modificator = 1.0f;
|
||||
|
||||
attachmentList::iterator iterend = (*pObj)[0]->attachments.end();
|
||||
for (attachmentList::iterator iter = (*pObj)[0]->attachments.begin(); iter != iterend; ++iter)
|
||||
@@ -11777,6 +11777,9 @@ FLOAT GetSingleShotTemperature( OBJECTTYPE *pObj )
|
||||
modificator += AmmoTypes[(*pObj)[0]->data.gun.ubGunAmmoType].temperatureModificator;
|
||||
|
||||
singleshottemperature *= modificator;
|
||||
|
||||
// multiply again for global modifer
|
||||
singleshottemperature *= gGameExternalOptions.iOverheatTemperatureGlobalModfier;
|
||||
}
|
||||
|
||||
return singleshottemperature;
|
||||
|
||||
Reference in New Issue
Block a user