mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Removed ComputeSprayMod from ddraw.ini
Updated version number.
This commit is contained in:
+7
-10
@@ -1,5 +1,5 @@
|
||||
;sfall configuration settings
|
||||
;v4.3.4.1
|
||||
;v4.3.5
|
||||
|
||||
[Main]
|
||||
;Set to 1 to enable the built-in High Resolution Patch mode that is similar to the hi-res patch by Mash
|
||||
@@ -588,15 +588,12 @@ SuperStimExploitFix=0
|
||||
InventoryApCost=4
|
||||
QuickPocketsApCostReduction=2
|
||||
|
||||
;Set to 1 to enable the balanced bullet distribution formula for burst attacks
|
||||
ComputeSprayMod=0
|
||||
|
||||
;These options modify the bullet distribution of burst attacks if ComputeSprayMod is 1
|
||||
;All the bullets are divided into three groups: central, left and right
|
||||
;These three groups will then travel along three parallel tracks, trying to hit targets on the way
|
||||
;CenterMult/Div set the ratio of how many bullets go to the central group, and remaining bullets are divided equally to left and right sides
|
||||
;TargetMult/Div set the ratio of how many bullets in the central group will attack the primary target directly
|
||||
;Multipliers are capped at divisor values
|
||||
;These options modify the bullet distribution of burst attacks
|
||||
;All the bullets are divided into three groups: center, left, and right
|
||||
;These groups will then travel along three parallel tracks, trying to hit targets on the way
|
||||
;CenterMult/Div set the ratio of how many bullets go to the center group, and the remaining are divided equally to the left and right sides
|
||||
;TargetMult/Div set the ratio of how many bullets in the center group will attack the primary target directly
|
||||
;Multiplier values are capped at divisor values
|
||||
ComputeSpray_CenterMult=1
|
||||
ComputeSpray_CenterDiv=3
|
||||
ComputeSpray_TargetMult=1
|
||||
|
||||
@@ -567,7 +567,7 @@ static void ApplyAnimationsAtOncePatches(signed char aniMax) {
|
||||
}
|
||||
|
||||
void Animations::init() {
|
||||
animationLimit = IniReader::GetConfigInt("Misc", "AnimationsAtOnceLimit", 32);
|
||||
animationLimit = IniReader::GetConfigInt("Misc", "AnimationsAtOnceLimit", sfall::animationLimit);
|
||||
if (animationLimit < 32) animationLimit = 32;
|
||||
if (animationLimit > 32) {
|
||||
if (animationLimit > 127) animationLimit = 127;
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
*/
|
||||
|
||||
#include "..\main.h"
|
||||
#include "..\Logging.h"
|
||||
|
||||
#include "BurstMods.h"
|
||||
|
||||
@@ -67,8 +66,8 @@ static void __declspec(naked) compute_spray_rounds_distribution() {
|
||||
}
|
||||
|
||||
void BurstMods::init() {
|
||||
if (IniReader::GetConfigInt("Misc", "ComputeSprayMod", 0)) {
|
||||
dlog("Applying ComputeSpray changes.", DL_INIT);
|
||||
//if (IniReader::GetConfigInt("Misc", "ComputeSprayMod", 0)) {
|
||||
dlog("Applying ComputeSpray settings to burst attacks.", DL_INIT);
|
||||
compute_spray_center_mult = IniReader::GetConfigInt("Misc", "ComputeSpray_CenterMult", 1);
|
||||
compute_spray_center_div = IniReader::GetConfigInt("Misc", "ComputeSpray_CenterDiv", 3);
|
||||
if (compute_spray_center_div < 1) {
|
||||
@@ -87,7 +86,7 @@ void BurstMods::init() {
|
||||
}
|
||||
MakeJump(0x4234F1, compute_spray_rounds_distribution);
|
||||
dlogr(" Done", DL_INIT);
|
||||
}
|
||||
//}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -211,6 +211,7 @@ static SfallOpcodeInfo opcodeInfoArray[] = {
|
||||
{0x267, "round", op_round, 1, true, 0, {ARG_NUMBER}},
|
||||
// 0x268 RESERVED
|
||||
// 0x269 RESERVED
|
||||
// 0x26a RESERVED
|
||||
{0x26b, "message_str_game", op_message_str_game, 2, true, 0, {ARG_INT, ARG_INT}},
|
||||
{0x26c, "sneak_success", op_sneak_success, 0, true},
|
||||
{0x26d, "tile_light", op_tile_light, 2, true, -1, {ARG_INT, ARG_INT}},
|
||||
@@ -421,8 +422,6 @@ void Opcodes::InitNew() {
|
||||
opcodes[0x24c] = op_gdialog_get_barter_mod;
|
||||
opcodes[0x24d] = op_set_inven_ap_cost;
|
||||
|
||||
//opcodes[0x26a]=op_game_ui_redraw;
|
||||
|
||||
// configure default opcode handler
|
||||
for (int i = sfallOpcodeStart; i < opcodeCount; i++) {
|
||||
if (opcodes[i] == nullptr) {
|
||||
|
||||
+3
-3
@@ -24,7 +24,7 @@
|
||||
|
||||
#define VERSION_MAJOR 4
|
||||
#define VERSION_MINOR 3
|
||||
#define VERSION_BUILD 4
|
||||
#define VERSION_REV 1
|
||||
#define VERSION_BUILD 5
|
||||
#define VERSION_REV 0
|
||||
|
||||
#define VERSION_STRING "4.3.4.1"
|
||||
#define VERSION_STRING "4.3.5"
|
||||
|
||||
Reference in New Issue
Block a user