mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-04-08 18:35:09 +02:00
NPCs can get on and off chairs
The Y Position of an NPC when moving is now a Single (instead of an integer), allowing for NPCs to climb on and off chairs without their Y Position being rounded down.
This commit is contained in:
parent
425a336401
commit
073ed91356
@ -657,8 +657,8 @@
|
|||||||
Moved = 0.0F
|
Moved = 0.0F
|
||||||
MoveY = 0.0F
|
MoveY = 0.0F
|
||||||
AnimationX = 1
|
AnimationX = 1
|
||||||
Me.Position = New Vector3(CInt(Me.Position.X), CInt(Me.Position.Y), CInt(Me.Position.Z))
|
|
||||||
AnimationDelay = AnimationDelayLength
|
AnimationDelay = AnimationDelayLength
|
||||||
|
Me.Position = New Vector3(CInt(Me.Position.X), CSng(Me.Position.Y), CInt(Me.Position.Z))
|
||||||
ChangeTexture()
|
ChangeTexture()
|
||||||
ApplyShaders()
|
ApplyShaders()
|
||||||
Speed = NPC.STANDARD_SPEED
|
Speed = NPC.STANDARD_SPEED
|
||||||
|
@ -100,7 +100,7 @@
|
|||||||
End If
|
End If
|
||||||
Case "setmovey"
|
Case "setmovey"
|
||||||
Dim targetNPC As NPC = Screen.Level.GetNPC(int(argument.GetSplit(0)))
|
Dim targetNPC As NPC = Screen.Level.GetNPC(int(argument.GetSplit(0)))
|
||||||
Dim steps As Integer = int(argument.GetSplit(1))
|
Dim steps As Single = sng(argument.GetSplit(1))
|
||||||
|
|
||||||
targetNPC.MoveY = steps
|
targetNPC.MoveY = steps
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user