I just improved the game speed on my computer by at least 2 FPS just by using a different kind of loop for the main game loop. DarkBASIC is weird sometimes. I also did a little more mico-optimization.
Please give me some feedback on whether or not this performance tweaking has helped make the game smoother at all.
I also fixed a problem in the source code that decreased respect when an enemy changes factions in the damage script (surrendering). And other stuff.
Here is a complete list of fixes/changes:
SOURCE CODE:
-Improved framerate a bit.
-Decreased passive AI range on crowded maps a little (improved performance).
-Increased FPS cap from 32 to 34 on low game speed, decreased from 48 to 44 on high.
-Fixed problem when faction changes in the Damage scripts (surrendering didn't work).
-Removed "not yours" description from items belonging to a hostile faction.
-Removed warning window if you are caught destroying a hostile faction's property.
SCRIPTS:
-Rig Projectiles ability now also works on plates and trays.
-Fixed bug in juicer AI script where they couldn't throw flame grenades.
-Improved Garcia's AI during Pochutla seige (he used to get stuck behind cliffs).
-Jimmy now spawns two knives when he dies.
RESOURCES:
-Added new textures and item icons: plateBoom, trayBoom
-Fixed a backwards number on building2.dds
