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
1 guest & no users online
30
points ]
 (3 votes)
Created 2019-05-17 21:51
5 years 27 weeks ago
30
points ]
 (3 votes)
Created 2020-06-13 21:05
4 years 23 weeks ago
20
points ]
 (2 votes)
Created 2021-05-24 00:01
3 years 26 weeks ago
8
points ]
 (1 vote)
Created 2024-06-02 14:26
24 weeks 4 days ago
8
points ]
 (1 vote)
Created 2024-06-02 22:13
24 weeks 4 days ago
vampirefrog
Created 2024-04-11 22:25
32 weeks 11 hours ago
vampirefrog
29
points ]
 (4 votes)
Created 2010-05-30 10:00
14 years 25 weeks ago
Gangler
36
points ]
 (4 votes)
Created 2020-10-22 00:50
4 years 4 weeks ago
Zoocata
10
points ]
 (1 vote)
Created 2024-02-11 21:20
40 weeks 4 days ago
vampirefrog
10
points ]
 (1 vote)
Created 2023-07-23 20:02
1 year 17 weeks ago
36
points ]
 (4 votes)
Created 2020-12-10 12:49
3 years 49 weeks ago
Created 2023-12-12 23:34
49 weeks 2 days ago
Zoocata
Created 2023-11-27 23:00
51 weeks 3 days ago
20
points ]
 (2 votes)
Created 2023-10-01 15:21
1 year 7 weeks ago
9
points ]
 (1 vote)
Created 2023-06-13 17:54
1 year 23 weeks ago
Zoocata
27
points ]
 (3 votes)
Created 2023-05-05 20:58
1 year 28 weeks ago
Zoocata
18
points ]
 (2 votes)
Created 2023-03-02 01:40
1 year 38 weeks ago
Getridou
Created 2023-01-29 23:27
1 year 42 weeks ago
Created 2023-01-19 19:36
1 year 43 weeks ago
Getridou
Created 2023-01-10 17:10
1 year 45 weeks ago
Who's new
  • ColdIV
  • Aidan
  • Hunk
  • letic86
  • BATMAN