mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 20:22:33 -06:00
Add ~setFov
Requested by Voltage
This commit is contained in:
parent
09f8e68410
commit
67ae3df899
1 changed files with 12 additions and 5 deletions
|
@ -254,7 +254,6 @@ class DistributedAvatar(DistributedActor, Avatar):
|
||||||
def getDialogueArray(self):
|
def getDialogueArray(self):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
@magicWord(category=CATEGORY_COMMUNITY_MANAGER)
|
@magicWord(category=CATEGORY_COMMUNITY_MANAGER)
|
||||||
def warp():
|
def warp():
|
||||||
"""
|
"""
|
||||||
|
@ -266,7 +265,6 @@ def warp():
|
||||||
return "You can't warp yourself!"
|
return "You can't warp yourself!"
|
||||||
target.setPosHpr(invoker.getPos(), invoker.getHpr())
|
target.setPosHpr(invoker.getPos(), invoker.getHpr())
|
||||||
|
|
||||||
|
|
||||||
@magicWord(category=CATEGORY_COMMUNITY_MANAGER, types=[str])
|
@magicWord(category=CATEGORY_COMMUNITY_MANAGER, types=[str])
|
||||||
def loop(anim):
|
def loop(anim):
|
||||||
"""
|
"""
|
||||||
|
@ -275,7 +273,6 @@ def loop(anim):
|
||||||
target = spellbook.getTarget()
|
target = spellbook.getTarget()
|
||||||
target.loop(anim)
|
target.loop(anim)
|
||||||
|
|
||||||
|
|
||||||
@magicWord(category=CATEGORY_COMMUNITY_MANAGER, types=[str, int, str])
|
@magicWord(category=CATEGORY_COMMUNITY_MANAGER, types=[str, int, str])
|
||||||
def pose(anim, frame, part=None):
|
def pose(anim, frame, part=None):
|
||||||
"""
|
"""
|
||||||
|
@ -285,7 +282,6 @@ def pose(anim, frame, part=None):
|
||||||
target = spellbook.getTarget()
|
target = spellbook.getTarget()
|
||||||
target.pose(anim, frame, partName=part)
|
target.pose(anim, frame, partName=part)
|
||||||
|
|
||||||
|
|
||||||
@magicWord(category=CATEGORY_COMMUNITY_MANAGER, types=[str, int, int, str])
|
@magicWord(category=CATEGORY_COMMUNITY_MANAGER, types=[str, int, int, str])
|
||||||
def pingpong(anim, start=None, end=None, part=None):
|
def pingpong(anim, start=None, end=None, part=None):
|
||||||
"""
|
"""
|
||||||
|
@ -334,3 +330,14 @@ def getPos():
|
||||||
Return your target's position.
|
Return your target's position.
|
||||||
"""
|
"""
|
||||||
return spellbook.getTarget().getPos()
|
return spellbook.getTarget().getPos()
|
||||||
|
|
||||||
|
@magicWord(category=CATEGORY_PROGRAMMER, types=[int])
|
||||||
|
def setFov(fov=OTPGlobals.DefaultCameraFov):
|
||||||
|
"""
|
||||||
|
Set your field of view in-game.
|
||||||
|
"""
|
||||||
|
base.camLens.setMinFov(fov/(4./3.))
|
||||||
|
if fov == OTPGlobals.DefaultCameraFov:
|
||||||
|
return 'Set FOV to the default.'
|
||||||
|
else:
|
||||||
|
return 'Set FOV to %s.' % fov
|
||||||
|
|
Loading…
Reference in a new issue