mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
who isn't sick of converting the freaking scripts? this negates the need
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
package script.library;
|
||||
|
||||
import script.*;
|
||||
import script.base_class.*;
|
||||
import script.combat_engine.*;
|
||||
import java.util.Arrays;
|
||||
import java.util.Hashtable;
|
||||
import java.util.Vector;
|
||||
import script.base_script;
|
||||
|
||||
public class posture extends script.base_script
|
||||
{
|
||||
public posture()
|
||||
{
|
||||
}
|
||||
public static boolean isStanding(obj_id object) throws InterruptedException
|
||||
{
|
||||
return (getPosture(object) == POSTURE_UPRIGHT);
|
||||
}
|
||||
public static void stand(obj_id object) throws InterruptedException
|
||||
{
|
||||
if (!isStanding(object))
|
||||
{
|
||||
queueCommand(object, (-1465754503), object, "", COMMAND_PRIORITY_FRONT);
|
||||
}
|
||||
}
|
||||
public static boolean isKnockedDown(obj_id object) throws InterruptedException
|
||||
{
|
||||
return (getPosture(object) == POSTURE_KNOCKED_DOWN);
|
||||
}
|
||||
public static boolean isKneeling(obj_id object) throws InterruptedException
|
||||
{
|
||||
return (getPosture(object) == POSTURE_CROUCHED);
|
||||
}
|
||||
public static void kneel(obj_id object) throws InterruptedException
|
||||
{
|
||||
if (!isKneeling(object))
|
||||
{
|
||||
queueCommand(object, (28609318), object, "", COMMAND_PRIORITY_FRONT);
|
||||
}
|
||||
}
|
||||
public static boolean isProne(obj_id object) throws InterruptedException
|
||||
{
|
||||
return (getPosture(object) == POSTURE_PRONE);
|
||||
}
|
||||
public static void prone(obj_id object) throws InterruptedException
|
||||
{
|
||||
if (!isProne(object))
|
||||
{
|
||||
queueCommand(object, (-1114832209), object, "", COMMAND_PRIORITY_FRONT);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user