Skip to content

A Minetest mod that lowers the viewpoint of the player if the player is sneaking. This is a mirror of the GitLab repository.

License

Notifications You must be signed in to change notification settings

minetest-australopithecus/minetest-australopithecus-sneak-cam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minetest-australopithecus-sneak-cam

A simple system that lowers the viewpoint of the players when they are sneaking.

Usage

The systems activates itself, you just need to add the mod to the subgame.

Configuration

The system can be configured by adding settings to minetest.conf file.

# If the system should be active or not, defaults to true.
sneakcam_activate = true

# The interval in which the system runs, in seconds, defaults to 0.066.
sneakcam_interval = 0.066

# The offset by which the viewpoing is lowered, defaults to 1.65.
sneakcam_offset = 1.65

Run manually

You can run the system manually by either invoking sneakcam.update_player_cams for all players, or by invoking sneakcam.update_player_cam which accepts the Player as single argument.

Force activation

You can force the activation of the system, even if it has been disabled in the configuration, by invoking sneakcam.activate_internal.

About

A Minetest mod that lowers the viewpoint of the player if the player is sneaking. This is a mirror of the GitLab repository.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published