aboutsummaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
Commit message (Expand)AuthorAge
* Revert custom player collision box and step height commitsparamat2017-05-09
* Custom step height: Fix implementationparamat2017-05-08
* Use stepheight from CAO instead of hardcoded valueSapier2017-05-06
* Make players respect makes_footstep_sound in the object propertiesTeTpaAka2017-05-06
* Sneak: Improve and fix various thingsSmallJoker2017-05-03
* Sneak glitch: Set default to falseparamat2017-04-22
* Sneak: Add option for old move codeparamat2017-04-17
* Sneak glitch: Detect ledge for 2-node climb-upparamat2017-04-11
* Sneak: Fix sneaking on free-floating lower-half slabssfan52017-03-29
* Sneak: Fix stair lower step bug and ladder in 1x1 hole bugssfan52017-03-29
* Sneak: Replicate sneak ladder in new code, is optionalsfan52017-03-26
* Sneak: Fix various problems with sneakingsfan52017-03-16
* Footsteps: Fix offset footstep and shallow water sound bugsparamat2017-02-12
* Cleanup some header inclusions to improve compilation timesLoic Blot2017-01-11
* Environment & IGameDef code refactoring (#4985)Ner'zhul2017-01-09
* Optimize/adjust blocks/ActiveObjects sent at the server based on client setti...lhofhansl2016-11-30
* PlayerSAO/LocalPlayer refactor: (#4612)Ner'zhul2016-10-30
* RemotePlayer/LocalPlayer Player base class proper separation (code cleanup) (...Loic Blot2016-10-08
* Initial Gamepad supportest312016-06-03
* Android: Increase player_stepheight for thicker snow nodeboxMaksim Gamarnik2016-05-06
* Fix player teleportation bug whilst sneakingHybridDog2016-03-14
* Nodebox: Allow nodeboxes to "connect"Auke Kok2016-03-12
* Player::accelerateHorizontal/Vertical should be member of LocalPlayerLoic Blot2016-02-14
* Don't pass non-const references to collision methodsest312016-01-29
* Fix misc. MinGW and Valgrind warningskwolekr2015-11-08
* Only go fast in autorun if fast move is enabledest312015-11-03
* Fix jittering sounds on entities (fixes #2974)BlockMen2015-10-26
* Fix sneaking (fixes #665 and #3045)BlockMen2015-08-15
* Fix detection of sneaking nodegregorycu2015-08-06
* Fix "bouncy" blocksMiner592015-08-02
* Only retrieve always_fly_fast setting onceSmallJoker2015-05-30
* Add some missing getter functions to the lua APITeTpaAka2015-05-28
* Move globals from main.cpp to more sane locationsCraig Robbins2015-04-01
* For usages of assert() that are meant to persist in Release builds (when NDEB...Craig Robbins2015-03-07
* ABMHandler and player_collisions use sequential read/write. Switch from std::...Loic Blot2015-03-04
* Fix all warnings and remove -Wno-unused-but-set cflagkwolekr2015-01-18
* Fix invalid stepheight increase calculation on androidsapier2015-01-11
* Increase stepheight on android by 0.5 to smoothen movementsapier2015-01-11
* Remove most exceptions from getNode() (and variants)Craig Robbins2014-11-14
* Implement WieldMeshSceneNode which improves wield mesh renderingKahrl2014-11-08
* Simplify player modification checksShadowNinja2014-10-01
* Add support for interlaced polarized 3d screenssapier2014-05-18
* Bunch of small fixes (coding style, very unlikely errors, warning messages)sapier2014-04-19
* Fix all warnings reported by clangSfan52014-04-15
* Reorder initialization of member variables to make GCC happyShadowNinja2014-04-13
* Add player:set_eye_offset() by @MirceaKitsune and clean upBlockMen2014-04-12
* Add third person viewBlockMen2014-04-12
* Add sneak and sneak_glitch to set_physics_override()PilzAdam2013-12-03
* Use player:set_hotbar_image() instead of hardcoded hotbar.pngPilzAdam2013-09-05
* Dont teleport back if holding sneak when detaching/turn freemove offPilzAdam2013-05-19
opt">) if [ -z "$2" ] ; then echo "Missing conversion parameter"; exit 1; fi case "$2" in biased|1) conversion=1 ;; red|2) conversion=2 ;; green|3) conversion=3 ;; blue|4) conversion=4 ;; maxrgb|5) conversion=5 ;; minrgb|6) conversion=6 ;; colorspace|7) conversion=7 ;; normalize-only|8) conversion=8 ;; heightmap|9) conversion=9 ;; *) conversion=0 ;; esac shift shift ;; --wrap|-w) wrap=1 shift ;; --invertx|-x) invertx=1 shift ;; --inverty|-y) inverty=1 shift ;; --dryrun|-d) dryrun=true shift ;; *) echo -e "\nUsage:\n" echo "`basename $0` [--scale|-s <value>] [--filter|-f <string>]" echo " [--wrap|-w] [--heightalpha|-a] [--invertx|-x] [--inverty|-y]" echo " [--conversion|-c <string>] [--skiptools|-t] [--skipinventory|-i [<value>]]" echo " [--dryrun|-d] [--pattern|-p <pattern>]" echo -e "\nDefaults to a scale of 8, checking all files in the current directory, and not" echo "skipping apparent tools or inventory images. Filter, if specified, may be one" echo "of: sobel3, sobel5, prewitt3, prewitt5, 3x3, 5x5, 7x7, or 9x9, or a value 1" echo "through 8 (1=sobel3, 2=sobel5, etc.). Defaults to 0 (four-sample). The height" echo "source is taken from the image's alpha channel if heightalpha is specified.\n" echo "" echo "If inventory skip is specified, an optional resolution may also be included" echo "(default is 64). Conversion can be one of: biased, red, green, blue, maxrgb," echo "minrgb, colorspace, normalize-only, heightmap or a value from 1 to 9" echo "corresponding respectively to those keywords. Defaults to 0 (simple" echo "normalize) if not specified. Wrap, if specified, enables wrapping of the" echo "normalmap around the edges of the texture (defaults to no). Invert X/Y" echo "reverses the calculated gradients for the X and/or Y dimensions represented" echo "by the normalmap (both default to non-inverted)." echo "" echo "The pattern, can be an escaped pattern string such as \*apple\* or" echo "default_\*.png or similar (defaults to all PNG and JPG images in the current" echo "directory that do not contain \"_normal\" or \"_specular\" in their filenames)." echo "" echo "If set for dry-run, the actions this script will take will be printed, but no" echo "images will be generated. Passing an invalid value to a switch will generally" echo "cause that switch to revert to its default value." echo "" exit 1 ;; esac done echo -e "\nProcessing files based on pattern \"$pattern\" ..." normalMap() { out=`echo "$1" | sed 's/.png/_normal.png/' | sed 's/.jpg/_normal.png/'` echo "Launched process to generate normalmap: \"$1\" --> \"$out\"" >&2 gimp -i -b " (define (normalMap-fbx-conversion fileName newFileName filter nscale wrap heightsource conversion invertx inverty) (let* ( (image (car (gimp-file-load RUN-NONINTERACTIVE fileName fileName))) (drawable (car (gimp-image-get-active-layer image))) (drawable (car (gimp-image-flatten image))) ) (if (> (car (gimp-drawable-type drawable)) 1) (gimp-convert-rgb image) () ) (plug-in-normalmap RUN-NONINTERACTIVE image drawable filter 0.0 nscale wrap heightsource 0 conversion 0 invertx inverty 0 0.0 drawable) (gimp-file-save RUN-NONINTERACTIVE image drawable newFileName newFileName) (gimp-image-delete image) ) ) (normalMap-fbx-conversion \"$1\" \"$out\" $2 $3 $4 $5 $6 $7 $8)" -b '(gimp-quit 0)' } export -f normalMap for file in `ls $pattern |grep -v "_normal.png"|grep -v "_specular"` ; do invtest=`file "$file" |grep "$invresolution x $invresolution"` if $skipinventory && [ -n "$invtest" ] ; then echo "Skipped presumed "$invresolution"px inventory image: $file" >&2 continue fi tooltest=`echo "$file" \ | grep -v "_tool" \ | grep -v "_shovel" \ | grep -v "_pick" \ | grep -v "_axe" \ | grep -v "_sword" \ | grep -v "_hoe" \ | grep -v "bucket_"` if $skiptools && [ -z "$tooltest" ] ; then echo "Skipped presumed tool image: $file" >&2 continue fi if $dryrun ; then echo "Would have generated a normalmap for $file" >&2 continue else echo \"$file\" $filter $scale $wrap $heightsource $conversion $invertx $inverty fi done | xargs -P $numprocs -n 8 -I{} bash -c normalMap\ \{\}\ \{\}\ \{\}\ \{\}\ \{\}\ \{\}\ \{\}\ \{\}