Skip to content

Commit

Permalink
Version 4 released!
Browse files Browse the repository at this point in the history
- Rotating entities and trains have a higher minimum random speed
- Fixed typo causing missing monster info
  • Loading branch information
wootguy committed Apr 13, 2015
1 parent 7744db7 commit eebf168
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
18 changes: 18 additions & 0 deletions gsrand/Release/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----------

Expand Down
7 changes: 3 additions & 4 deletions gsrand/alerter/ent_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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());
Expand All @@ -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());
Expand Down Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion gsrand/alerter/gsrand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions gsrand/alerter/gsrand_config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eebf168

Please sign in to comment.