Third person distance
camera.cpp
You can change the third person distance by changing the value at line 385:
Code: Select all
for (int i = BS; i <= BS* 3.2; i++)
Damage flash and damage tilt
game.cpp
You can tweak or entirely disable the screen turning red when getting damaged, or the screen tilting when getting damaged, or both. Change the values between lines 2398 and 2403, or comment the instructions out using // like this:
Code: Select all
// damage_flash += 100.0;
// damage_flash += 8.0 * event.player_damage.amount;
// player->hurt_tilt_timer = 1.5;
// player->hurt_tilt_strength = event.player_damage.amount/2;
// player->hurt_tilt_strength = rangelim(player->hurt_tilt_strength, 2.0, 10.0);
Infotext position
game.cpp
The first number is the X offset (horizontal position from top-left of screen), the second one is the Y offset (vertical position from top-left of screen). Note that this doesn't scale depending on screen resolution, so the actual position will change depending on the screen aspect. Change the two numbers at the end of the line 1542:
Code: Select all
core::rect<s32>(0,0,400,text_height*5+5) + v2s32(100,200),
Light table
light.cpp
Many light tables are available, but only one of them can be used at a time. The only one which isn't commented out by default is the first one.
Most of them are commented by default, using #if 0. The first one is enabled using #if 1. Thus, to change the light table, you have to comment out the first one by changing #if 1 to #if 0 and enable another one by changing #if 0 to #if 1. Make sure only one light table is enabled at once!
Other player movement smoothing
content_cao.cpp
Change the value at line 109. Increasing it will make it less smooth but more instant, whereas decreasing it makes it less responsive by smoother. Older Minetest versions used a value like 0.5:
Code: Select all
moveratio = moveratio * 0.8;