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
|
;sfall configuration settings
|
||||||
;v3.8.34.1
|
;v3.8.35
|
||||||
|
|
||||||
[Main]
|
[Main]
|
||||||
;Set to 1 if you want to use command line arguments to tell sfall to use another ini file
|
;Set to 1 if you want to use command line arguments to tell sfall to use another ini file
|
||||||
@@ -579,15 +579,12 @@ SuperStimExploitFix=0
|
|||||||
InventoryApCost=4
|
InventoryApCost=4
|
||||||
QuickPocketsApCostReduction=2
|
QuickPocketsApCostReduction=2
|
||||||
|
|
||||||
;Set to 1 to enable the balanced bullet distribution formula for burst attacks
|
;These options modify the bullet distribution of burst attacks
|
||||||
ComputeSprayMod=0
|
;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
|
||||||
;These options modify the bullet distribution of burst attacks if ComputeSprayMod is 1
|
;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
|
||||||
;All the bullets are divided into three groups: central, left and right
|
;TargetMult/Div set the ratio of how many bullets in the center group will attack the primary target directly
|
||||||
;These three groups will then travel along three parallel tracks, trying to hit targets on the way
|
;Multiplier values are capped at divisor values
|
||||||
;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
|
|
||||||
ComputeSpray_CenterMult=1
|
ComputeSpray_CenterMult=1
|
||||||
ComputeSpray_CenterDiv=3
|
ComputeSpray_CenterDiv=3
|
||||||
ComputeSpray_TargetMult=1
|
ComputeSpray_TargetMult=1
|
||||||
|
|||||||
@@ -567,7 +567,7 @@ void Animations::OnGameLoad() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Animations::init() {
|
void Animations::init() {
|
||||||
animationLimit = IniReader::GetConfigInt("Misc", "AnimationsAtOnceLimit", 32);
|
animationLimit = IniReader::GetConfigInt("Misc", "AnimationsAtOnceLimit", sfall::animationLimit);
|
||||||
if (animationLimit < 32) animationLimit = 32;
|
if (animationLimit < 32) animationLimit = 32;
|
||||||
if (animationLimit > 32) {
|
if (animationLimit > 32) {
|
||||||
if (animationLimit > 127) animationLimit = 127;
|
if (animationLimit > 127) animationLimit = 127;
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "..\main.h"
|
#include "..\main.h"
|
||||||
#include "..\Logging.h"
|
|
||||||
|
|
||||||
#include "BurstMods.h"
|
#include "BurstMods.h"
|
||||||
|
|
||||||
@@ -67,8 +66,8 @@ static void __declspec(naked) compute_spray_rounds_distribution() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void BurstMods::init() {
|
void BurstMods::init() {
|
||||||
if (IniReader::GetConfigInt("Misc", "ComputeSprayMod", 0)) {
|
//if (IniReader::GetConfigInt("Misc", "ComputeSprayMod", 0)) {
|
||||||
dlog("Applying ComputeSpray changes.", DL_INIT);
|
dlog("Applying ComputeSpray settings to burst attacks.", DL_INIT);
|
||||||
compute_spray_center_mult = IniReader::GetConfigInt("Misc", "ComputeSpray_CenterMult", 1);
|
compute_spray_center_mult = IniReader::GetConfigInt("Misc", "ComputeSpray_CenterMult", 1);
|
||||||
compute_spray_center_div = IniReader::GetConfigInt("Misc", "ComputeSpray_CenterDiv", 3);
|
compute_spray_center_div = IniReader::GetConfigInt("Misc", "ComputeSpray_CenterDiv", 3);
|
||||||
if (compute_spray_center_div < 1) {
|
if (compute_spray_center_div < 1) {
|
||||||
@@ -87,7 +86,7 @@ void BurstMods::init() {
|
|||||||
}
|
}
|
||||||
MakeJump(0x4234F1, compute_spray_rounds_distribution);
|
MakeJump(0x4234F1, compute_spray_rounds_distribution);
|
||||||
dlogr(" Done", DL_INIT);
|
dlogr(" Done", DL_INIT);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -210,6 +210,7 @@ static SfallOpcodeInfo opcodeInfoArray[] = {
|
|||||||
{0x267, "round", op_round, 1, true, 0, {ARG_NUMBER}},
|
{0x267, "round", op_round, 1, true, 0, {ARG_NUMBER}},
|
||||||
// 0x268 RESERVED
|
// 0x268 RESERVED
|
||||||
// 0x269 RESERVED
|
// 0x269 RESERVED
|
||||||
|
// 0x26a RESERVED
|
||||||
{0x26b, "message_str_game", op_message_str_game, 2, true, 0, {ARG_INT, ARG_INT}},
|
{0x26b, "message_str_game", op_message_str_game, 2, true, 0, {ARG_INT, ARG_INT}},
|
||||||
{0x26c, "sneak_success", op_sneak_success, 0, true},
|
{0x26c, "sneak_success", op_sneak_success, 0, true},
|
||||||
{0x26d, "tile_light", op_tile_light, 2, true, -1, {ARG_INT, ARG_INT}},
|
{0x26d, "tile_light", op_tile_light, 2, true, -1, {ARG_INT, ARG_INT}},
|
||||||
@@ -416,8 +417,6 @@ void Opcodes::InitNew() {
|
|||||||
opcodes[0x24c] = op_gdialog_get_barter_mod;
|
opcodes[0x24c] = op_gdialog_get_barter_mod;
|
||||||
opcodes[0x24d] = op_set_inven_ap_cost;
|
opcodes[0x24d] = op_set_inven_ap_cost;
|
||||||
|
|
||||||
//opcodes[0x26a]=op_game_ui_redraw;
|
|
||||||
|
|
||||||
// configure default opcode handler
|
// configure default opcode handler
|
||||||
for (int i = sfallOpcodeStart; i < opcodeCount; i++) {
|
for (int i = sfallOpcodeStart; i < opcodeCount; i++) {
|
||||||
if (opcodes[i] == nullptr) {
|
if (opcodes[i] == nullptr) {
|
||||||
|
|||||||
+3
-3
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#define VERSION_MAJOR 3
|
#define VERSION_MAJOR 3
|
||||||
#define VERSION_MINOR 8
|
#define VERSION_MINOR 8
|
||||||
#define VERSION_BUILD 34
|
#define VERSION_BUILD 35
|
||||||
#define VERSION_REV 1
|
#define VERSION_REV 0
|
||||||
|
|
||||||
#define VERSION_STRING "3.8.34.1"
|
#define VERSION_STRING "3.8.35"
|
||||||
|
|||||||
Reference in New Issue
Block a user