KingKickass | 2011-12-29 04:19
Bloody Aftermath
10
points ]
 (1 vote)
Blood and bullet holes don't disappear!

Ever wanted to maximize the violence in Sauerbraten? Now you can with Bloody Aftermath!

Bloody Aftermath is a very simple source mod that prevents blood and bullet hole decals from disappearing(or at least it prevents them from disappearing in the time a game usually lasts). This can mean the map you are playing on may get covered in blood, especially in insta games! I find this adds a little extra fun to Sauerbraten.

The mod itself is an edit of the decal.cpp, which controls the amount of time it takes for a decal to fade away and how many decals can be allowed on the map at once.

Unfortunately I do not have the time to compile on different platforms, so the only those with a Linux x86_64 OS can install the mod simply by using the binary I created. However, Bloody Aftermath should be able to work on any operating system that Sauerbraten runs on. Simply download the mod file, extract the decal.cpp file to the scr/engine directory of Sauerbraten, and then compile the game. Sauerbraten is amazingly simple to compile on Windows, and you don't face dependency hell when compiling on Linux. Search Google to learn how to compile Sauerbraten.

Before installing, please remember that having lots of decals on a map at the same time can lower your FPS, depending on your graphics capabilities. Right now I am running an Nvidia card with 1GB memory, and I have no noticeable slowdown. When I first tried this mod on my own months ago, I was using an Nvidia card with 512mb memory, and I only experienced minor slowdown with excessive blood(but the game was still playable. Please make a backup of your Sauerbraten folder before installing Bloody Aftermath!

If you decide to install the 64-bit binary, download the mod file and extract the decal.o file into your src/engine directory in the Sauerbraten directory.

The last thing you have to do before running Sauerbraten is you must make a few edits to your config.cfg file. The "decalfade" variable must be set to 1316134912, and the "maxdecaltris" variable needs to be set to 6000000.

After editing and save the config.cfg file, you can now play Sauerbraten with Bloody Aftermath!

Keep in mind that I am not an experienced C++ programmer, and the modification I made is very novice. Once installing the mod, the decal fade control options inside the game probably won't work for you; in order to get them back you'd either have to reinstall the game or recompile it with the original source code for decal.cpp. While my modification isn't great as far as code is concerned, it seems to get the job done. I'd like to make it so that you don't have to mess with the config.cfg file.

If anyone wants to help improve Bloody Aftermath, please let me know.

UPDATE: If the decals keep disappearing, this probably means that the config.cfg file has been overwritten by the game. Sometimes this happens and I'm not sure why. Most of the time the game leaves the decalfade and maxdecaltris variables alone, but if it somehow messes with those variables, just change them back and start the game again. Making the file read-only might help, but that will also mean that Sauerbraten won't be able to save any other settings you change.

bloody_aftermath_0.1.zip (20.67 KB)
10
points
 (1 vote)
User login
Users on Quadropolis
3 guests & no users online
10
points ]
 (1 vote)
Created 2020-05-16 23:15
1 week 2 days ago
Created 2020-05-14 12:56
1 week 4 days ago
224
points ]
 (23 votes)
Created 2012-10-20 09:56
7 years 31 weeks ago
Gangler
10
points ]
 (1 vote)
Created 2020-05-12 22:59
1 week 6 days ago
afroninja
46
points ]
 (5 votes)
Created 2020-01-15 07:47
18 weeks 5 days ago
20
points ]
 (2 votes)
Created 2020-04-29 18:35
3 weeks 5 days ago
LURKing
10
points ]
 (1 vote)
Created 2020-05-09 17:56
2 weeks 2 days ago
140
points ]
 (15 votes)
Created 2013-06-09 21:05
6 years 50 weeks ago
20
points ]
 (2 votes)
Created 2020-05-02 19:58
3 weeks 2 days ago
20
points ]
 (2 votes)
Created 2016-07-28 12:06
3 years 43 weeks ago
7YearBitch
20
points ]
 (2 votes)
Created 2020-03-16 20:09
10 weeks 11 hours ago
70
points ]
 (7 votes)
Created 2020-01-24 22:26
17 weeks 3 days ago
40
points ]
 (4 votes)
Created 2020-01-23 12:57
17 weeks 4 days ago
30
points ]
 (4 votes)
Created 2020-01-26 14:10
17 weeks 1 day ago
170
points ]
 (17 votes)
Created 2011-09-05 14:13
8 years 37 weeks ago
Sauce
71
points ]
 (8 votes)
Created 2018-08-22 19:15
1 year 39 weeks ago
Lord Kv
160
points ]
 (16 votes)
Created 2015-03-12 14:45
5 years 10 weeks ago
45
points ]
 (6 votes)
Created 2009-08-15 13:37
10 years 40 weeks ago
MisanthropX
74
points ]
 (8 votes)
Created 2019-12-05 20:57
24 weeks 4 days ago
Redon
105
points ]
 (11 votes)
Created 2019-10-24 21:41
30 weeks 4 days ago
Who's new
  • Akari
  • LURKing
  • Antknee55
  • gmiz
  • impala97