From eebf168cf26dac5e7ff3020016dcf8d09f5754e9 Mon Sep 17 00:00:00 2001 From: drake Date: Mon, 13 Apr 2015 04:56:06 +0000 Subject: [PATCH] Version 4 released! - Rotating entities and trains have a higher minimum random speed - Fixed typo causing missing monster info --- gsrand/Release/readme.txt | 18 ++++++++++++++++++ gsrand/alerter/ent_util.cpp | 7 +++---- gsrand/alerter/gsrand.cpp | 2 +- gsrand/alerter/gsrand_config.txt | 4 ++-- 4 files changed, 24 insertions(+), 7 deletions(-) diff --git a/gsrand/Release/readme.txt b/gsrand/Release/readme.txt index 56a2257..0760acf 100644 --- a/gsrand/Release/readme.txt +++ b/gsrand/Release/readme.txt @@ -119,6 +119,24 @@ It's not working :< ----------------------------- Changelog ----------------------------- + version 4 +----------- + +New Features: ++ Corruption settings reworked (see gsrand_config.txt) ++ More fog randomization (change densities and randomly add fog to maps) ++ ear_rape_safety stops looping and halves volume of some sounds ++ Rotating entities and trains have a higher minimum random speed + +Fixes: +- Fixed model replacement crash: player model with T submodel used for p_weapon +- Fixed model replacement crash: model with missing animation submodels used for p_weapon +- Fixed invalid models being used for replacement (e.g. valve/models/doctor.mdl) +- Fixed unicode characters in program path preventing gsrand.exe from finding files +- Fixed WADs with "gsrand" in the name being used for randomization +- Fixed custom prefixes being cutoff in shared WAD names + + version 3 ----------- diff --git a/gsrand/alerter/ent_util.cpp b/gsrand/alerter/ent_util.cpp index 8414917..78c4ae5 100644 --- a/gsrand/alerter/ent_util.cpp +++ b/gsrand/alerter/ent_util.cpp @@ -821,7 +821,7 @@ void do_entity_randomization(Entity** ents, string mapname) { if (entMode == ENT_SUPER) { - int randSpeed = (int)pow(2.0,(rand()%5+7)); + int randSpeed = (int)pow(2.0,(rand()%4+8)); int randRot1 = (int)pow(2.0,rand()%10); int randRot2 = (int)pow(2.0,rand()%10); int randRot3 = (int)pow(2.0,rand()%10); @@ -879,7 +879,7 @@ void do_entity_randomization(Entity** ents, string mapname) { if (entMode == ENT_SUPER) { - int randSpeed = (int)pow(2.0,rand()%8+4); + int randSpeed = (int)pow(2.0,rand()%7+5); ents[i]->keyvalues["speed"] = to_string((_Longlong)randSpeed); int flags = atoi(ents[i]->keyvalues["spawnflags"].c_str()); @@ -894,7 +894,7 @@ void do_entity_randomization(Entity** ents, string mapname) { if (entMode == ENT_SUPER) { - int randSpeed = (int)pow(2.0,rand()%6+4); + int randSpeed = (int)pow(2.0,rand()%6+5); ents[i]->keyvalues["speed"] = to_string((_Longlong)randSpeed); int flags = atoi(ents[i]->keyvalues["spawnflags"].c_str()); @@ -1009,7 +1009,6 @@ void do_entity_randomization(Entity** ents, string mapname) ents[i]->keyvalues["classify"] = "14"; ents[i]->keyvalues["health"] = "50"; } - if (rand() % 2) ents[i]->keyvalues["showhudinfo"] = "1"; ents[i]->keyvalues["repairable"] = "1"; diff --git a/gsrand/alerter/gsrand.cpp b/gsrand/alerter/gsrand.cpp index 0a5fabb..9a00c94 100644 --- a/gsrand/alerter/gsrand.cpp +++ b/gsrand/alerter/gsrand.cpp @@ -2202,7 +2202,7 @@ int main(int argc, char* argv[]) while (true) { system("cls"); // WINDOWS ONLY - cout << std::setw(80) << right << "version 3.5 Bronze\n"; + cout << std::setw(80) << right << "version 4\n"; cout << "Welcome to w00tguy's map randomizer!\n\n"; cout << "Options:\n\n"; diff --git a/gsrand/alerter/gsrand_config.txt b/gsrand/alerter/gsrand_config.txt index c76cf3d..8771cc1 100644 --- a/gsrand/alerter/gsrand_config.txt +++ b/gsrand/alerter/gsrand_config.txt @@ -24,10 +24,10 @@ sentence_mode = 0 enable_noclip = 0 // let's you fly around and go through walls // Press USE and JUMP keys together to activate -enable_impulse101 = 1 // gives you all weapons and ammo +enable_impulse101 = 0 // gives you all weapons and ammo // Press USE and RELOAD keys together to activate -enable_godmode = 1 // makes you invincible +enable_godmode = 0 // makes you invincible // Press USE and CROUCH keys together to activate // If ear_rape_safety is set to "1", then the weapon/ammo pickup noises will