How about a method that returns if the guy is stuck?
Im guessing this could be done by detecting if there is a wall between the player's coordinates and some other points, based on the coordinates + the size of the player.. if any is true then the player is stuck.
If that works, the models might cause a problem unless there is a way to get the model's size...
Maybe there are other ways to detect if he's stuck, like applying a push and seeing if the guy moves...
This could be usefull in made skills, especially respawning ones.
Im guessing this could be done by detecting if there is a wall between the player's coordinates and some other points, based on the coordinates + the size of the player.. if any is true then the player is stuck.
If that works, the models might cause a problem unless there is a way to get the model's size...
Maybe there are other ways to detect if he's stuck, like applying a push and seeing if the guy moves...
This could be usefull in made skills, especially respawning ones.
Done:
wcs.Command(<userid>).IsStuck(<callback function>, [additional args])
def <callback function>(isStuck, userid, [additional args]):
print "Is %s stuck? %s" % (userid, isStuck)
Running this when I'm stuck gets...
"Is 3 Stuck - True"
etc
-freddukes
wcs.Command(<userid>).IsStuck(<callback function>, [additional args])
def <callback function>(isStuck, userid, [additional args]):
print "Is %s stuck? %s" % (userid, isStuck)
Running this when I'm stuck gets...
"Is 3 Stuck - True"
etc
-freddukes




freddukes posted on 2008-08-17 09:54:07