Commit Graph

20 Commits

Author SHA1 Message Date
David Leal
222afb0cf0
Allow overriding the loop flag on player_api.set_animation (#3097)
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
2024-01-28 11:41:12 +01:00
Lars Mueller
8d60e85dfc Fix player_api.set_model not updating the animation 2023-01-31 15:31:52 +01:00
LoneWolfHT
ce82241ab2 Undo globalization 2022-03-23 11:36:46 +01:00
LoneWolfHT
0110e01826 Fix bug and globalize players table 2022-03-23 11:36:46 +01:00
LoneWolfHT
268a8844b6 Use a local for the globalstep function 2022-03-23 11:36:46 +01:00
LoneWolfHT
f665382017 Allow mods to override animation globalstep 2022-03-23 11:36:46 +01:00
Lars Mueller
a6f3b89596 player_api: Fix crash for players without model 2022-03-13 00:02:40 +01:00
bell07
584a6a2102
player_api - fix compatibility code
get_animation does not return the data if called from outside without this change
2022-02-03 09:10:53 +01:00
sfan5
acc918436a Override local_animation settings for certain animations
This makes the lay/sit animation work on the local client (in third-person).
2022-01-20 22:48:59 +01:00
Lars Müller
6623dec567
Redo player_api (#2745) 2022-01-17 21:49:28 +01:00
Paramat
8d0fb34fb0
Player_api: Various maintenance (#2737)
Clear 'player_sneak' and 'player_api.player_attached' table values
when player leaves.
Remove unnecessary commas and whitespace.
Fix table name in 'game_api.txt'.
Clean up documentation in 'game_api.txt'.
2020-09-09 19:11:25 +02:00
orbea
695f98f213
player_api: Remove local variable (#2640) 2020-04-08 20:40:19 +02:00
Maksim
7d230fdbf8
Enable player animation when Right Click (#2622) 2020-04-06 15:22:08 +02:00
sfan5
fbbc7fc996 player_api: Prevent knockback when player is set as attached
This is not directly related to player models but fits well
as a convenience feature in player_api.
2020-03-17 22:08:36 +01:00
sfan5
f87c3d05ae player_api: Set correct visual size for legacy player model 2019-10-06 14:06:02 +02:00
paramat
d4e1bd053e Player API: Set eye height property for new player model
Correct the collisionbox height.
2017-11-06 15:40:14 +00:00
paramat
77c9408721 Player API: Integrate settable player step height
Split some long lines.
Some nearby code cleanup.
2017-08-09 11:27:37 +01:00
paramat
b4abb07572 Player_api: Integrate settable player collisionbox 2017-08-06 01:54:47 +01:00
danielmeek32
271b2befaa Player API: Apply model default textures when passing nil to 'set_textures' 2017-08-06 01:53:53 +01:00
rubenwardy
5d19fd6923 Separate player code into new mod 2017-08-01 03:57:29 +01:00